@shuvi/toolpack 1.0.3 → 1.0.4

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.
@@ -37,7 +37,6 @@ const constants_1 = require("@shuvi/shared/lib/constants");
37
37
  const fix_watching_plugin_1 = __importDefault(require("../plugins/fix-watching-plugin"));
38
38
  const crypto = __importStar(require("crypto"));
39
39
  const jsconfig_paths_plugin_1 = __importDefault(require("../plugins/jsconfig-paths-plugin"));
40
- const helpers_1 = require("./parts/helpers");
41
40
  const resolveLocalLoader = (name) => path.join(__dirname, `../loaders/${name}`);
42
41
  const terserOptions = {
43
42
  parse: {
@@ -96,27 +95,13 @@ function baseWebpackChain({ dev, outputDir, lightningCss, compiler, projectRoot,
96
95
  emitOnErrors: !dev,
97
96
  checkWasmTypes: false,
98
97
  nodeEnv: false,
98
+ splitChunks: false,
99
99
  runtimeChunk: undefined,
100
100
  minimize: !dev,
101
101
  realContentHash: false
102
102
  });
103
103
  if (dev) {
104
104
  config.optimization.usedExports(false);
105
- config.optimization.splitChunks({
106
- chunks: helpers_1.splitChunksFilter,
107
- cacheGroups: {
108
- defaultVendors: false,
109
- default: false,
110
- vendors: {
111
- name: 'vendors',
112
- filename: (0, helpers_1.commonChunkFilename)({ dev: true }),
113
- test: /[\\/]node_modules[\\/]/,
114
- // Don't let webpack eliminate this chunk (prevents this chunk from
115
- // becoming a part of the commons chunk)
116
- enforce: true
117
- }
118
- }
119
- });
120
105
  }
121
106
  else {
122
107
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/toolpack",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -20,7 +20,7 @@
20
20
  "node": ">= 12.0.0"
21
21
  },
22
22
  "dependencies": {
23
- "@shuvi/compiler": "1.0.3",
23
+ "@shuvi/compiler": "1.0.4",
24
24
  "@babel/core": "7.12.10",
25
25
  "@babel/plugin-proposal-class-properties": "7.12.1",
26
26
  "@babel/plugin-proposal-nullish-coalescing-operator": "7.10.1",
@@ -35,8 +35,8 @@
35
35
  "@babel/preset-typescript": "7.12.7",
36
36
  "@babel/runtime": "7.12.5",
37
37
  "lightningcss": "1.15.0",
38
- "@shuvi/shared": "1.0.3",
39
- "@shuvi/utils": "1.0.3",
38
+ "@shuvi/shared": "1.0.4",
39
+ "@shuvi/utils": "1.0.4",
40
40
  "babel-loader": "8.2.2",
41
41
  "babel-plugin-syntax-jsx": "6.18.0",
42
42
  "babel-plugin-transform-define": "2.0.0",