@polylith/builder 0.0.25 → 0.0.26
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.
- package/App.js +9 -2
- package/package.json +1 -1
package/App.js
CHANGED
|
@@ -236,17 +236,24 @@ export default class App {
|
|
|
236
236
|
|
|
237
237
|
if (exists) return (`${found.name}.js`);
|
|
238
238
|
if (entry === this.fullIndexPath) {
|
|
239
|
-
return `${this.name}.js
|
|
239
|
+
return `${this.name}.js`;
|
|
240
240
|
}
|
|
241
241
|
return '[name].js';
|
|
242
242
|
}.bind(this),
|
|
243
243
|
manualChunks: function(id) {
|
|
244
|
+
var fixId = App.fixPath(id);
|
|
245
|
+
if (fixId.includes('init.js')) {
|
|
246
|
+
return 'init.js';
|
|
247
|
+
}
|
|
244
248
|
if (id.includes('node_modules')) {
|
|
245
249
|
return 'vendor';
|
|
246
250
|
}
|
|
251
|
+
}.bind(this),
|
|
252
|
+
treeshake: {
|
|
253
|
+
moduleSideEffects: true
|
|
247
254
|
}
|
|
248
255
|
},
|
|
249
|
-
|
|
256
|
+
}
|
|
250
257
|
};
|
|
251
258
|
|
|
252
259
|
return config;
|