@reckona/mreact-router 0.0.96 → 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/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,