@nuxt/webpack-builder-nightly 5.0.0-29644104.04eca900 → 5.0.0-29644680.78bc1fc6
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/THIRD-PARTY-LICENSES.md +33 -0
- package/dist/index.mjs +18 -7
- package/package.json +6 -6
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Licenses of Bundled Dependencies
|
|
2
|
+
|
|
3
|
+
The published artifact additionally contains code with the following licenses:
|
|
4
|
+
MIT
|
|
5
|
+
|
|
6
|
+
# Bundled Dependencies
|
|
7
|
+
|
|
8
|
+
## nuxt-nightly
|
|
9
|
+
|
|
10
|
+
License: MIT
|
|
11
|
+
Repository: https://github.com/nuxt/nuxt
|
|
12
|
+
|
|
13
|
+
> The MIT License (MIT)
|
|
14
|
+
>
|
|
15
|
+
> Copyright (c) 2016-present - Nuxt Team
|
|
16
|
+
>
|
|
17
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
18
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
19
|
+
> in the Software without restriction, including without limitation the rights
|
|
20
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
21
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
22
|
+
> furnished to do so, subject to the following conditions:
|
|
23
|
+
>
|
|
24
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
25
|
+
> copies or substantial portions of the Software.
|
|
26
|
+
>
|
|
27
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
+
> SOFTWARE.
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { defu } from "defu";
|
|
|
6
6
|
import { joinURL, withTrailingSlash } from "ufo";
|
|
7
7
|
import { directoryToURL, logger, resolveAlias, useNitro, useNuxt } from "@nuxt/kit";
|
|
8
8
|
import { createUnplugin } from "unplugin";
|
|
9
|
-
import
|
|
9
|
+
import MagicString from "magic-string";
|
|
10
10
|
import { MiniCssExtractPlugin, TsCheckerPlugin, WebpackBarPlugin, builder, webpack } from "#builder";
|
|
11
11
|
import { existsSync, readFileSync } from "node:fs";
|
|
12
12
|
import { basename, isAbsolute, join, normalize, relative, resolve } from "pathe";
|
|
@@ -31,8 +31,16 @@ import { normalizeWebpackManifest, precomputeDependencies } from "vue-bundle-ren
|
|
|
31
31
|
import { hash } from "ohash";
|
|
32
32
|
import { serialize } from "seroval";
|
|
33
33
|
import { parseNodeModulePath } from "mlly";
|
|
34
|
+
const defaults = {
|
|
35
|
+
globalPublicPath: "__webpack_public_path__",
|
|
36
|
+
sourcemap: true
|
|
37
|
+
};
|
|
34
38
|
const ENTRY_RE = /import ["']#build\/css["'];/;
|
|
35
|
-
const DynamicBasePlugin = createUnplugin(() => {
|
|
39
|
+
const DynamicBasePlugin = createUnplugin((options = {}) => {
|
|
40
|
+
options = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options
|
|
43
|
+
};
|
|
36
44
|
return {
|
|
37
45
|
name: "nuxt:dynamic-base-path",
|
|
38
46
|
enforce: "post",
|
|
@@ -41,10 +49,13 @@ const DynamicBasePlugin = createUnplugin(() => {
|
|
|
41
49
|
id: { include: /entry/ },
|
|
42
50
|
code: { include: ENTRY_RE }
|
|
43
51
|
},
|
|
44
|
-
handler(code
|
|
45
|
-
const s =
|
|
46
|
-
s.prepend(`import { buildAssetsURL } from '#internal/nuxt/paths';\
|
|
47
|
-
return
|
|
52
|
+
handler(code) {
|
|
53
|
+
const s = new MagicString(code);
|
|
54
|
+
s.prepend(`import { buildAssetsURL } from '#internal/nuxt/paths';\n${options.globalPublicPath} = buildAssetsURL();\n`);
|
|
55
|
+
return {
|
|
56
|
+
code: s.toString(),
|
|
57
|
+
map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
|
|
58
|
+
};
|
|
48
59
|
}
|
|
49
60
|
}
|
|
50
61
|
};
|
|
@@ -1347,7 +1358,7 @@ const bundle = async (nuxt) => {
|
|
|
1347
1358
|
const mfs = nuxt.options.dev ? createMFS() : null;
|
|
1348
1359
|
const ssrStylesPlugin = nuxt.options.ssr && !nuxt.options.dev ? new SSRStylesPlugin(nuxt) : null;
|
|
1349
1360
|
for (const config of webpackConfigs) {
|
|
1350
|
-
config.plugins.push(DynamicBasePlugin.webpack());
|
|
1361
|
+
config.plugins.push(DynamicBasePlugin.webpack({ sourcemap: !!nuxt.options.sourcemap[config.name] }));
|
|
1351
1362
|
if (config.name === "client" && nuxt.options.experimental.emitRouteChunkError && nuxt.options.builder !== "@nuxt/rspack-builder") config.plugins.push(new ChunkErrorPlugin());
|
|
1352
1363
|
if (ssrStylesPlugin) config.plugins.push(ssrStylesPlugin);
|
|
1353
1364
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/webpack-builder-nightly",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-29644680.78bc1fc6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
|
|
28
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-
|
|
28
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29644680.78bc1fc6",
|
|
29
29
|
"@vue/compiler-sfc": "3.5.34",
|
|
30
30
|
"autoprefixer": "^10.5.0",
|
|
31
31
|
"css-loader": "^7.1.4",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
40
40
|
"jiti": "^2.7.0",
|
|
41
41
|
"knitwork": "^1.3.0",
|
|
42
|
+
"magic-string": "^0.30.21",
|
|
42
43
|
"memfs": "^4.57.2",
|
|
43
44
|
"mini-css-extract-plugin": "^2.10.2",
|
|
44
45
|
"mlly": "^1.8.2",
|
|
@@ -51,7 +52,6 @@
|
|
|
51
52
|
"postcss-loader": "^8.2.1",
|
|
52
53
|
"postcss-url": "^10.1.3",
|
|
53
54
|
"pug-plain-loader": "^1.1.0",
|
|
54
|
-
"rolldown-string": "^0.3.0",
|
|
55
55
|
"seroval": "^1.5.4",
|
|
56
56
|
"time-fix-plugin": "^2.0.7",
|
|
57
57
|
"tinyglobby": "^0.2.16",
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
"webpackbar": "^7.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-
|
|
71
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29644680.78bc1fc6",
|
|
72
72
|
"@rspack/core": "2.0.2",
|
|
73
73
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
74
74
|
"@types/webpack-hot-middleware": "2.25.12",
|
|
75
75
|
"h3": "1.15.11",
|
|
76
76
|
"h3-next": "npm:h3@2.0.1-rc.22",
|
|
77
|
-
"obuild": "0.4.
|
|
77
|
+
"obuild": "0.4.33",
|
|
78
78
|
"rollup": "4.60.3",
|
|
79
79
|
"vue": "3.5.34"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"nuxt": "npm:nuxt-nightly@5.0.0-
|
|
82
|
+
"nuxt": "npm:nuxt-nightly@5.0.0-29644680.78bc1fc6",
|
|
83
83
|
"vue": "^3.3.4"
|
|
84
84
|
},
|
|
85
85
|
"engines": {
|