@unpackjs/core 1.5.2 → 1.5.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.
@@ -61,7 +61,7 @@ async function loadConfig({
61
61
  build: {
62
62
  outDir: "dist",
63
63
  minify: (0, import_shared.isProd)(),
64
- sourcemap: (0, import_shared.isProd)() ? false : "cheap-module-source-map",
64
+ sourceMap: (0, import_shared.isProd)() ? false : "cheap-module-source-map",
65
65
  parallel: true,
66
66
  filenameHash: true,
67
67
  cache: (0, import_shared.isDev)()
@@ -74,7 +74,8 @@ async function loadConfig({
74
74
  },
75
75
  css: {
76
76
  modules: true,
77
- transformer: "postcss"
77
+ transformer: "postcss",
78
+ sourceMap: false
78
79
  },
79
80
  plugins: [(0, import_plugin_react.pluginReact)({ clickToComponent: true })]
80
81
  };
@@ -103,8 +104,7 @@ function resolveConfigPath(root, customConfig) {
103
104
  if (import_node_fs.default.existsSync(customConfigPath)) {
104
105
  return customConfigPath;
105
106
  }
106
- import_shared.logger.warn(`Cannot find config file: ${customConfigPath}
107
- `);
107
+ import_shared.logger.warn(`Could not find config file: ${customConfigPath}`);
108
108
  }
109
109
  const CONFIG_FILES = [
110
110
  "unpack.config.ts",
@@ -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,EAQlB,MAAM,kBAAkB,CAAA;AAIzB,wBAAsB,UAAU,CAAC,EAC/B,UAAU,GACX,EAAE;IACD,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,GAAG,OAAO,CAAC,YAAY,CAAC,CAsDxB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,OAAO,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,E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AAkB,CAAA;AAC5E,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,mBAAmB,CAAA;AAC9E,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAAA"}
@@ -45,7 +45,7 @@ async function loadConfig({
45
45
  build: {
46
46
  outDir: "dist",
47
47
  minify: isProd(),
48
- sourcemap: isProd() ? false : "cheap-module-source-map",
48
+ sourceMap: isProd() ? false : "cheap-module-source-map",
49
49
  parallel: true,
50
50
  filenameHash: true,
51
51
  cache: isDev()
@@ -58,7 +58,8 @@ async function loadConfig({
58
58
  },
59
59
  css: {
60
60
  modules: true,
61
- transformer: "postcss"
61
+ transformer: "postcss",
62
+ sourceMap: false
62
63
  },
63
64
  plugins: [pluginReact({ clickToComponent: true })]
64
65
  };
@@ -87,8 +88,7 @@ function resolveConfigPath(root, customConfig) {
87
88
  if (fs.existsSync(customConfigPath)) {
88
89
  return customConfigPath;
89
90
  }
90
- logger.warn(`Cannot find config file: ${customConfigPath}
91
- `);
91
+ logger.warn(`Could not find config file: ${customConfigPath}`);
92
92
  }
93
93
  const CONFIG_FILES = [
94
94
  "unpack.config.ts",
package/dist/index.cjs CHANGED
@@ -36,7 +36,7 @@ async function createService({ command, cliOptions }) {
36
36
  }
37
37
  if (!(0, import_shared.isDevServer)()) {
38
38
  console.log(
39
- import_shared.colors.rainbow(`unpack v${"1.5.2"}`),
39
+ import_shared.colors.rainbow(`unpack v${"1.5.4"}`),
40
40
  import_shared.colors.green(`building for ${(0, import_shared.isDev)() ? "development" : "production"}...`)
41
41
  );
42
42
  }
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ async function createService({ command, cliOptions }) {
28
28
  }
29
29
  if (!isDevServer()) {
30
30
  console.log(
31
- colors.rainbow(`unpack v${"1.5.2"}`),
31
+ colors.rainbow(`unpack v${"1.5.4"}`),
32
32
  colors.green(`building for ${isDev() ? "development" : "production"}...`)
33
33
  );
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,10 +23,10 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@unpackjs/bundler-rspack": "^1.5.2",
27
- "@unpackjs/bundler-webpack": "^1.5.2",
28
- "@unpackjs/shared": "^1.5.2",
29
- "@unpackjs/plugin-react": "^1.5.2"
26
+ "@unpackjs/bundler-rspack": "^1.5.4",
27
+ "@unpackjs/bundler-webpack": "^1.5.4",
28
+ "@unpackjs/shared": "^1.5.4",
29
+ "@unpackjs/plugin-react": "^1.5.4"
30
30
  },
31
31
  "scripts": {
32
32
  "dev": "modern build --watch",