Skip to content

Commit

Permalink
fix: fixed rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
theshadowagent committed Feb 21, 2022
1 parent 5c74ac9 commit 47fa767
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,16 @@ const globals = {
};

const config = {
preserveModules: true,
input: 'src/package/index.tsx',
inlineDynamicImports: true,
output: [
{
// file: packageJson.main,
dir: packageJson.main,
file: packageJson.main,
format: 'cjs', // commonJS
sourcemap: true,
},
{
// file: packageJson.module,
dir: packageJson.module,
file: packageJson.module,
format: 'esm', // ES Modules
sourcemap: true,
},
Expand Down

0 comments on commit 47fa767

Please sign in to comment.