@umijs/bundler-utoopack 4.6.70 → 4.6.71

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.
@@ -147,10 +147,8 @@ function handleMessage(payload) {
147
147
  switch (payload.action) {
148
148
  case ACTIONS.TURBOPACK_CONNECTED:
149
149
  isSocketConnected = true;
150
- console.log('[utoopack] connected.');
151
150
  break;
152
151
  case ACTIONS.BUILDING:
153
- console.log('[utoopack] compiling...');
154
152
  break;
155
153
  case ACTIONS.SYNC:
156
154
  case ACTIONS.BUILT:
package/dist/config.js CHANGED
@@ -587,7 +587,10 @@ function getUserUtoopackConfig(utoopackConfig = {}, opts) {
587
587
  }
588
588
  return userUtoopackConfig;
589
589
  }
590
- function getDefaultPersistentCaching() {
590
+ function getDefaultPersistentCaching(env) {
591
+ if (env === "production") {
592
+ return false;
593
+ }
591
594
  return process.platform !== "win32";
592
595
  }
593
596
  async function getProdUtooPackConfig(rawOpts) {
@@ -677,6 +680,7 @@ async function getProdUtooPackConfig(rawOpts) {
677
680
  emotion
678
681
  },
679
682
  define,
683
+ persistentCaching: getDefaultPersistentCaching("production"),
680
684
  nodePolyfill: true,
681
685
  pluginRuntimeStrategy: "childProcesses",
682
686
  mdx: !!mdx,
@@ -831,7 +835,7 @@ async function getDevUtooPackConfig(rawOpts) {
831
835
  define,
832
836
  stats: true,
833
837
  // Windows persistent cache restore is currently unstable in utoopack dev.
834
- persistentCaching: getDefaultPersistentCaching(),
838
+ persistentCaching: getDefaultPersistentCaching("development"),
835
839
  nodePolyfill: true,
836
840
  pluginRuntimeStrategy: "childProcesses",
837
841
  mdx: !!mdx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-utoopack",
3
- "version": "4.6.70",
3
+ "version": "4.6.71",
4
4
  "description": "@umijs/bundler-utoopack",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  "resolve-url-loader": "5.0.0",
27
27
  "sass": "1.54.0",
28
28
  "sass-loader": "13.2.0",
29
- "@umijs/bundler-utils": "4.6.70",
30
- "@umijs/bundler-webpack": "4.6.70"
29
+ "@umijs/bundler-utils": "4.6.71",
30
+ "@umijs/bundler-webpack": "4.6.71"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"