files:
// entry.ts
import { a } from './file'
// file.ts
export const a = 123
config:
export default defineConfig({
entry: ['./entry.ts', './file.ts'],
format: 'esm',
bundle: false,
})
current output | expected output |
---|---|
// entry.mjs
import { a } from "./file";
console.log(a);
// file.mjs
const a = 123;
export { a }; |
// entry.mjs
import { a } from "./file.mjs";
console.log(a);
// file.mjs
const a = 123;
export { a }; |
according to the esm spec, file extensions are mandatory
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too