diff --git a/packages/plugin-rsc/src/transforms/index.ts b/packages/plugin-rsc/src/transforms/index.ts index 7a185a783..ab49332a2 100644 --- a/packages/plugin-rsc/src/transforms/index.ts +++ b/packages/plugin-rsc/src/transforms/index.ts @@ -1,5 +1,5 @@ export * from './hoist' -export * from './module-exports' +export * from './module-export-scan' export * from './module-export-effect' export * from './wrap-export' export * from './proxy-export' diff --git a/packages/plugin-rsc/src/transforms/module-export-effect.ts b/packages/plugin-rsc/src/transforms/module-export-effect.ts index 5a051dd0c..d6d6b633e 100644 --- a/packages/plugin-rsc/src/transforms/module-export-effect.ts +++ b/packages/plugin-rsc/src/transforms/module-export-effect.ts @@ -2,7 +2,7 @@ import { tinyassert } from '@hiogawa/utils' import type { Identifier } from 'estree' import MagicString from 'magic-string' import type { ESTree } from 'vite' -import { scanModuleExports, type ModuleExportMeta } from './module-exports' +import { scanModuleExports, type ModuleExportMeta } from './module-export-scan' import { validateNonAsyncFunction } from './utils' // TODO: Metadata, filtering, and returned reference contexts are currently diff --git a/packages/plugin-rsc/src/transforms/module-exports.test.ts b/packages/plugin-rsc/src/transforms/module-export-scan.test.ts similarity index 98% rename from packages/plugin-rsc/src/transforms/module-exports.test.ts rename to packages/plugin-rsc/src/transforms/module-export-scan.test.ts index db83d638a..aae47872b 100644 --- a/packages/plugin-rsc/src/transforms/module-exports.test.ts +++ b/packages/plugin-rsc/src/transforms/module-export-scan.test.ts @@ -1,6 +1,6 @@ import { parseAstAsync } from 'vite' import { expect, test } from 'vitest' -import { scanModuleExports } from './module-exports' +import { scanModuleExports } from './module-export-scan' test(scanModuleExports, async () => { const ast = await parseAstAsync(` diff --git a/packages/plugin-rsc/src/transforms/module-exports.ts b/packages/plugin-rsc/src/transforms/module-export-scan.ts similarity index 100% rename from packages/plugin-rsc/src/transforms/module-exports.ts rename to packages/plugin-rsc/src/transforms/module-export-scan.ts diff --git a/packages/plugin-rsc/src/transforms/wrap-export.ts b/packages/plugin-rsc/src/transforms/wrap-export.ts index bf383f65f..aaa9fcee8 100644 --- a/packages/plugin-rsc/src/transforms/wrap-export.ts +++ b/packages/plugin-rsc/src/transforms/wrap-export.ts @@ -5,7 +5,7 @@ import { scanModuleExports, type ModuleExportEntry, type ModuleExportMeta, -} from './module-exports' +} from './module-export-scan' import { validateNonAsyncFunction } from './utils' type ExportMeta = {