@unpackjs/core 1.3.2 → 1.4.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.
@@ -57,7 +57,7 @@ async function loadConfig({
57
57
  }
58
58
  const parsedUserConfig = userConfig;
59
59
  const defaultConfig = {
60
- bundler: "webpack",
60
+ bundler: "rspack",
61
61
  build: {
62
62
  outDir: "dist",
63
63
  minify: (0, import_shared.isProd)(),
@@ -41,7 +41,7 @@ async function loadConfig({
41
41
  }
42
42
  const parsedUserConfig = userConfig;
43
43
  const defaultConfig = {
44
- bundler: "webpack",
44
+ bundler: "rspack",
45
45
  build: {
46
46
  outDir: "dist",
47
47
  minify: isProd(),
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)() && import_shared.logger.greet(chalk.bold(`Unpack v${"1.3.2"}
39
- `));
38
+ if (!(0, import_shared.isDevServer)()) {
39
+ console.log(
40
+ chalk.cyan(`unpack v${"1.4.0"}`),
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: () => {
@@ -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,iBAqCtF"}
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() && logger.greet(chalk.bold(`Unpack v${"1.3.2"}
30
- `));
29
+ if (!isDevServer()) {
30
+ console.log(
31
+ chalk.cyan(`unpack v${"1.4.0"}`),
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.2",
3
+ "version": "1.4.0",
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.2",
27
- "@unpackjs/bundler-webpack": "^1.3.2",
28
- "@unpackjs/shared": "^1.3.2",
29
- "@unpackjs/plugin-react": "^1.3.2"
26
+ "@unpackjs/bundler-rspack": "^1.4.0",
27
+ "@unpackjs/bundler-webpack": "^1.4.0",
28
+ "@unpackjs/shared": "^1.4.0",
29
+ "@unpackjs/plugin-react": "^1.4.0"
30
30
  },
31
31
  "scripts": {
32
32
  "dev": "modern build --watch",