@react-router/dev 0.0.0-experimental-213e4b178 → 0.0.0-experimental-0be18542a
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/cli/index.js +18 -17
- package/dist/config.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/vite/cloudflare.js +1 -1
- package/dist/vite.js +18 -17
- package/package.json +6 -6
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* @react-router/dev v0.0.0-experimental-
|
|
3
|
+
* @react-router/dev v0.0.0-experimental-0be18542a
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Remix Software Inc.
|
|
6
6
|
*
|
|
@@ -1169,27 +1169,28 @@ async function getEnvironmentOptionsResolvers(ctx, viteCommand) {
|
|
|
1169
1169
|
function getBaseOptions({
|
|
1170
1170
|
viteUserConfig
|
|
1171
1171
|
}) {
|
|
1172
|
+
const rollupOptions = {
|
|
1173
|
+
preserveEntrySignatures: "exports-only",
|
|
1174
|
+
// Silence Rollup "use client" warnings
|
|
1175
|
+
// Adapted from https://github.com/vitejs/vite-plugin-react/pull/144
|
|
1176
|
+
onwarn(warning, defaultHandler) {
|
|
1177
|
+
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) {
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1180
|
+
let userHandler = viteUserConfig.build?.rollupOptions?.onwarn;
|
|
1181
|
+
if (userHandler) {
|
|
1182
|
+
userHandler(warning, defaultHandler);
|
|
1183
|
+
} else {
|
|
1184
|
+
defaultHandler(warning);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
};
|
|
1172
1188
|
return {
|
|
1173
1189
|
build: {
|
|
1174
1190
|
cssMinify: viteUserConfig.build?.cssMinify ?? true,
|
|
1175
1191
|
manifest: true,
|
|
1176
1192
|
// The manifest is enabled for all builds to detect SSR-only assets
|
|
1177
|
-
rollupOptions
|
|
1178
|
-
preserveEntrySignatures: "exports-only",
|
|
1179
|
-
// Silence Rollup "use client" warnings
|
|
1180
|
-
// Adapted from https://github.com/vitejs/vite-plugin-react/pull/144
|
|
1181
|
-
onwarn(warning, defaultHandler) {
|
|
1182
|
-
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) {
|
|
1183
|
-
return;
|
|
1184
|
-
}
|
|
1185
|
-
let userHandler = viteUserConfig.build?.rollupOptions?.onwarn;
|
|
1186
|
-
if (userHandler) {
|
|
1187
|
-
userHandler(warning, defaultHandler);
|
|
1188
|
-
} else {
|
|
1189
|
-
defaultHandler(warning);
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
+
rollupOptions
|
|
1193
1194
|
}
|
|
1194
1195
|
};
|
|
1195
1196
|
}
|
package/dist/config.js
CHANGED
package/dist/routes.js
CHANGED
package/dist/vite/cloudflare.js
CHANGED
package/dist/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-0be18542a
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -4291,27 +4291,28 @@ async function getEnvironmentOptionsResolvers(ctx, viteCommand) {
|
|
|
4291
4291
|
function getBaseOptions({
|
|
4292
4292
|
viteUserConfig
|
|
4293
4293
|
}) {
|
|
4294
|
+
const rollupOptions = {
|
|
4295
|
+
preserveEntrySignatures: "exports-only",
|
|
4296
|
+
// Silence Rollup "use client" warnings
|
|
4297
|
+
// Adapted from https://github.com/vitejs/vite-plugin-react/pull/144
|
|
4298
|
+
onwarn(warning, defaultHandler) {
|
|
4299
|
+
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) {
|
|
4300
|
+
return;
|
|
4301
|
+
}
|
|
4302
|
+
let userHandler = viteUserConfig.build?.rollupOptions?.onwarn;
|
|
4303
|
+
if (userHandler) {
|
|
4304
|
+
userHandler(warning, defaultHandler);
|
|
4305
|
+
} else {
|
|
4306
|
+
defaultHandler(warning);
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
};
|
|
4294
4310
|
return {
|
|
4295
4311
|
build: {
|
|
4296
4312
|
cssMinify: viteUserConfig.build?.cssMinify ?? true,
|
|
4297
4313
|
manifest: true,
|
|
4298
4314
|
// The manifest is enabled for all builds to detect SSR-only assets
|
|
4299
|
-
rollupOptions
|
|
4300
|
-
preserveEntrySignatures: "exports-only",
|
|
4301
|
-
// Silence Rollup "use client" warnings
|
|
4302
|
-
// Adapted from https://github.com/vitejs/vite-plugin-react/pull/144
|
|
4303
|
-
onwarn(warning, defaultHandler) {
|
|
4304
|
-
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) {
|
|
4305
|
-
return;
|
|
4306
|
-
}
|
|
4307
|
-
let userHandler = viteUserConfig.build?.rollupOptions?.onwarn;
|
|
4308
|
-
if (userHandler) {
|
|
4309
|
-
userHandler(warning, defaultHandler);
|
|
4310
|
-
} else {
|
|
4311
|
-
defaultHandler(warning);
|
|
4312
|
-
}
|
|
4313
|
-
}
|
|
4314
|
-
}
|
|
4315
|
+
rollupOptions
|
|
4315
4316
|
}
|
|
4316
4317
|
};
|
|
4317
4318
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-0be18542a",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"set-cookie-parser": "^2.6.0",
|
|
87
87
|
"valibot": "^0.41.0",
|
|
88
88
|
"vite-node": "3.0.0-beta.2",
|
|
89
|
-
"@react-router/node": "0.0.0-experimental-
|
|
89
|
+
"@react-router/node": "0.0.0-experimental-0be18542a"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@types/babel__core": "^7.20.5",
|
|
@@ -110,15 +110,15 @@
|
|
|
110
110
|
"vite": "^6.1.0",
|
|
111
111
|
"wireit": "0.14.9",
|
|
112
112
|
"wrangler": "^4.2.0",
|
|
113
|
-
"@react-router/serve": "0.0.0-experimental-
|
|
114
|
-
"react-router": "^0.0.0-experimental-
|
|
113
|
+
"@react-router/serve": "0.0.0-experimental-0be18542a",
|
|
114
|
+
"react-router": "^0.0.0-experimental-0be18542a"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"typescript": "^5.1.0",
|
|
118
118
|
"vite": "^5.1.0 || ^6.0.0",
|
|
119
119
|
"wrangler": "^3.28.2 || ^4.0.0",
|
|
120
|
-
"@react-router/serve": "^0.0.0-experimental-
|
|
121
|
-
"react-router": "^0.0.0-experimental-
|
|
120
|
+
"@react-router/serve": "^0.0.0-experimental-0be18542a",
|
|
121
|
+
"react-router": "^0.0.0-experimental-0be18542a"
|
|
122
122
|
},
|
|
123
123
|
"peerDependenciesMeta": {
|
|
124
124
|
"@react-router/serve": {
|