nuxt-nightly 4.2.2-29404316.81356f85 → 4.2.2-29404491.1c73525a
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 +25 -27
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -3837,7 +3837,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3837
3837
|
});
|
|
3838
3838
|
}
|
|
3839
3839
|
|
|
3840
|
-
const version = "4.2.2-
|
|
3840
|
+
const version = "4.2.2-29404491.1c73525a";
|
|
3841
3841
|
|
|
3842
3842
|
function createImportProtectionPatterns(nuxt, options) {
|
|
3843
3843
|
const patterns = [];
|
|
@@ -3851,13 +3851,11 @@ function createImportProtectionPatterns(nuxt, options) {
|
|
|
3851
3851
|
"Importing directly from a `nuxt.config` file is not allowed. Instead, use runtime config or a module."
|
|
3852
3852
|
]);
|
|
3853
3853
|
patterns.push([/(^|node_modules\/)@vue\/composition-api/]);
|
|
3854
|
-
for (const mod of nuxt.options.
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
]);
|
|
3860
|
-
}
|
|
3854
|
+
for (const mod of nuxt.options.modules.filter((m) => typeof m === "string")) {
|
|
3855
|
+
patterns.push([
|
|
3856
|
+
new RegExp(`^${escapeRE(mod)}$`),
|
|
3857
|
+
"Importing directly from module entry-points is not allowed."
|
|
3858
|
+
]);
|
|
3861
3859
|
}
|
|
3862
3860
|
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)/]) {
|
|
3863
3861
|
patterns.push([i, `This module cannot be imported in ${context}.`]);
|
|
@@ -5184,6 +5182,25 @@ Using \`${fallbackCompatibilityDate}\` as fallback. More info at: ${colors.under
|
|
|
5184
5182
|
rootDir: nuxt.options.rootDir,
|
|
5185
5183
|
composables: nuxt.options.optimization.keyedComposables
|
|
5186
5184
|
}));
|
|
5185
|
+
const sharedDir = withTrailingSlash(resolve(nuxt.options.rootDir, nuxt.options.dir.shared));
|
|
5186
|
+
const relativeSharedDir = withTrailingSlash(relative(nuxt.options.rootDir, resolve(nuxt.options.rootDir, nuxt.options.dir.shared)));
|
|
5187
|
+
const sharedPatterns = [/^#shared\//, new RegExp("^" + escapeRE(sharedDir)), new RegExp("^" + escapeRE(relativeSharedDir))];
|
|
5188
|
+
const sharedProtectionConfig = {
|
|
5189
|
+
cwd: nuxt.options.rootDir,
|
|
5190
|
+
include: sharedPatterns,
|
|
5191
|
+
patterns: createImportProtectionPatterns(nuxt, { context: "shared" })
|
|
5192
|
+
};
|
|
5193
|
+
addVitePlugin(() => ImpoundPlugin.vite(sharedProtectionConfig), { server: false });
|
|
5194
|
+
addWebpackPlugin(() => ImpoundPlugin.webpack(sharedProtectionConfig), { server: false });
|
|
5195
|
+
const nuxtProtectionConfig = {
|
|
5196
|
+
cwd: nuxt.options.rootDir,
|
|
5197
|
+
// Exclude top-level resolutions by plugins
|
|
5198
|
+
exclude: [relative(nuxt.options.rootDir, join(nuxt.options.srcDir, "index.html")), ...sharedPatterns],
|
|
5199
|
+
patterns: createImportProtectionPatterns(nuxt, { context: "nuxt-app" })
|
|
5200
|
+
};
|
|
5201
|
+
addVitePlugin(() => Object.assign(ImpoundPlugin.vite({ ...nuxtProtectionConfig, error: false }), { name: "nuxt:import-protection" }), { client: false });
|
|
5202
|
+
addVitePlugin(() => Object.assign(ImpoundPlugin.vite({ ...nuxtProtectionConfig, error: true }), { name: "nuxt:import-protection" }), { server: false });
|
|
5203
|
+
addWebpackPlugin(() => ImpoundPlugin.webpack(nuxtProtectionConfig));
|
|
5187
5204
|
addVitePlugin(() => ResolveDeepImportsPlugin(nuxt));
|
|
5188
5205
|
addVitePlugin(() => ResolveExternalsPlugin(nuxt), { prepend: true });
|
|
5189
5206
|
addBuildPlugin(PrehydrateTransformPlugin({ sourcemap: !!nuxt.options.sourcemap.server || !!nuxt.options.sourcemap.client }));
|
|
@@ -5216,25 +5233,6 @@ Using \`${fallbackCompatibilityDate}\` as fallback. More info at: ${colors.under
|
|
|
5216
5233
|
composables: nuxt.options.optimization.treeShake.composables.client
|
|
5217
5234
|
}), { server: false });
|
|
5218
5235
|
}
|
|
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));
|
|
5238
5236
|
});
|
|
5239
5237
|
if (!nuxt.options.dev) {
|
|
5240
5238
|
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-29404491.1c73525a",
|
|
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-29404491.1c73525a",
|
|
71
|
+
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-29404491.1c73525a",
|
|
72
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29404491.1c73525a",
|
|
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-29404491.1c73525a",
|
|
75
75
|
"@unhead/vue": "^2.0.19",
|
|
76
76
|
"@vue/shared": "^3.5.25",
|
|
77
77
|
"c12": "^3.3.2",
|