From c796bcb7226cc0b214b4684ee4517b20b724dca5 Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Mon, 18 Dec 2023 12:51:16 +0000 Subject: [PATCH] fix: set module: ESNext in typescript plugin (#574) * fix: set module: ESNext in typescript plugin * chore: put module option inside compilerOptions --- packages/base-rollup-config/index.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/base-rollup-config/index.mjs b/packages/base-rollup-config/index.mjs index 515a3335..e5f4adad 100644 --- a/packages/base-rollup-config/index.mjs +++ b/packages/base-rollup-config/index.mjs @@ -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 || {}),