@nuxt/webpack-builder 3.13.1 → 3.13.2

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 (2) hide show
  1. package/dist/index.mjs +6 -6
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -74,7 +74,7 @@ const composableKeysPlugin = createUnplugin((options) => {
74
74
  if (!KEYED_FUNCTIONS_RE.test(code)) {
75
75
  return;
76
76
  }
77
- const { 0: script = code, index: codeIndex = 0 } = code.match(/(?<=<script[^>]*>)[\s\S]*?(?=<\/script>)/) || { index: 0, 0: code };
77
+ const { 0: script = code, index: codeIndex = 0 } = code.match(/(?<=<script[^>]*>)[\s\S]*?(?=<\/script>)/i) || { index: 0, 0: code };
78
78
  const s = new MagicString(code);
79
79
  let imports;
80
80
  let count = 0;
@@ -304,11 +304,11 @@ const script = `
304
304
  if (typeof ${webpack.RuntimeGlobals.require} !== "undefined") {
305
305
  var _ensureChunk = ${webpack.RuntimeGlobals.ensureChunk};
306
306
  ${webpack.RuntimeGlobals.ensureChunk} = function (chunkId) {
307
- return Promise.resolve(_ensureChunk(chunkId)).catch(err => {
308
- const e = new Event("nuxt.preloadError");
309
- e.payload = err;
310
- window.dispatchEvent(e);
311
- throw err;
307
+ return Promise.resolve(_ensureChunk(chunkId)).catch(error => {
308
+ const e = new Event('nuxt:preloadError', { cancelable: true })
309
+ e.payload = error
310
+ window.dispatchEvent(e)
311
+ throw error
312
312
  });
313
313
  };
314
314
  };`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder",
3
- "version": "3.13.1",
3
+ "version": "3.13.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -26,7 +26,7 @@
26
26
  "autoprefixer": "^10.4.20",
27
27
  "css-loader": "^7.1.2",
28
28
  "css-minimizer-webpack-plugin": "^7.0.0",
29
- "cssnano": "^7.0.5",
29
+ "cssnano": "^7.0.6",
30
30
  "defu": "^6.1.4",
31
31
  "esbuild-loader": "^4.2.2",
32
32
  "escape-string-regexp": "^5.0.0",
@@ -40,10 +40,10 @@
40
40
  "memfs": "^4.11.1",
41
41
  "mini-css-extract-plugin": "^2.9.1",
42
42
  "mlly": "^1.7.1",
43
- "ohash": "^1.1.3",
43
+ "ohash": "^1.1.4",
44
44
  "pathe": "^1.1.2",
45
45
  "pify": "^6.1.0",
46
- "postcss": "^8.4.44",
46
+ "postcss": "^8.4.47",
47
47
  "postcss-import": "^16.1.0",
48
48
  "postcss-import-resolver": "^2.0.0",
49
49
  "postcss-loader": "^8.1.1",
@@ -53,7 +53,7 @@
53
53
  "time-fix-plugin": "^2.0.7",
54
54
  "ufo": "^1.5.4",
55
55
  "unenv": "^1.10.0",
56
- "unplugin": "^1.12.3",
56
+ "unplugin": "^1.14.1",
57
57
  "url-loader": "^4.1.1",
58
58
  "vue-bundle-renderer": "^2.1.0",
59
59
  "vue-loader": "^17.4.2",
@@ -63,7 +63,7 @@
63
63
  "webpack-hot-middleware": "^2.26.1",
64
64
  "webpack-virtual-modules": "^0.6.2",
65
65
  "webpackbar": "^6.0.1",
66
- "@nuxt/kit": "3.13.1"
66
+ "@nuxt/kit": "3.13.2"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/hash-sum": "1.0.2",
@@ -72,8 +72,8 @@
72
72
  "@types/webpack-bundle-analyzer": "4.7.0",
73
73
  "@types/webpack-hot-middleware": "2.25.9",
74
74
  "unbuild": "latest",
75
- "vue": "3.5.0",
76
- "@nuxt/schema": "3.13.1"
75
+ "vue": "3.5.5",
76
+ "@nuxt/schema": "3.13.2"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "vue": "^3.3.4"