nitro-nightly 3.0.1-20260105-130845-656a71ed → 3.0.1-20260105-153329-df7fd85e
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/_build/vite.plugin.mjs +2 -2
- package/dist/_libs/@rollup/plugin-alias.mjs +1 -1
- package/dist/_libs/@rollup/plugin-commonjs.mjs +2 -2
- package/dist/_libs/@rollup/plugin-inject.mjs +1 -1
- package/dist/_libs/@rollup/plugin-json.mjs +1 -1
- package/dist/_libs/@rollup/plugin-node-resolve.mjs +1 -1
- package/dist/_libs/@rollup/plugin-replace.mjs +1 -1
- package/dist/runtime/internal/vite/node-runner.mjs +16 -0
- package/dist/vite.d.mts +5 -1
- package/package.json +7 -7
|
@@ -330,7 +330,7 @@ function createServiceEnvironment(ctx, name, serviceConfig) {
|
|
|
330
330
|
return {
|
|
331
331
|
consumer: "server",
|
|
332
332
|
build: {
|
|
333
|
-
rollupOptions: { input: serviceConfig.entry },
|
|
333
|
+
rollupOptions: { input: { index: serviceConfig.entry } },
|
|
334
334
|
minify: ctx.nitro.options.minify,
|
|
335
335
|
sourcemap: ctx.nitro.options.sourcemap,
|
|
336
336
|
outDir: join(ctx.nitro.options.buildDir, "vite/services", name),
|
|
@@ -625,7 +625,7 @@ function nitroService(ctx) {
|
|
|
625
625
|
function createContext(pluginConfig) {
|
|
626
626
|
return {
|
|
627
627
|
pluginConfig,
|
|
628
|
-
services: {},
|
|
628
|
+
services: { ...pluginConfig.experimental?.vite?.services },
|
|
629
629
|
_entryPoints: {}
|
|
630
630
|
};
|
|
631
631
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
|
|
3
|
-
//#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.
|
|
3
|
+
//#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.55.1/node_modules/@rollup/plugin-alias/dist/index.js
|
|
4
4
|
function matches(pattern, importee) {
|
|
5
5
|
if (pattern instanceof RegExp) return pattern.test(importee);
|
|
6
6
|
if (importee.length < pattern.length) return false;
|
|
@@ -2327,7 +2327,7 @@ function walk(ast, { enter, leave }) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
|
|
2329
2329
|
//#endregion
|
|
2330
|
-
//#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.
|
|
2330
|
+
//#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.55.1/node_modules/@rollup/pluginutils/dist/es/index.js
|
|
2331
2331
|
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
2332
2332
|
const extractors = {
|
|
2333
2333
|
ArrayPattern(names, param) {
|
|
@@ -2611,7 +2611,7 @@ var require_is_reference = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2611
2611
|
}));
|
|
2612
2612
|
|
|
2613
2613
|
//#endregion
|
|
2614
|
-
//#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.
|
|
2614
|
+
//#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.55.1/node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
|
2615
2615
|
var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
|
|
2616
2616
|
var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
|
|
2617
2617
|
var version = "29.0.0";
|
|
@@ -2,7 +2,7 @@ import { a as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
|
|
|
2
2
|
import { a as makeLegalIdentifier, n as attachScopes, o as walk, r as createFilter } from "./plugin-commonjs.mjs";
|
|
3
3
|
import { sep } from "path";
|
|
4
4
|
|
|
5
|
-
//#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.
|
|
5
|
+
//#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.55.1/node_modules/@rollup/plugin-inject/dist/es/index.js
|
|
6
6
|
var escape = function(str) {
|
|
7
7
|
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as dataToEsm, r as createFilter } from "./plugin-commonjs.mjs";
|
|
2
2
|
|
|
3
|
-
//#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.
|
|
3
|
+
//#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.55.1/node_modules/@rollup/plugin-json/dist/es/index.js
|
|
4
4
|
function json(options) {
|
|
5
5
|
if (options === void 0) options = {};
|
|
6
6
|
var filter = createFilter(options.include, options.exclude);
|
|
@@ -1113,7 +1113,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1113
1113
|
}));
|
|
1114
1114
|
|
|
1115
1115
|
//#endregion
|
|
1116
|
-
//#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.
|
|
1116
|
+
//#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.55.1/node_modules/@rollup/plugin-node-resolve/dist/es/index.js
|
|
1117
1117
|
var import_cjs = /* @__PURE__ */ __toESM(require_cjs(), 1);
|
|
1118
1118
|
var import_is_module = /* @__PURE__ */ __toESM(require_is_module(), 1);
|
|
1119
1119
|
var import_resolve = /* @__PURE__ */ __toESM(require_resolve(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as MagicString } from "../@hiogawa/vite-plugin-fullstack.mjs";
|
|
2
2
|
import { r as createFilter } from "./plugin-commonjs.mjs";
|
|
3
3
|
|
|
4
|
-
//#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.
|
|
4
|
+
//#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.55.1/node_modules/@rollup/plugin-replace/dist/es/index.js
|
|
5
5
|
function escape(str) {
|
|
6
6
|
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
7
7
|
}
|
|
@@ -155,6 +155,22 @@ parentPort.on("message", (payload) => {
|
|
|
155
155
|
process.on("unhandledRejection", (error) => console.error(error));
|
|
156
156
|
process.on("uncaughtException", (error) => console.error(error));
|
|
157
157
|
|
|
158
|
+
// ----- RSC Support -----
|
|
159
|
+
|
|
160
|
+
// define __VITE_ENVIRONMENT_RUNNER_IMPORT__ for RSC support
|
|
161
|
+
// https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-rsc/README.md#__vite_environment_runner_import__
|
|
162
|
+
|
|
163
|
+
globalThis.__VITE_ENVIRONMENT_RUNNER_IMPORT__ = async function (
|
|
164
|
+
environmentName,
|
|
165
|
+
id
|
|
166
|
+
) {
|
|
167
|
+
const env = envs[environmentName];
|
|
168
|
+
if (!env) {
|
|
169
|
+
throw new Error(`Vite environment "${environmentName}" is not registered`);
|
|
170
|
+
}
|
|
171
|
+
return env.runner.import(id);
|
|
172
|
+
};
|
|
173
|
+
|
|
158
174
|
// ----- Server -----
|
|
159
175
|
|
|
160
176
|
async function reload() {
|
package/dist/vite.d.mts
CHANGED
|
@@ -34,7 +34,11 @@ interface NitroPluginConfig extends NitroConfig {
|
|
|
34
34
|
*
|
|
35
35
|
* @default true
|
|
36
36
|
*/
|
|
37
|
-
serverReload
|
|
37
|
+
serverReload?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Additional Vite environment services to register.
|
|
40
|
+
*/
|
|
41
|
+
services?: Record<string, ServiceConfig>;
|
|
38
42
|
};
|
|
39
43
|
};
|
|
40
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.0.1-20260105-
|
|
3
|
+
"version": "3.0.1-20260105-153329-df7fd85e",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"resolutions": {
|
|
59
59
|
"nitro": "link:.",
|
|
60
|
-
"undici": "^7.
|
|
60
|
+
"undici": "^7.17.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"consola": "^3.4.2",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"oxc-minify": "^0.106.0",
|
|
71
71
|
"oxc-transform": "^0.106.0",
|
|
72
72
|
"srvx": "^0.10.0",
|
|
73
|
-
"undici": "^7.
|
|
73
|
+
"undici": "^7.17.0",
|
|
74
74
|
"unenv": "^2.0.0-rc.24",
|
|
75
75
|
"unstorage": "^2.0.0-alpha.4"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@azure/functions": "^3.5.1",
|
|
79
79
|
"@azure/static-web-apps-cli": "^2.0.7",
|
|
80
|
-
"@cloudflare/workers-types": "^4.
|
|
80
|
+
"@cloudflare/workers-types": "^4.20260103.0",
|
|
81
81
|
"@deno/types": "^0.0.1",
|
|
82
82
|
"@hiogawa/vite-plugin-fullstack": "^0.0.11",
|
|
83
83
|
"@netlify/edge-functions": "^3.0.3",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"mlly": "^1.8.0",
|
|
133
133
|
"nf3": "^0.3.1",
|
|
134
134
|
"nypm": "^0.6.2",
|
|
135
|
-
"obuild": "^0.4.
|
|
135
|
+
"obuild": "^0.4.10",
|
|
136
136
|
"pathe": "^2.0.3",
|
|
137
137
|
"perfect-debounce": "^2.0.0",
|
|
138
138
|
"pkg-types": "^2.3.0",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"react": "^19.2.3",
|
|
142
142
|
"rendu": "^0.0.7",
|
|
143
143
|
"rolldown": "1.0.0-beta.58",
|
|
144
|
-
"rollup": "^4.
|
|
144
|
+
"rollup": "^4.55.1",
|
|
145
145
|
"rou3": "^0.7.12",
|
|
146
146
|
"scule": "^1.3.0",
|
|
147
147
|
"semver": "^7.7.3",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"peerDependencies": {
|
|
170
170
|
"nf3": ">=0.3.1",
|
|
171
171
|
"rolldown": "*",
|
|
172
|
-
"rollup": "^4.
|
|
172
|
+
"rollup": "^4.55.1",
|
|
173
173
|
"vite": ">=7.3.0",
|
|
174
174
|
"xml2js": "^0.6.2"
|
|
175
175
|
},
|