@unpackjs/core 0.26.2 → 0.27.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.
@@ -82,6 +82,8 @@ async function loadConfig({
82
82
  (0, import_shared.setValueByPath)(parsedUserConfig, ["server", "open"], cliOptions.open);
83
83
  if (cliOptions.analyze)
84
84
  (0, import_shared.setValueByPath)(parsedUserConfig, ["performance", "bundleAnalyze"], cliOptions.analyze);
85
+ if (cliOptions.doctor)
86
+ (0, import_shared.setValueByPath)(parsedUserConfig, ["performance", "doctor"], cliOptions.doctor);
85
87
  return merge(defaultConfig, parsedUserConfig);
86
88
  }
87
89
  function defineConfig(config) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,YAAY,EAMlB,MAAM,kBAAkB,CAAA;AAGzB,wBAAsB,UAAU,CAAC,EAC/B,IAAI,EACJ,UAAU,GACX,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,GAAG,OAAO,CAAC,YAAY,CAAC,CA4CxB;AACD,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,OAAO,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AACD,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAA;AAEjF,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;AAEvE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAA;AACxF,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAAA;AAChE,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAAA;AAC5E,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,mBAAmB,CAAA;AAC9E,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,YAAY,EAMlB,MAAM,kBAAkB,CAAA;AAGzB,wBAAsB,UAAU,CAAC,EAC/B,IAAI,EACJ,UAAU,GACX,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,GAAG,OAAO,CAAC,YAAY,CAAC,CA8CxB;AACD,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,OAAO,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AACD,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAA;AAEjF,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;AAEvE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAA;AACxF,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAAA;AAChE,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAAA;AAC5E,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,mBAAmB,CAAA;AAC9E,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAAA"}
@@ -64,6 +64,8 @@ async function loadConfig({
64
64
  setValueByPath(parsedUserConfig, ["server", "open"], cliOptions.open);
65
65
  if (cliOptions.analyze)
66
66
  setValueByPath(parsedUserConfig, ["performance", "bundleAnalyze"], cliOptions.analyze);
67
+ if (cliOptions.doctor)
68
+ setValueByPath(parsedUserConfig, ["performance", "doctor"], cliOptions.doctor);
67
69
  return merge(defaultConfig, parsedUserConfig);
68
70
  }
69
71
  function defineConfig(config) {
package/dist/index.cjs CHANGED
@@ -32,7 +32,7 @@ async function createService({ command, root, cliOptions }) {
32
32
  if (!npm_execpath || npm_lifecycle_event === "npx" || npm_execpath.includes("npx-cli") || npm_execpath.includes(".bun") || npm_execpath.includes("yarn")) {
33
33
  console.log();
34
34
  }
35
- console.log(chalk.bold(`Unpack v${"0.26.2"}
35
+ console.log(chalk.bold(`Unpack v${"0.27.0"}
36
36
  `));
37
37
  if (command === "build") {
38
38
  (0, import_shared.setNodeEnv)(cliOptions.watch ? "development" : "production");
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ async function createService({ command, root, cliOptions }) {
21
21
  if (!npm_execpath || npm_lifecycle_event === "npx" || npm_execpath.includes("npx-cli") || npm_execpath.includes(".bun") || npm_execpath.includes("yarn")) {
22
22
  console.log();
23
23
  }
24
- console.log(chalk.bold(`Unpack v${"0.26.2"}
24
+ console.log(chalk.bold(`Unpack v${"0.27.0"}
25
25
  `));
26
26
  if (command === "build") {
27
27
  setNodeEnv(cliOptions.watch ? "development" : "production");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "0.26.2",
3
+ "version": "0.27.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,9 +23,9 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@unpackjs/bundler-rspack": "^0.26.2",
27
- "@unpackjs/bundler-webpack": "^0.26.2",
28
- "@unpackjs/shared": "^0.26.2"
26
+ "@unpackjs/bundler-rspack": "^0.27.0",
27
+ "@unpackjs/bundler-webpack": "^0.27.0",
28
+ "@unpackjs/shared": "^0.27.0"
29
29
  },
30
30
  "scripts": {
31
31
  "dev": "modern build --watch",