@zohodesk/client_build_tool 0.0.6-exp.21 → 0.0.6-exp.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -78,8 +78,6 @@ class CdnChangePlugin {
|
|
|
78
78
|
css: data.assets.css.map(css => `${this.cssTemplate}${css}`),
|
|
79
79
|
js: data.assets.js.map(js => {
|
|
80
80
|
if ((0, _modeUtils.isProductionMode)(mode) && createSeparateSMap && !(0, _nameTemplates.isI18nFile)(js)) {
|
|
81
|
-
console.log(js, js.includes('smap'));
|
|
82
|
-
|
|
83
81
|
if (js.includes('smap')) {
|
|
84
82
|
js = js.replace('smap/js/', `{{--js-smap}}js/`); //eslint-disable-line
|
|
85
83
|
} else {
|
|
@@ -87,7 +85,6 @@ class CdnChangePlugin {
|
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
87
|
|
|
90
|
-
console.log('ending', js);
|
|
91
88
|
return `${(0, _nameTemplates.isI18nFile)(js) ? this.i18nTemplate : this.jsTemplate}${js}`;
|
|
92
89
|
})
|
|
93
90
|
};
|
package/lib/shared/bundler/webpack/custom_plugins/CdnChangePlugin/webpackCustomJsUrlLoader.js
CHANGED
|
@@ -5,15 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
var _GetChunkFilenameRuntimeModule = _interopRequireDefault(require("webpack/lib/runtime/GetChunkFilenameRuntimeModule"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
8
12
|
// import { RuntimeGlobals, RuntimeModule, Template } from 'webpack';
|
|
9
|
-
const GetChunkFilenameRuntimeModule = require('webpack/lib/runtime/GetChunkFilenameRuntimeModule');
|
|
13
|
+
// const GetChunkFilenameRuntimeModule = require('webpack/lib/runtime/GetChunkFilenameRuntimeModule');
|
|
14
|
+
// import GetChunkFilenameRuntimeModule from 'webpack/lib/runtime/GetChunkFilenameRuntimeModule';
|
|
10
15
|
// const first = set => {
|
|
11
16
|
// const entry = set.values().next();
|
|
12
17
|
// return entry.done ? undefined : entry.value;
|
|
13
18
|
// };
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class CustomizedGetChunkFilenameRuntimeModule extends GetChunkFilenameRuntimeModule {
|
|
19
|
+
class CustomizedGetChunkFilenameRuntimeModule extends _GetChunkFilenameRuntimeModule.default {
|
|
17
20
|
/**
|
|
18
21
|
* @param {string} contentType the to use the content hash for
|
|
19
22
|
* @param {string} name kind of filename
|