@nuxt/nitro-server-nightly 5.0.0-29689124.2f9ee7b5 → 5.0.0-29696159.6cc89013
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 +43 -33
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import { resolveModulePath } from "exsolve";
|
|
|
19
19
|
import { runtimeDependencies } from "nitro/meta";
|
|
20
20
|
import { resolveModuleExportNames } from "mlly";
|
|
21
21
|
//#region package.json
|
|
22
|
-
var version = "5.0.0-
|
|
22
|
+
var version = "5.0.0-29696159.6cc89013";
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/utils.ts
|
|
25
25
|
function toArray(value) {
|
|
@@ -618,38 +618,48 @@ async function bundle(nuxt) {
|
|
|
618
618
|
nitroConfig.virtual["#build/dist/server/styles.mjs"] = "export default {}";
|
|
619
619
|
if (process.platform === "win32") nitroConfig.virtual["#build/dist/server/styles.mjs".replace(FORWARD_SLASH_RE, "\\")] = "export default {}";
|
|
620
620
|
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
"
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
621
|
+
const nitroDecoratorSetup = /* @__PURE__ */ new WeakMap();
|
|
622
|
+
const setupNitroDecorators = (nitroConfig) => {
|
|
623
|
+
const existingSetup = nitroDecoratorSetup.get(nitroConfig);
|
|
624
|
+
if (existingSetup) return existingSetup;
|
|
625
|
+
const setup = (async () => {
|
|
626
|
+
const result = await ensureDependencyInstalled([
|
|
627
|
+
"@rollup/plugin-babel",
|
|
628
|
+
"@babel/plugin-proposal-decorators",
|
|
629
|
+
"@babel/plugin-syntax-typescript"
|
|
630
|
+
], {
|
|
631
|
+
rootDir: nuxt.options.rootDir,
|
|
632
|
+
searchPaths: nuxt.options.modulesDir,
|
|
633
|
+
from: import.meta.url
|
|
634
|
+
});
|
|
635
|
+
if (result !== true) logger.warn(`Install ${result.map((d) => `\`${d}\``).join(" and ")} to enable decorator support.`);
|
|
636
|
+
if (result === true) {
|
|
637
|
+
const { babel } = await import("@rollup/plugin-babel");
|
|
638
|
+
nitroConfig.rollupConfig.plugins = toArray(await nitroConfig.rollupConfig.plugins || []);
|
|
639
|
+
nitroConfig.rollupConfig.plugins.unshift(babel({
|
|
640
|
+
babelHelpers: "bundled",
|
|
641
|
+
configFile: false,
|
|
642
|
+
extensions: [
|
|
643
|
+
".ts",
|
|
644
|
+
".js",
|
|
645
|
+
".mjs",
|
|
646
|
+
".mts"
|
|
647
|
+
],
|
|
648
|
+
plugins: [["@babel/plugin-syntax-typescript", { isTSX: false }], ["@babel/plugin-proposal-decorators", { version: "2023-11" }]]
|
|
649
|
+
}), babel({
|
|
650
|
+
babelHelpers: "bundled",
|
|
651
|
+
configFile: false,
|
|
652
|
+
extensions: [".tsx", ".jsx"],
|
|
653
|
+
plugins: [["@babel/plugin-syntax-typescript", { isTSX: true }], ["@babel/plugin-proposal-decorators", { version: "2023-11" }]]
|
|
654
|
+
}));
|
|
655
|
+
}
|
|
656
|
+
})();
|
|
657
|
+
nitroDecoratorSetup.set(nitroConfig, setup);
|
|
658
|
+
setup.catch(() => nitroDecoratorSetup.delete(nitroConfig));
|
|
659
|
+
return setup;
|
|
660
|
+
};
|
|
661
|
+
if (nuxt.options.experimental.decorators) if (nuxt.options.dev) nuxt.hook("nitro:build:before", (nitro) => setupNitroDecorators(nitro.options));
|
|
662
|
+
else await setupNitroDecorators(nitroConfig);
|
|
653
663
|
nitroConfig.rollupConfig.plugins = await nitroConfig.rollupConfig.plugins || [];
|
|
654
664
|
nitroConfig.rollupConfig.plugins = toArray(nitroConfig.rollupConfig.plugins);
|
|
655
665
|
const sharedDir = withTrailingSlash(resolve(nuxt.options.rootDir, nuxt.options.dir.shared));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/nitro-server-nightly",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-29696159.6cc89013",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-
|
|
30
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29696159.6cc89013",
|
|
31
31
|
"@unhead/vue": "^3.1.3",
|
|
32
32
|
"@vue/shared": "3.5.35",
|
|
33
33
|
"consola": "^3.4.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@babel/plugin-proposal-decorators": "^7.25.0",
|
|
59
59
|
"@babel/plugin-syntax-typescript": "^7.25.0",
|
|
60
60
|
"@rollup/plugin-babel": "^6.0.0 || ^7.0.0",
|
|
61
|
-
"nuxt": "npm:nuxt-nightly@5.0.0-
|
|
61
|
+
"nuxt": "npm:nuxt-nightly@5.0.0-29696159.6cc89013"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
64
64
|
"@babel/plugin-proposal-decorators": {
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@babel/plugin-proposal-decorators": "7.29.7",
|
|
76
76
|
"@babel/plugin-syntax-typescript": "7.29.7",
|
|
77
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-
|
|
77
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29696159.6cc89013",
|
|
78
78
|
"@rollup/plugin-babel": "7.1.0",
|
|
79
79
|
"hookable": "6.1.1",
|
|
80
|
-
"nuxt": "npm:nuxt-nightly@5.0.0-
|
|
80
|
+
"nuxt": "npm:nuxt-nightly@5.0.0-29696159.6cc89013",
|
|
81
81
|
"tsdown": "0.22.2",
|
|
82
82
|
"vitest": "4.1.8"
|
|
83
83
|
},
|