nuxt-nightly 4.2.2-29404141.cdce631a → 4.2.2-29404316.81356f85
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/index.mjs +29 -25
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -3441,6 +3441,8 @@ const componentsModule = defineNuxtModule({
|
|
|
3441
3441
|
// ignore mixins
|
|
3442
3442
|
"**/*.d.{cts,mts,ts}",
|
|
3443
3443
|
// .d.ts files
|
|
3444
|
+
"**/*.d.vue.{cts,mts,ts}",
|
|
3445
|
+
// .d.vue.ts files
|
|
3444
3446
|
...dirOptions.ignore || []
|
|
3445
3447
|
],
|
|
3446
3448
|
transpile
|
|
@@ -3835,7 +3837,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3835
3837
|
});
|
|
3836
3838
|
}
|
|
3837
3839
|
|
|
3838
|
-
const version = "4.2.2-
|
|
3840
|
+
const version = "4.2.2-29404316.81356f85";
|
|
3839
3841
|
|
|
3840
3842
|
function createImportProtectionPatterns(nuxt, options) {
|
|
3841
3843
|
const patterns = [];
|
|
@@ -3849,11 +3851,13 @@ function createImportProtectionPatterns(nuxt, options) {
|
|
|
3849
3851
|
"Importing directly from a `nuxt.config` file is not allowed. Instead, use runtime config or a module."
|
|
3850
3852
|
]);
|
|
3851
3853
|
patterns.push([/(^|node_modules\/)@vue\/composition-api/]);
|
|
3852
|
-
for (const mod of nuxt.options.
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3854
|
+
for (const mod of nuxt.options._installedModules) {
|
|
3855
|
+
if (mod.entryPath) {
|
|
3856
|
+
patterns.push([
|
|
3857
|
+
new RegExp(`^${escapeRE(mod.entryPath)}$`),
|
|
3858
|
+
"Importing directly from module entry-points is not allowed."
|
|
3859
|
+
]);
|
|
3860
|
+
}
|
|
3857
3861
|
}
|
|
3858
3862
|
for (const i of [/(^|node_modules\/)@nuxt\/(cli|kit|test-utils)/, /(^|node_modules\/)nuxi/, /(^|node_modules\/)nitro(?:pack)?(?:-nightly)?(?:$|\/)(?!(?:dist\/)?(?:node_modules|presets|runtime|types))/, /(^|node_modules\/)nuxt\/(config|kit|schema)/]) {
|
|
3859
3863
|
patterns.push([i, `This module cannot be imported in ${context}.`]);
|
|
@@ -5180,25 +5184,6 @@ Using \`${fallbackCompatibilityDate}\` as fallback. More info at: ${colors.under
|
|
|
5180
5184
|
rootDir: nuxt.options.rootDir,
|
|
5181
5185
|
composables: nuxt.options.optimization.keyedComposables
|
|
5182
5186
|
}));
|
|
5183
|
-
const sharedDir = withTrailingSlash(resolve(nuxt.options.rootDir, nuxt.options.dir.shared));
|
|
5184
|
-
const relativeSharedDir = withTrailingSlash(relative(nuxt.options.rootDir, resolve(nuxt.options.rootDir, nuxt.options.dir.shared)));
|
|
5185
|
-
const sharedPatterns = [/^#shared\//, new RegExp("^" + escapeRE(sharedDir)), new RegExp("^" + escapeRE(relativeSharedDir))];
|
|
5186
|
-
const sharedProtectionConfig = {
|
|
5187
|
-
cwd: nuxt.options.rootDir,
|
|
5188
|
-
include: sharedPatterns,
|
|
5189
|
-
patterns: createImportProtectionPatterns(nuxt, { context: "shared" })
|
|
5190
|
-
};
|
|
5191
|
-
addVitePlugin(() => ImpoundPlugin.vite(sharedProtectionConfig), { server: false });
|
|
5192
|
-
addWebpackPlugin(() => ImpoundPlugin.webpack(sharedProtectionConfig), { server: false });
|
|
5193
|
-
const nuxtProtectionConfig = {
|
|
5194
|
-
cwd: nuxt.options.rootDir,
|
|
5195
|
-
// Exclude top-level resolutions by plugins
|
|
5196
|
-
exclude: [relative(nuxt.options.rootDir, join(nuxt.options.srcDir, "index.html")), ...sharedPatterns],
|
|
5197
|
-
patterns: createImportProtectionPatterns(nuxt, { context: "nuxt-app" })
|
|
5198
|
-
};
|
|
5199
|
-
addVitePlugin(() => Object.assign(ImpoundPlugin.vite({ ...nuxtProtectionConfig, error: false }), { name: "nuxt:import-protection" }), { client: false });
|
|
5200
|
-
addVitePlugin(() => Object.assign(ImpoundPlugin.vite({ ...nuxtProtectionConfig, error: true }), { name: "nuxt:import-protection" }), { server: false });
|
|
5201
|
-
addWebpackPlugin(() => ImpoundPlugin.webpack(nuxtProtectionConfig));
|
|
5202
5187
|
addVitePlugin(() => ResolveDeepImportsPlugin(nuxt));
|
|
5203
5188
|
addVitePlugin(() => ResolveExternalsPlugin(nuxt), { prepend: true });
|
|
5204
5189
|
addBuildPlugin(PrehydrateTransformPlugin({ sourcemap: !!nuxt.options.sourcemap.server || !!nuxt.options.sourcemap.client }));
|
|
@@ -5231,6 +5216,25 @@ Using \`${fallbackCompatibilityDate}\` as fallback. More info at: ${colors.under
|
|
|
5231
5216
|
composables: nuxt.options.optimization.treeShake.composables.client
|
|
5232
5217
|
}), { server: false });
|
|
5233
5218
|
}
|
|
5219
|
+
const sharedDir = withTrailingSlash(resolve(nuxt.options.rootDir, nuxt.options.dir.shared));
|
|
5220
|
+
const relativeSharedDir = withTrailingSlash(relative(nuxt.options.rootDir, resolve(nuxt.options.rootDir, nuxt.options.dir.shared)));
|
|
5221
|
+
const sharedPatterns = [/^#shared\//, new RegExp("^" + escapeRE(sharedDir)), new RegExp("^" + escapeRE(relativeSharedDir))];
|
|
5222
|
+
const sharedProtectionConfig = {
|
|
5223
|
+
cwd: nuxt.options.rootDir,
|
|
5224
|
+
include: sharedPatterns,
|
|
5225
|
+
patterns: createImportProtectionPatterns(nuxt, { context: "shared" })
|
|
5226
|
+
};
|
|
5227
|
+
addVitePlugin(() => ImpoundPlugin.vite(sharedProtectionConfig), { server: false });
|
|
5228
|
+
addWebpackPlugin(() => ImpoundPlugin.webpack(sharedProtectionConfig), { server: false });
|
|
5229
|
+
const nuxtProtectionConfig = {
|
|
5230
|
+
cwd: nuxt.options.rootDir,
|
|
5231
|
+
// Exclude top-level resolutions by plugins
|
|
5232
|
+
exclude: [relative(nuxt.options.rootDir, join(nuxt.options.srcDir, "index.html")), ...sharedPatterns],
|
|
5233
|
+
patterns: createImportProtectionPatterns(nuxt, { context: "nuxt-app" })
|
|
5234
|
+
};
|
|
5235
|
+
addVitePlugin(() => Object.assign(ImpoundPlugin.vite({ ...nuxtProtectionConfig, error: false }), { name: "nuxt:import-protection" }), { client: false });
|
|
5236
|
+
addVitePlugin(() => Object.assign(ImpoundPlugin.vite({ ...nuxtProtectionConfig, error: true }), { name: "nuxt:import-protection" }), { server: false });
|
|
5237
|
+
addWebpackPlugin(() => ImpoundPlugin.webpack(nuxtProtectionConfig));
|
|
5234
5238
|
});
|
|
5235
5239
|
if (!nuxt.options.dev) {
|
|
5236
5240
|
addBuildPlugin(DevOnlyPlugin({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.2.2-
|
|
3
|
+
"version": "4.2.2-29404316.81356f85",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"@dxup/nuxt": "^0.2.2",
|
|
68
68
|
"@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
|
|
69
69
|
"@nuxt/devtools": "^3.1.1",
|
|
70
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-
|
|
71
|
-
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-
|
|
72
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-29404316.81356f85",
|
|
71
|
+
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-29404316.81356f85",
|
|
72
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29404316.81356f85",
|
|
73
73
|
"@nuxt/telemetry": "^2.6.6",
|
|
74
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.2-
|
|
74
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.2-29404316.81356f85",
|
|
75
75
|
"@unhead/vue": "^2.0.19",
|
|
76
76
|
"@vue/shared": "^3.5.25",
|
|
77
77
|
"c12": "^3.3.2",
|