@nuxt/webpack-builder 3.16.2 → 3.17.1

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.mjs +13 -10
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  <a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/v/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Version"></a>
7
7
  <a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/dm/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Downloads"></a>
8
8
  <a href="https://github.com/nuxt/nuxt/tree/main/LICENSE"><img src="https://img.shields.io/github/license/nuxt/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="License"></a>
9
- <a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt%20Docs-18181B?logo=nuxt.js" alt="Website"></a>
9
+ <a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt%20Docs-18181B?logo=nuxt" alt="Website"></a>
10
10
  <a href="https://chat.nuxt.dev"><img src="https://img.shields.io/badge/Nuxt%20Discord-18181B?logo=discord" alt="Discord"></a>
11
11
  <a href="https://securityscorecards.dev/"><img src="https://api.securityscorecards.dev/projects/github.com/nuxt/nuxt/badge" alt="Nuxt openssf scorecard score"></a>
12
12
  </p>
package/dist/index.mjs CHANGED
@@ -37,18 +37,21 @@ const DynamicBasePlugin = createUnplugin((options = {}) => {
37
37
  return {
38
38
  name: "nuxt:dynamic-base-path",
39
39
  enforce: "post",
40
- transform(code, id) {
41
- if (!id.includes("entry") || !ENTRY_RE.test(code)) {
42
- return;
43
- }
44
- const s = new MagicString(code);
45
- s.prepend(`import { buildAssetsURL } from '#internal/nuxt/paths';
40
+ transform: {
41
+ filter: {
42
+ id: { include: /entry/ },
43
+ code: { include: ENTRY_RE }
44
+ },
45
+ handler(code) {
46
+ const s = new MagicString(code);
47
+ s.prepend(`import { buildAssetsURL } from '#internal/nuxt/paths';
46
48
  ${options.globalPublicPath} = buildAssetsURL();
47
49
  `);
48
- return {
49
- code: s.toString(),
50
- map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
51
- };
50
+ return {
51
+ code: s.toString(),
52
+ map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
53
+ };
54
+ }
52
55
  }
53
56
  };
54
57
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder",
3
- "version": "3.16.2",
3
+ "version": "3.17.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -35,8 +35,8 @@
35
35
  "esbuild-loader": "^4.3.0",
36
36
  "escape-string-regexp": "^5.0.0",
37
37
  "file-loader": "^6.2.0",
38
- "fork-ts-checker-webpack-plugin": "^9.0.3",
39
- "h3": "^1.15.1",
38
+ "fork-ts-checker-webpack-plugin": "^9.1.0",
39
+ "h3": "^1.15.3",
40
40
  "jiti": "^2.4.2",
41
41
  "magic-string": "^0.30.17",
42
42
  "memfs": "^4.17.0",
@@ -50,29 +50,29 @@
50
50
  "postcss-loader": "^8.1.1",
51
51
  "postcss-url": "^10.1.3",
52
52
  "pug-plain-loader": "^1.1.0",
53
- "std-env": "^3.8.1",
53
+ "std-env": "^3.9.0",
54
54
  "time-fix-plugin": "^2.0.7",
55
- "ufo": "^1.5.4",
55
+ "ufo": "^1.6.1",
56
56
  "unenv": "^2.0.0-rc.15",
57
- "unplugin": "^2.2.2",
57
+ "unplugin": "^2.3.2",
58
58
  "url-loader": "^4.1.1",
59
59
  "vue-bundle-renderer": "^2.1.1",
60
60
  "vue-loader": "^17.4.2",
61
- "webpack": "^5.98.0",
61
+ "webpack": "^5.99.5",
62
62
  "webpack-bundle-analyzer": "^4.10.2",
63
63
  "webpack-dev-middleware": "^7.4.2",
64
64
  "webpack-hot-middleware": "^2.26.1",
65
65
  "webpackbar": "^7.0.0",
66
- "@nuxt/kit": "3.16.2"
66
+ "@nuxt/kit": "3.17.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@rspack/core": "1.3.0",
69
+ "@rspack/core": "1.3.8",
70
70
  "@types/pify": "6.1.0",
71
71
  "@types/webpack-bundle-analyzer": "4.7.0",
72
72
  "@types/webpack-hot-middleware": "2.25.9",
73
- "unbuild": "latest",
73
+ "unbuild": "3.5.0",
74
74
  "vue": "3.5.13",
75
- "@nuxt/schema": "3.16.2"
75
+ "@nuxt/schema": "3.17.1"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "vue": "^3.3.4"