@utoo/pack 1.3.9-alpha.4 → 1.3.10-alpha.0

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.
@@ -35,6 +35,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
35
35
  await (0, xcodeProfile_1.xcodeProfilingReady)();
36
36
  }
37
37
  const resolvedProjectPath = projectPath || process.cwd();
38
+ const resolvedRootPath = rootPath || projectPath || process.cwd();
38
39
  (0, htmlEntry_1.processHtmlEntry)(bundleOptions.config, resolvedProjectPath);
39
40
  (0, validateEntry_1.validateEntryPaths)(bundleOptions.config, resolvedProjectPath);
40
41
  const createProject = (0, project_1.projectFactory)();
@@ -53,7 +54,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
53
54
  pluginRuntimeStrategy: (_d = (_c = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _c === void 0 ? void 0 : _c.pluginRuntimeStrategy) !== null && _d !== void 0 ? _d : ((0, runtimePluginStratety_1.useWorkerThreads)() ? "workerThreads" : "childProcesses"),
54
55
  },
55
56
  projectPath: (0, normalize_path_1.normalizePath)(resolvedProjectPath),
56
- rootPath: rootPath || projectPath || process.cwd(),
57
+ rootPath: resolvedRootPath,
57
58
  packPath: (0, common_1.getPackPath)(),
