Skip to content

Commit

Permalink
cleaned up rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhitley committed Jun 14, 2023
1 parent 6bfb32c commit d24bb16
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,22 @@ export default async () => {

console.log(files.map(f => f.path))

// const exportInjection = files.map(({ shortPath, esm, cjs, types }) => `
// "${shortPath}": {
// "import": "${esm}",
// "require": "${cjs}",
// "types": "${types}",
// }`).join(',\n')

return files.map(file => ({
input: file.path,
output: [
{
format: 'esm',
file: file.esm,
// sourcemap: true,
sourcemap: false,
},
{
format: 'cjs',
file: file.cjs,
// sourcemap: true,
sourcemap: false,
},
],
plugins: [
typescript({ sourceMap: false }),
typescript({ sourceMap: true }),
terser(),
bundleSize(),
copy({
Expand Down

0 comments on commit d24bb16

Please sign in to comment.