@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.
Files changed (2) hide show
  1. package/App.js +9 -2
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",