58
59
  }, {
59
60
  persistentCaching: (_e = bundleOptions.config.persistentCaching) !== null && _e !== void 0 ? _e : false,
package/cjs/core/hmr.js CHANGED
@@ -26,6 +26,7 @@ exports.FAST_REFRESH_RUNTIME_RELOAD = "Fast Refresh had to perform a full reload
26
26
  async function createHotReloader(bundleOptions, projectPath, rootPath) {
27
27
  var _a, _b, _c, _d, _e, _f;
28
28
  const resolvedProjectPath = projectPath || process.cwd();
29
+ const resolvedRootPath = rootPath || projectPath || process.cwd();
29
30
  (0, htmlEntry_1.processHtmlEntry)(bundleOptions.config, resolvedProjectPath);
30
31
  (0, validateEntry_1.validateEntryPaths)(bundleOptions.config, resolvedProjectPath);
31
32
  const createProject = (0, project_1.projectFactory)();
@@ -51,7 +52,7 @@ async function createHotReloader(bundleOptions, projectPath, rootPath) {
51
52
  pluginRuntimeStrategy: (_e = (_d = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _d === void 0 ? void 0 : _d.pluginRuntimeStrategy) !== null && _e !== void 0 ? _e : ((0, runtimePluginStratety_1.useWorkerThreads)() ? "workerThreads" : "childProcesses"),
52
53
  },
53
54
  projectPath: (0, normalize_path_1.normalizePath)(resolvedProjectPath),
54
- rootPath: rootPath || projectPath || process.cwd(),
55
+ rootPath: resolvedRootPath,
55
56
  packPath: (0, common_1.getPackPath)(),
56
57
  }, {
57
58
  persistentCaching: (_f = bundleOptions.config.persistentCaching) !== null && _f !== void 0 ? _f : false,
@@ -77,7 +77,7 @@ async function withErrorCause(fn) {
77
77
  }
78
78
  }
79
79
  function normalizeEmotionConfig(emotion, isDev) {
80
- if (emotion === undefined) {
80
+ if (emotion === undefined || emotion === false) {
81
81
  return undefined;
82
82
  }
83
83
  const defaults = {
@@ -29,6 +29,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
29
29
  await xcodeProfilingReady();
30
30
  }
31
31
  const resolvedProjectPath = projectPath || process.cwd();
32
+ const resolvedRootPath = rootPath || projectPath || process.cwd();
32
33
  processHtmlEntry(bundleOptions.config, resolvedProjectPath);
33
34
  validateEntryPaths(bundleOptions.config, resolvedProjectPath);
34
35
  const createProject = projectFactory();
@@ -47,7 +48,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
47
48
  pluginRuntimeStrategy: (_d = (_c = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _c === void 0 ? void 0 : _c.pluginRuntimeStrategy) !== null && _d !== void 0 ? _d : (useWorkerThreads() ? "workerThreads" : "childProcesses"),
48
49
  },
49
50
  projectPath: normalizePath(resolvedProjectPath),
50
- rootPath: rootPath || projectPath || process.cwd(),
51
+ rootPath: resolvedRootPath,
51
52
  packPath: getPackPath(),
52
53
  }, {
53
54
  persistentCaching: (_e = bundleOptions.config.persistentCaching) !== null && _e !== void 0 ? _e : false,
package/esm/core/hmr.js CHANGED
@@ -18,6 +18,7 @@ export const FAST_REFRESH_RUNTIME_RELOAD = "Fast Refresh had to perform a full r
18
18
  export async function createHotReloader(bundleOptions, projectPath, rootPath) {
19
19
  var _a, _b, _c, _d, _e, _f;
20
20
  const resolvedProjectPath = projectPath || process.cwd();
21
+ const resolvedRootPath = rootPath || projectPath || process.cwd();
21
22
  processHtmlEntry(bundleOptions.config, resolvedProjectPath);
22
23
  validateEntryPaths(bundleOptions.config, resolvedProjectPath);
23
24
  const createProject = projectFactory();
@@ -43,7 +44,7 @@ export async function createHotReloader(bundleOptions, projectPath, rootPath) {
43
44
  pluginRuntimeStrategy: (_e = (_d = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _d === void 0 ? void 0 : _d.pluginRuntimeStrategy) !== null && _e !== void 0 ? _e : (useWorkerThreads() ? "workerThreads" : "childProcesses"),
44
45
  },
45
46
  projectPath: normalizePath(resolvedProjectPath),
46
- rootPath: rootPath || projectPath || process.cwd(),
47
+ rootPath: resolvedRootPath,
47
48
  packPath: getPackPath(),
48
49
  }, {
49
50
  persistentCaching: (_f = bundleOptions.config.persistentCaching) !== null && _f !== void 0 ? _f : false,
@@ -38,7 +38,7 @@ async function withErrorCause(fn) {
38
38
  }
39
39
  }
40
40
  function normalizeEmotionConfig(emotion, isDev) {
41
- if (emotion === undefined) {
41
+ if (emotion === undefined || emotion === false) {
42
42
  return undefined;
43
43
  }
44
44
  const defaults = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "1.3.9-alpha.4",
3
+ "version": "1.3.10-alpha.0",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "@hono/node-server": "^1.19.11",
42
42
  "@hono/node-ws": "^1.3.0",
43
43
  "@swc/helpers": "0.5.15",
44
- "@utoo/pack-shared": "1.3.9-alpha.4",
44
+ "@utoo/pack-shared": "1.3.10-alpha.0",
45
45
  "domparser-rs": "^0.0.7",
46
46
  "find-up": "4.1.0",
47
47
  "get-port": "^7.1.0",
@@ -92,12 +92,12 @@
92
92
  },
93
93
  "repository": "git@github.com:utooland/utoo.git",
94
94
  "optionalDependencies": {
95
- "@utoo/pack-darwin-arm64": "1.3.9-alpha.4",
96
- "@utoo/pack-darwin-x64": "1.3.9-alpha.4",
97
- "@utoo/pack-linux-arm64-gnu": "1.3.9-alpha.4",
98
- "@utoo/pack-linux-arm64-musl": "1.3.9-alpha.4",
99
- "@utoo/pack-linux-x64-gnu": "1.3.9-alpha.4",
100
- "@utoo/pack-linux-x64-musl": "1.3.9-alpha.4",
101
- "@utoo/pack-win32-x64-msvc": "1.3.9-alpha.4"
95
+ "@utoo/pack-darwin-arm64": "1.3.10-alpha.0",
96
+ "@utoo/pack-darwin-x64": "1.3.10-alpha.0",
97
+ "@utoo/pack-linux-arm64-gnu": "1.3.10-alpha.0",
98
+ "@utoo/pack-linux-arm64-musl": "1.3.10-alpha.0",
99
+ "@utoo/pack-linux-x64-gnu": "1.3.10-alpha.0",
100
+ "@utoo/pack-linux-x64-musl": "1.3.10-alpha.0",
101
+ "@utoo/pack-win32-x64-msvc": "1.3.10-alpha.0"
102
102
  }
103
103
  }