Skip to content

Commit 8cc908a

Browse files
authored
fix: only handle ./ prefix modules for ExportNamedDeclaration (#327)
1 parent c393b60 commit 8cc908a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/output/moduleCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function processModule(store: Store, src: string, filename: string) {
201201
}
202202
}
203203
s.remove(node.start!, node.declaration.start!)
204-
} else if (node.source) {
204+
} else if (node.source && node.source.value.startsWith('./')) {
205205
// export { foo, bar } from './foo'
206206
const importId = defineImport(node, node.source.value)
207207
for (const spec of node.specifiers) {

0 commit comments

Comments
 (0)