@unpackjs/core 1.3.2 → 1.3.3
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.
- package/dist/config/index.cjs +1 -1
- package/dist/config/index.js +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/package.json +5 -5
package/dist/config/index.cjs
CHANGED
package/dist/config/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -35,8 +35,12 @@ async function createService({ command, root, cliOptions }) {
|
|
|
35
35
|
(0, import_shared.setNodeEnv)("development");
|
|
36
36
|
(0, import_shared.setDevServer)(true);
|
|
37
37
|
}
|
|
38
|
-
!(0, import_shared.isDevServer)()
|
|
39
|
-
|
|
38
|
+
if (!(0, import_shared.isDevServer)()) {
|
|
39
|
+
console.log(
|
|
40
|
+
chalk.cyan(`unpack v${"1.3.3"}`),
|
|
41
|
+
chalk.green(`building for ${(0, import_shared.isDev)() ? "development" : "production"}...`)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
40
44
|
const unpackConfig = await (0, import_config.loadConfig)({ root, cliOptions });
|
|
41
45
|
const bundlerMap = {
|
|
42
46
|
webpack: () => {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EAMb,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,CAAA;AACD,wBAAsB,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EAMb,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,CAAA;AACD,wBAAsB,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,oBAAoB,iBA0CtF"}
|
package/dist/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var __filename = /* @__PURE__ */ getFilename();
|
|
|
10
10
|
import { build as rspackBuild, dev as rspackDev } from "@unpackjs/bundler-rspack";
|
|
11
11
|
import { build as webpackBuild, dev as webpackDev } from "@unpackjs/bundler-webpack";
|
|
12
12
|
import {
|
|
13
|
+
isDev,
|
|
13
14
|
isDevServer,
|
|
14
|
-
logger,
|
|
15
15
|
setDevServer,
|
|
16
16
|
setNodeEnv
|
|
17
17
|
} from "@unpackjs/shared";
|
|
@@ -26,8 +26,12 @@ async function createService({ command, root, cliOptions }) {
|
|
|
26
26
|
setNodeEnv("development");
|
|
27
27
|
setDevServer(true);
|
|
28
28
|
}
|
|
29
|
-
!isDevServer()
|
|
30
|
-
|
|
29
|
+
if (!isDevServer()) {
|
|
30
|
+
console.log(
|
|
31
|
+
chalk.cyan(`unpack v${"1.3.3"}`),
|
|
32
|
+
chalk.green(`building for ${isDev() ? "development" : "production"}...`)
|
|
33
|
+
);
|
|
34
|
+
}
|
|
31
35
|
const unpackConfig = await loadConfig({ root, cliOptions });
|
|
32
36
|
const bundlerMap = {
|
|
33
37
|
webpack: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
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.3.
|
|
27
|
-
"@unpackjs/bundler-webpack": "^1.3.
|
|
28
|
-
"@unpackjs/shared": "^1.3.
|
|
29
|
-
"@unpackjs/plugin-react": "^1.3.
|
|
26
|
+
"@unpackjs/bundler-rspack": "^1.3.3",
|
|
27
|
+
"@unpackjs/bundler-webpack": "^1.3.3",
|
|
28
|
+
"@unpackjs/shared": "^1.3.3",
|
|
29
|
+
"@unpackjs/plugin-react": "^1.3.3"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"dev": "modern build --watch",
|