@react-router/dev 0.0.0-experimental-ecd35cd60 → 0.0.0-experimental-9c1812606
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/commands.js +1 -1
- package/dist/cli/detectPackageManager.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/run.js +1 -1
- package/dist/cli/useJavascript.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/colors.js +1 -1
- package/dist/config/findConfig.js +1 -1
- package/dist/config/flatRoutes.js +2 -2
- package/dist/config/format.js +1 -1
- package/dist/config/routes.js +1 -1
- package/dist/config.d.ts +0 -3
- package/dist/config.js +4 -9
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -3
- package/dist/invariant.js +1 -1
- package/dist/vite/babel.js +1 -1
- package/dist/vite/build.js +1 -1
- package/dist/vite/cloudflare-dev-proxy.d.ts +15 -0
- package/dist/vite/cloudflare-dev-proxy.js +82 -0
- package/dist/vite/combine-urls-test.d.ts +1 -0
- package/dist/vite/combine-urls.d.ts +1 -0
- package/dist/vite/combine-urls.js +20 -0
- package/dist/vite/define-route.js +1 -1
- package/dist/vite/dev.js +1 -1
- package/dist/vite/import-vite-esm-sync.js +1 -1
- package/dist/vite/node-adapter.js +1 -1
- package/dist/vite/plugin.d.ts +1 -1
- package/dist/vite/plugin.js +9 -8
- package/dist/vite/profiler.js +1 -1
- package/dist/vite/remove-exports.js +1 -1
- package/dist/vite/resolve-file-url.js +1 -1
- package/dist/vite/styles.js +1 -1
- package/dist/vite/vmod.js +1 -1
- package/package.json +18 -6
- package/dist/vite/index.d.ts +0 -2
- package/dist/vite/index.js +0 -24
package/dist/cli/commands.js
CHANGED
package/dist/cli/index.js
CHANGED
package/dist/cli/run.js
CHANGED
package/dist/cli.js
CHANGED
package/dist/colors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9c1812606
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -298,7 +298,7 @@ function getRouteSegments(routeId) {
|
|
|
298
298
|
rawRouteSegment += char;
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
|
-
if (!routeSegment && char
|
|
301
|
+
if (!routeSegment && char === paramPrefixChar) {
|
|
302
302
|
if (index === routeId.length) {
|
|
303
303
|
routeSegment += "*";
|
|
304
304
|
rawRouteSegment += char;
|
package/dist/config/format.js
CHANGED
package/dist/config/routes.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -36,9 +36,6 @@ export type ServerBundlesBuildManifest = BaseBuildManifest & {
|
|
|
36
36
|
};
|
|
37
37
|
type ServerModuleFormat = "esm" | "cjs";
|
|
38
38
|
interface FutureConfig {
|
|
39
|
-
v3_fetcherPersist: boolean;
|
|
40
|
-
v3_relativeSplatPath: boolean;
|
|
41
|
-
v3_throwAbortReason: boolean;
|
|
42
39
|
}
|
|
43
40
|
export type BuildManifest = DefaultBuildManifest | ServerBundlesBuildManifest;
|
|
44
41
|
type BuildEndHook = (args: {
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9c1812606
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -122,7 +122,6 @@ async function resolveReactRouterConfig({
|
|
|
122
122
|
basename,
|
|
123
123
|
buildDirectory: userBuildDirectory,
|
|
124
124
|
buildEnd,
|
|
125
|
-
future: userFuture,
|
|
126
125
|
ignoredRouteFiles,
|
|
127
126
|
routes: userRoutesFunction,
|
|
128
127
|
prerender: prerenderConfig,
|
|
@@ -185,11 +184,7 @@ async function resolveReactRouterConfig({
|
|
|
185
184
|
};
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
|
-
let future = {
|
|
189
|
-
v3_fetcherPersist: (userFuture === null || userFuture === void 0 ? void 0 : userFuture.v3_fetcherPersist) === true,
|
|
190
|
-
v3_relativeSplatPath: (userFuture === null || userFuture === void 0 ? void 0 : userFuture.v3_relativeSplatPath) === true,
|
|
191
|
-
v3_throwAbortReason: (userFuture === null || userFuture === void 0 ? void 0 : userFuture.v3_throwAbortReason) === true
|
|
192
|
-
};
|
|
187
|
+
let future = {};
|
|
193
188
|
let reactRouterConfig = deepFreeze({
|
|
194
189
|
appDirectory,
|
|
195
190
|
basename,
|
|
@@ -232,11 +227,11 @@ async function resolveEntryFiles({
|
|
|
232
227
|
throw new Error(`Could not determine server runtime. Please install @react-router/node, or provide a custom entry.server.tsx/jsx file in your app directory.`);
|
|
233
228
|
}
|
|
234
229
|
if (!deps["isbot"]) {
|
|
235
|
-
console.log("adding `isbot` to your package.json, you should commit this change");
|
|
230
|
+
console.log("adding `isbot@5` to your package.json, you should commit this change");
|
|
236
231
|
pkgJson.update({
|
|
237
232
|
dependencies: {
|
|
238
233
|
...pkgJson.content.dependencies,
|
|
239
|
-
isbot: "^
|
|
234
|
+
isbot: "^5"
|
|
240
235
|
}
|
|
241
236
|
});
|
|
242
237
|
await pkgJson.save();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as cli from "./cli/index";
|
|
2
2
|
export type { Manifest as AssetsManifest } from "./manifest";
|
|
3
3
|
export type { BuildManifest, Preset, ServerBundlesFunction, VitePluginConfig, } from "./config";
|
|
4
|
-
export { vitePlugin } from "./vite";
|
|
4
|
+
export { reactRouterVitePlugin as vitePlugin } from "./vite/plugin";
|
|
5
|
+
export { cloudflareDevProxyVitePlugin } from "./vite/cloudflare-dev-proxy";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9c1812606
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
14
|
|
|
15
15
|
var index = require('./cli/index.js');
|
|
16
|
-
var
|
|
16
|
+
var plugin = require('./vite/plugin.js');
|
|
17
|
+
var cloudflareDevProxy = require('./vite/cloudflare-dev-proxy.js');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
exports.cli = index;
|
|
21
|
-
exports.vitePlugin =
|
|
22
|
+
exports.vitePlugin = plugin.reactRouterVitePlugin;
|
|
23
|
+
exports.cloudflareDevProxyVitePlugin = cloudflareDevProxy.cloudflareDevProxyVitePlugin;
|
package/dist/invariant.js
CHANGED
package/dist/vite/babel.js
CHANGED
package/dist/vite/build.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AppLoadContext } from "react-router";
|
|
2
|
+
import { type Plugin } from "vite";
|
|
3
|
+
import { type GetPlatformProxyOptions, type PlatformProxy } from "wrangler";
|
|
4
|
+
type CfProperties = Record<string, unknown>;
|
|
5
|
+
type LoadContext<Env, Cf extends CfProperties> = {
|
|
6
|
+
cloudflare: Omit<PlatformProxy<Env, Cf>, "dispose">;
|
|
7
|
+
};
|
|
8
|
+
type GetLoadContext<Env, Cf extends CfProperties> = (args: {
|
|
9
|
+
request: Request;
|
|
10
|
+
context: LoadContext<Env, Cf>;
|
|
11
|
+
}) => AppLoadContext | Promise<AppLoadContext>;
|
|
12
|
+
export declare const cloudflareDevProxyVitePlugin: <Env, Cf extends CfProperties>({ getLoadContext, ...options }?: {
|
|
13
|
+
getLoadContext?: GetLoadContext<Env, Cf>;
|
|
14
|
+
} & GetPlatformProxyOptions) => Plugin;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9c1812606
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
|
+
|
|
15
|
+
var reactRouter = require('react-router');
|
|
16
|
+
var nodeAdapter = require('./node-adapter.js');
|
|
17
|
+
|
|
18
|
+
let serverBuildId = "virtual:react-router/server-build";
|
|
19
|
+
function importWrangler() {
|
|
20
|
+
try {
|
|
21
|
+
return import('wrangler');
|
|
22
|
+
} catch (_) {
|
|
23
|
+
throw Error("Could not import `wrangler`. Do you have it installed?");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const PLUGIN_NAME = "react-router-cloudflare-vite-dev-proxy";
|
|
27
|
+
const cloudflareDevProxyVitePlugin = ({
|
|
28
|
+
getLoadContext,
|
|
29
|
+
...options
|
|
30
|
+
} = {}) => {
|
|
31
|
+
return {
|
|
32
|
+
name: PLUGIN_NAME,
|
|
33
|
+
config: () => ({
|
|
34
|
+
ssr: {
|
|
35
|
+
resolve: {
|
|
36
|
+
externalConditions: ["workerd", "worker"]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}),
|
|
40
|
+
configResolved: viteConfig => {
|
|
41
|
+
let pluginIndex = name => viteConfig.plugins.findIndex(plugin => plugin.name === name);
|
|
42
|
+
let reactRouterPluginIndex = pluginIndex("react-router");
|
|
43
|
+
if (reactRouterPluginIndex >= 0 && reactRouterPluginIndex < pluginIndex(PLUGIN_NAME)) {
|
|
44
|
+
throw new Error(`The "${PLUGIN_NAME}" plugin should be placed before the React Router plugin in your Vite config file`);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
configureServer: async viteDevServer => {
|
|
48
|
+
let {
|
|
49
|
+
getPlatformProxy
|
|
50
|
+
} = await importWrangler();
|
|
51
|
+
// Do not include `dispose` in Cloudflare context
|
|
52
|
+
let {
|
|
53
|
+
dispose,
|
|
54
|
+
...cloudflare
|
|
55
|
+
} = await getPlatformProxy(options);
|
|
56
|
+
let context = {
|
|
57
|
+
cloudflare
|
|
58
|
+
};
|
|
59
|
+
return () => {
|
|
60
|
+
if (!viteDevServer.config.server.middlewareMode) {
|
|
61
|
+
viteDevServer.middlewares.use(async (nodeReq, nodeRes, next) => {
|
|
62
|
+
try {
|
|
63
|
+
let build = await viteDevServer.ssrLoadModule(serverBuildId);
|
|
64
|
+
let handler = reactRouter.createRequestHandler(build, "development");
|
|
65
|
+
let req = nodeAdapter.fromNodeRequest(nodeReq);
|
|
66
|
+
let loadContext = getLoadContext ? await getLoadContext({
|
|
67
|
+
request: req,
|
|
68
|
+
context
|
|
69
|
+
}) : context;
|
|
70
|
+
let res = await handler(req, loadContext);
|
|
71
|
+
await nodeAdapter.toNodeRequest(res, nodeRes);
|
|
72
|
+
} catch (error) {
|
|
73
|
+
next(error);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.cloudflareDevProxyVitePlugin = cloudflareDevProxyVitePlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function combineURLs(baseURL: string, relativeURL: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9c1812606
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
|
+
|
|
15
|
+
// Borrowed from axios: https://github.com/axios/axios/blob/0e4f9fa29077ebee4499facea6be1492b42e8a26/lib/helpers/combineURLs.js#L11-L15
|
|
16
|
+
function combineURLs(baseURL, relativeURL) {
|
|
17
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
exports.combineURLs = combineURLs;
|
package/dist/vite/dev.js
CHANGED
package/dist/vite/plugin.d.ts
CHANGED
|
@@ -67,6 +67,6 @@ export type ReactRouterPluginContext = ReactRouterPluginSsrBuildContext & {
|
|
|
67
67
|
export declare let getServerBuildDirectory: (ctx: ReactRouterPluginContext) => string;
|
|
68
68
|
type MaybePromise<T> = T | Promise<T>;
|
|
69
69
|
export declare let setReactRouterDevLoadContext: (loadContext: (request: Request) => MaybePromise<Record<string, unknown>>) => void;
|
|
70
|
-
|
|
70
|
+
type ReactRouterVitePlugin = (config?: VitePluginConfig) => Vite.Plugin[];
|
|
71
71
|
export declare const reactRouterVitePlugin: ReactRouterVitePlugin;
|
|
72
72
|
export {};
|
package/dist/vite/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9c1812606
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -27,6 +27,7 @@ var nodeAdapter = require('./node-adapter.js');
|
|
|
27
27
|
var styles = require('./styles.js');
|
|
28
28
|
var vmod = require('./vmod.js');
|
|
29
29
|
var resolveFileUrl = require('./resolve-file-url.js');
|
|
30
|
+
var combineUrls = require('./combine-urls.js');
|
|
30
31
|
var removeExports = require('./remove-exports.js');
|
|
31
32
|
var importViteEsmSync = require('./import-vite-esm-sync.js');
|
|
32
33
|
var config = require('../config.js');
|
|
@@ -448,7 +449,7 @@ const reactRouterVitePlugin = _config => {
|
|
|
448
449
|
path: route.path,
|
|
449
450
|
index: route.index,
|
|
450
451
|
caseSensitive: route.caseSensitive,
|
|
451
|
-
module:
|
|
452
|
+
module: combineUrls.combineURLs(ctx.publicPath, `${resolveFileUrl.resolveFileUrl(ctx, resolveRelativeRouteFilePath(route, ctx.reactRouterConfig))}${ROUTE_ENTRY_QUERY_STRING}`),
|
|
452
453
|
hasAction: sourceExports.includes("action"),
|
|
453
454
|
hasLoader: sourceExports.includes("loader"),
|
|
454
455
|
hasClientAction: sourceExports.includes("clientAction"),
|
|
@@ -459,12 +460,12 @@ const reactRouterVitePlugin = _config => {
|
|
|
459
460
|
}
|
|
460
461
|
return {
|
|
461
462
|
version: String(Math.random()),
|
|
462
|
-
url:
|
|
463
|
+
url: combineUrls.combineURLs(ctx.publicPath, vmod.url(browserManifestId)),
|
|
463
464
|
hmr: {
|
|
464
|
-
runtime:
|
|
465
|
+
runtime: combineUrls.combineURLs(ctx.publicPath, vmod.url(injectHmrRuntimeId))
|
|
465
466
|
},
|
|
466
467
|
entry: {
|
|
467
|
-
module:
|
|
468
|
+
module: combineUrls.combineURLs(ctx.publicPath, resolveFileUrl.resolveFileUrl(ctx, ctx.entryClientFilePath)),
|
|
468
469
|
imports: []
|
|
469
470
|
},
|
|
470
471
|
routes
|
|
@@ -510,7 +511,7 @@ const reactRouterVitePlugin = _config => {
|
|
|
510
511
|
// This is only needed within this repo because these packages
|
|
511
512
|
// are linked to a directory outside of node_modules so Vite
|
|
512
513
|
// treats them as internal code by default.
|
|
513
|
-
"react-router", "react-router-dom", "@react-router/dev", "@react-router/express", "@react-router/node", "@react-router/serve"] : undefined
|
|
514
|
+
"react-router", "react-router-dom", "@react-router/cloudflare", "@react-router/dev", "@react-router/express", "@react-router/node", "@react-router/serve"] : undefined
|
|
514
515
|
},
|
|
515
516
|
optimizeDeps: {
|
|
516
517
|
include: [
|
|
@@ -1088,8 +1089,8 @@ async function getRouteMetadata(ctx, viteChildCompiler, route, readRouteFile) {
|
|
|
1088
1089
|
path: route.path,
|
|
1089
1090
|
index: route.index,
|
|
1090
1091
|
caseSensitive: route.caseSensitive,
|
|
1091
|
-
url:
|
|
1092
|
-
module:
|
|
1092
|
+
url: combineUrls.combineURLs(ctx.publicPath, "/" + path__namespace.relative(ctx.rootDirectory, resolveRelativeRouteFilePath(route, ctx.reactRouterConfig))),
|
|
1093
|
+
module: combineUrls.combineURLs(ctx.publicPath, `${resolveFileUrl.resolveFileUrl(ctx, resolveRelativeRouteFilePath(route, ctx.reactRouterConfig))}?import`),
|
|
1093
1094
|
// Ensure the Vite dev server responds with a JS module
|
|
1094
1095
|
hasAction: sourceExports.includes("action"),
|
|
1095
1096
|
hasClientAction: sourceExports.includes("clientAction"),
|
package/dist/vite/profiler.js
CHANGED
package/dist/vite/styles.js
CHANGED
package/dist/vite/vmod.js
CHANGED
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-9c1812606",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -14,6 +14,13 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"typings": "dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
17
24
|
"bin": {
|
|
18
25
|
"react-router": "bin.js"
|
|
19
26
|
},
|
|
@@ -43,7 +50,7 @@
|
|
|
43
50
|
"react-refresh": "^0.14.0",
|
|
44
51
|
"semver": "^7.3.7",
|
|
45
52
|
"set-cookie-parser": "^2.6.0",
|
|
46
|
-
"@react-router/node": "0.0.0-experimental-
|
|
53
|
+
"@react-router/node": "0.0.0-experimental-9c1812606"
|
|
47
54
|
},
|
|
48
55
|
"devDependencies": {
|
|
49
56
|
"@types/babel__core": "^7.20.5",
|
|
@@ -67,14 +74,16 @@
|
|
|
67
74
|
"strip-ansi": "^6.0.1",
|
|
68
75
|
"tiny-invariant": "^1.2.0",
|
|
69
76
|
"vite": "^5.1.0",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
77
|
+
"wrangler": "^3.28.2",
|
|
78
|
+
"react-router": "^0.0.0-experimental-9c1812606",
|
|
79
|
+
"@react-router/serve": "0.0.0-experimental-9c1812606"
|
|
72
80
|
},
|
|
73
81
|
"peerDependencies": {
|
|
74
82
|
"typescript": "^5.1.0",
|
|
75
83
|
"vite": "^5.1.0",
|
|
76
|
-
"
|
|
77
|
-
"react-router": "^0.0.0-experimental-
|
|
84
|
+
"wrangler": "^3.28.2",
|
|
85
|
+
"react-router": "^0.0.0-experimental-9c1812606",
|
|
86
|
+
"@react-router/serve": "^0.0.0-experimental-9c1812606"
|
|
78
87
|
},
|
|
79
88
|
"peerDependenciesMeta": {
|
|
80
89
|
"@react-router/serve": {
|
|
@@ -82,6 +91,9 @@
|
|
|
82
91
|
},
|
|
83
92
|
"typescript": {
|
|
84
93
|
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"wrangler": {
|
|
96
|
+
"optional": true
|
|
85
97
|
}
|
|
86
98
|
},
|
|
87
99
|
"engines": {
|
package/dist/vite/index.d.ts
DELETED
package/dist/vite/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-ecd35cd60
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
|
-
|
|
15
|
-
const vitePlugin = (...args) => {
|
|
16
|
-
let {
|
|
17
|
-
reactRouterVitePlugin
|
|
18
|
-
} =
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
20
|
-
require("./plugin");
|
|
21
|
-
return reactRouterVitePlugin(...args);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
exports.vitePlugin = vitePlugin;
|