@nuxt/webpack-builder-nightly 4.3.0-29461891.8f4fbecd → 4.3.0-29466366.fa21bb17
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.
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalize, relative } from "pathe";
|
|
2
2
|
|
|
3
|
+
//#region src/loaders/vue-module-identifier.ts
|
|
3
4
|
const vueModuleIdentifierLoader = function(source) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const relativePath = context ? relative(context, resourcePath) : resourcePath;
|
|
12
|
-
const moduleId = normalize(relativePath).replace(/^\.\//, "").replace(/\\/g, "/");
|
|
13
|
-
const snippet = `
|
|
14
|
-
;__exports__.__moduleIdentifier = ${JSON.stringify(moduleId)};`;
|
|
15
|
-
return source + snippet;
|
|
5
|
+
this.cacheable?.();
|
|
6
|
+
const { srcDir } = this.getOptions() || {};
|
|
7
|
+
const resourcePath = this.resourcePath || this._module?.resource;
|
|
8
|
+
if (!resourcePath || !source.includes("__exports__")) return source;
|
|
9
|
+
const context = srcDir || this.rootContext || this.context || this._compiler?.options?.context;
|
|
10
|
+
const moduleId = normalize(context ? relative(context, resourcePath) : resourcePath).replace(/^\.\//, "").replace(/\\/g, "/");
|
|
11
|
+
return source + `\n;__exports__.__moduleIdentifier = ${JSON.stringify(moduleId)};`;
|
|
16
12
|
};
|
|
13
|
+
var vue_module_identifier_default = vueModuleIdentifierLoader;
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
//#endregion
|
|
16
|
+
export { vue_module_identifier_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/webpack-builder-nightly",
|
|
3
|
-
"version": "4.3.0-
|
|
3
|
+
"version": "4.3.0-29466366.fa21bb17",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -10,16 +10,13 @@
|
|
|
10
10
|
"homepage": "https://nuxt.com",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"type": "module",
|
|
13
|
-
"types": "./dist/index.d.
|
|
13
|
+
"types": "./dist/index.d.mts",
|
|
14
14
|
"imports": {
|
|
15
15
|
"#builder": "./builder.mjs",
|
|
16
16
|
"#vue-module-identifier": "./dist/loaders/vue-module-identifier.mjs"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
|
-
".":
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"import": "./dist/index.mjs"
|
|
22
|
-
},
|
|
19
|
+
".": "./dist/index.mjs",
|
|
23
20
|
"./dist/*": "./dist/*"
|
|
24
21
|
},
|
|
25
22
|
"files": [
|
|
@@ -28,7 +25,7 @@
|
|
|
28
25
|
],
|
|
29
26
|
"dependencies": {
|
|
30
27
|
"@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
|
|
31
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-
|
|
28
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29466366.fa21bb17",
|
|
32
29
|
"@vue/compiler-sfc": "3.5.26",
|
|
33
30
|
"autoprefixer": "^10.4.23",
|
|
34
31
|
"css-loader": "^7.1.2",
|
|
@@ -73,16 +70,16 @@
|
|
|
73
70
|
"webpackbar": "^7.0.0"
|
|
74
71
|
},
|
|
75
72
|
"devDependencies": {
|
|
76
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-
|
|
73
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29466366.fa21bb17",
|
|
77
74
|
"@rspack/core": "1.7.1",
|
|
78
75
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
79
76
|
"@types/webpack-hot-middleware": "2.25.12",
|
|
77
|
+
"obuild": "0.4.14",
|
|
80
78
|
"rollup": "4.55.1",
|
|
81
|
-
"unbuild": "3.6.1",
|
|
82
79
|
"vue": "3.5.26"
|
|
83
80
|
},
|
|
84
81
|
"peerDependencies": {
|
|
85
|
-
"nuxt": "npm:nuxt-nightly@4.3.0-
|
|
82
|
+
"nuxt": "npm:nuxt-nightly@4.3.0-29466366.fa21bb17",
|
|
86
83
|
"vue": "^3.3.4"
|
|
87
84
|
},
|
|
88
85
|
"engines": {
|
|
@@ -90,7 +87,7 @@
|
|
|
90
87
|
},
|
|
91
88
|
"_name": "@nuxt/webpack-builder",
|
|
92
89
|
"scripts": {
|
|
93
|
-
"build:stub": "
|
|
90
|
+
"build:stub": "obuild --stub",
|
|
94
91
|
"test:attw": "attw --pack"
|
|
95
92
|
}
|
|
96
93
|
}
|
package/dist/index.d.ts
DELETED