Skip to content

Commit

Permalink
fix: set module: ESNext in typescript plugin (#574)
Browse files Browse the repository at this point in the history
* fix: set module: ESNext in typescript plugin

* chore: put module option inside compilerOptions
  • Loading branch information
jeswr authored Dec 18, 2023
1 parent 0ceef07 commit c796bcb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/base-rollup-config/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
import typescript from "@rollup/plugin-typescript";

export const createSharedConfig = (pkg) => ({
plugins: [typescript()],
plugins: [typescript({
compilerOptions: {
module: 'ESNext'
}
})],
external: [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
Expand Down

0 comments on commit c796bcb

Please sign in to comment.