Skip to content

Commit

Permalink
[no-changelog] turn off fyn source map meta
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jun 15, 2021
1 parent 5d93189 commit baa2dc9
Show file tree
Hide file tree
Showing 31 changed files with 96 additions and 65 deletions.
3 changes: 2 additions & 1 deletion packages/electrode-cdn-file-loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ module.exports = function (content) {

this.emitFile(url, content);

const cdn = "var url = " + JSON.stringify(url) + ";\n" +
const cdn = "var url = " + JSON.stringify(url) + ";\n" +
"var cdnUrl = typeof _wml !== \"undefined\" && _wml.cdn && _wml.cdn.map(url);\n";

return cdn + "module.exports = cdnUrl || __webpack_public_path__ + url;";
};

module.exports.raw = true;
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/electrode-node-resolver/lib/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ module.exports = function(path, options) {

throw new Error("jest.node-resolver failed path resolve");
};
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/electrode-node-resolver/lib/node-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ module.exports = {
isModuleRequest,
resolve
};
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/electrode-node-resolver/lib/webpack-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ module.exports = class ModuleResolver {
});
}
};
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/opt-archetype-check/optional-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,4 @@ if (require.main === module) {
}

module.exports.isSameMajorVersion = isSameMajorVersion;
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/opt-archetype-check/test/test1.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ assert(isSameMajorVersion("^0.1.1", "0.1.3") === true);
assert(isSameMajorVersion("1.0.0", "2.2.1") === false);
assert(isSameMajorVersion("~1.0.0", "2.2.1") === false);
assert(isSameMajorVersion("^1.0.0", "2.2.1") === false);
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/opt-archetype-check/xarc-opt-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ if (require.main === module) {
}

module.exports.isSameMajorVersion = isSameMajorVersion;
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/subapp-util/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,4 @@ module.exports = {
formUrl,
tryThrowOriginalSubappRegisterError
};
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/bin/xrun.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ function invoke() {
}

invoke();
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/e1/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = require("electrode-server");
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/require.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Archetype-based require.
/*eslint-disable strict, global-require*/
module.exports = require;
//# fynSourceMap=false
5 changes: 3 additions & 2 deletions packages/xarc-app-dev/scripts/l10n/flatten-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function readFileAsJSON(filePath) {
async function getAllDefaultMessages(messageFilesPathPattern) {
const fileJsons = await xaa.map(await getFilePaths(messageFilesPathPattern), readFileAsJSON);
return fileJsons.reduce((previousValue, defaultMessageDescriptors) => {
defaultMessageDescriptors.forEach(descriptor => {
defaultMessageDescriptors.forEach((descriptor) => {
previousValue[descriptor.id] = descriptor;
});
return previousValue;
Expand All @@ -59,7 +59,7 @@ function flattenMessagesL10n() {
.then(() => {
if (isMain) process.exit(0);
})
.catch(err => {
.catch((err) => {
console.log("flatten messages failed", err);
if (isMain) process.exit(1);
});
Expand All @@ -70,3 +70,4 @@ module.exports = flattenMessagesL10n;
if (isMain) {
flattenMessagesL10n();
}
//# fynSourceMap=false
3 changes: 2 additions & 1 deletion packages/xarc-app-dev/scripts/map-isomorphic-cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function mapIsomorphicCdn(appDir) {

if (paths.length > 1) {
logger.error("CDN upload files has different base paths");
paths.forEach(p => {
paths.forEach((p) => {
logger.info(` - "${p}"`);
});
exit(1);
Expand All @@ -53,3 +53,4 @@ if (isMain) {
}

module.exports = mapIsomorphicCdn;
//# fynSourceMap=false
5 changes: 3 additions & 2 deletions packages/xarc-app-dev/scripts/merge-isomorphic-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function mergeIsomorphicAssets() {
const filenames = filterScanDir.sync({
dir: process.cwd(),
includeRoot: true,
filterDir: dir => ["dist", "dll"].indexOf(dir) >= 0,
filter: (f, p, e) => e.noExt === "isomorphic-assets"
filterDir: (dir) => ["dist", "dll"].indexOf(dir) >= 0,
filter: (f, p, e) => e.noExt === "isomorphic-assets",
});

if (filenames.length > 1) {
Expand All @@ -37,3 +37,4 @@ module.exports = mergeIsomorphicAssets;
if (isMain) {
mergeIsomorphicAssets();
}
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/scripts/webpack5-jsonp-cdn.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// normally apps depend on @xarc/app[-dev] directly only but not @xarc/webpack
// so put this here to allow webpack config to load this into entry through @xarc/app-dev
require("@xarc/webpack/lib/client/webpack5-jsonp-cdn");
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/src/config/eslint/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

const optEslintRequire = require("./opt-eslint-require");
module.exports = optEslintRequire("eslint-config-walmart");
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/src/config/eslint/js/es5-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
"use strict";
const optEslintRequire = require("./opt-eslint-require");
module.exports = optEslintRequire("eslint-config-walmart/configurations/es5-node");
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/src/config/eslint/js/es6-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
"use strict";
const optEslintRequire = require("./opt-eslint-require");
module.exports = optEslintRequire("eslint-config-walmart/configurations/es6-node");
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/src/config/eslint/js/es6-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
"use strict";
const optEslintRequire = require("./opt-eslint-require");
module.exports = optEslintRequire("eslint-config-walmart/configurations/es6-react");
//# fynSourceMap=false
1 change: 1 addition & 0 deletions packages/xarc-app-dev/src/config/eslint/js/es6-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
"use strict";
const optEslintRequire = require("./opt-eslint-require");
module.exports = optEslintRequire("eslint-config-walmart/configurations/es6-test");
//# fynSourceMap=false
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ try {
require.resolve("electrode-archetype-opt-eslint/package.json")
);
}
//# fynSourceMap=false
3 changes: 2 additions & 1 deletion packages/xarc-app-dev/src/config/karma/entry-xarc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ chai.use(chaiShallowly);
// Mocha (part of static include).
window.mocha.setup({
ui: "bdd",
bail: false
bail: false,
});

// --------------------------------------------------------------------------
Expand All @@ -72,3 +72,4 @@ testsReq.keys().map(testsReq);
if (!window.__karma__) {
window.mocha.run();
}
//# fynSourceMap=false
3 changes: 2 additions & 1 deletion packages/xarc-app-dev/src/config/karma/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ chai.use(chaiShallowly);
// Mocha (part of static include).
window.mocha.setup({
ui: "bdd",
bail: false
bail: false,
});

// --------------------------------------------------------------------------
Expand All @@ -72,3 +72,4 @@ testsReq.keys().map(testsReq);
if (!window.__karma__) {
window.mocha.run();
}
//# fynSourceMap=false
Loading

0 comments on commit baa2dc9

Please sign in to comment.