@reckona/mreact-router 0.0.95 → 0.0.97
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/adapters/static.d.ts.map +1 -1
- package/dist/adapters/static.js +13 -0
- package/dist/adapters/static.js.map +1 -1
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +12 -9
- package/dist/build.js.map +1 -1
- package/dist/bundle-pipeline.js +18 -0
- package/dist/bundle-pipeline.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +23 -1
- package/dist/client.js.map +1 -1
- package/dist/render.js +4 -4
- package/dist/render.js.map +1 -1
- package/dist/route-source.d.ts +7 -7
- package/dist/route-source.d.ts.map +1 -1
- package/dist/route-source.js +24 -17
- package/dist/route-source.js.map +1 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +32 -5
- package/dist/vite.js.map +1 -1
- package/package.json +11 -11
- package/src/adapters/static.ts +25 -0
- package/src/build.ts +12 -9
- package/src/bundle-pipeline.ts +18 -0
- package/src/client.ts +23 -1
- package/src/render.ts +4 -4
- package/src/route-source.ts +25 -12
- package/src/vite.ts +41 -5
package/dist/render.js
CHANGED
|
@@ -1639,7 +1639,7 @@ function routeSourceAnalysisFromArtifact(artifact) {
|
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
1641
|
async function analyzeRouteSourceUncached(options) {
|
|
1642
|
-
const routeCode = stripRouteModuleExports(options.code);
|
|
1642
|
+
const routeCode = stripRouteModuleExports(options.code, options.filename);
|
|
1643
1643
|
const clientInference = await inferClientRouteModule({
|
|
1644
1644
|
appDir: options.appDir,
|
|
1645
1645
|
cache: options.clientRouteInferenceCache,
|
|
@@ -2126,7 +2126,7 @@ async function renderShellPrefixSuffix(appDir, shell, props, slotContext, server
|
|
|
2126
2126
|
? { client: false, clientBoundaryImports: [], diagnostics: [] }
|
|
2127
2127
|
: await inferClientRouteModule({
|
|
2128
2128
|
cache: clientRouteInferenceCache,
|
|
2129
|
-
code: stripRouteClientOnlyExports(code),
|
|
2129
|
+
code: stripRouteClientOnlyExports(code, shell.file),
|
|
2130
2130
|
filename: shell.file,
|
|
2131
2131
|
vitePlugins,
|
|
2132
2132
|
});
|
|
@@ -2442,7 +2442,7 @@ async function loadRouteLoaderModule(options) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
export async function bundleRouteLoaderModuleCode(options) {
|
|
2444
2444
|
const output = await bundleRouterModule({
|
|
2445
|
-
code: stripRouteLoaderOnlyExports(options.code),
|
|
2445
|
+
code: stripRouteLoaderOnlyExports(options.code, options.filename),
|
|
2446
2446
|
externalizeAppSourceModuleDirs: options.externalizeAppSourceModuleDirs,
|
|
2447
2447
|
filename: options.filename,
|
|
2448
2448
|
platform: "node",
|
|
@@ -2538,7 +2538,7 @@ function isRouteMetadata(value) {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
async function bundleRouteMetadataModuleCode(options) {
|
|
2540
2540
|
const output = await bundleRouterModule({
|
|
2541
|
-
code: stripRouteMetadataOnlyExports(options.code),
|
|
2541
|
+
code: stripRouteMetadataOnlyExports(options.code, options.filename),
|
|
2542
2542
|
filename: options.filename,
|
|
2543
2543
|
platform: "node",
|
|
2544
2544
|
vitePlugins: options.vitePlugins,
|