@shuvi/toolpack 1.0.18 → 1.0.19

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.
@@ -151,6 +151,10 @@ function baseWebpackChain({ dev, outputDir, lightningCss, compiler, projectRoot,
151
151
  .rule('webpackPatch')
152
152
  .test(/\.m?js/)
153
153
  .resolve.set('fullySpecified', false);
154
+ config.module
155
+ .rule('private/shuvi-runtime')
156
+ .test(/\.shuvi[/\\]app[/\\]runtime[/\\]index\.(js|ts)/)
157
+ .set('sideEffects', false);
154
158
  mainRule
155
159
  .oneOf('js')
156
160
  .test(/\.(tsx|ts|js|cjs|mjs|jsx)$/)
@@ -41,7 +41,7 @@ function loaderTransform(source, inputSourceMap) {
41
41
  minify,
42
42
  hasReactRefresh: hasReactRefresh !== undefined
43
43
  ? hasReactRefresh
44
- : isDevelopment && !isServer,
44
+ : isDevelopment && !isServer && !pagePickLoader,
45
45
  supportedBrowsers,
46
46
  swcCacheDir,
47
47
  compiler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/toolpack",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -20,7 +20,7 @@
20
20
  "node": ">= 16.0.0"
21
21
  },
22
22
  "dependencies": {
23
- "@shuvi/compiler": "1.0.18",
23
+ "@shuvi/compiler": "1.0.19",
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.18",
39
- "@shuvi/utils": "1.0.18",
38
+ "@shuvi/shared": "1.0.19",
39
+ "@shuvi/utils": "1.0.19",
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",