Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 9c46429

Browse files
committed
chore: update rollup configuration to modern best practices
1 parent 7b3e89c commit 9c46429

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.rollup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const output = isCLI
1111
? { file: 'cli.js', format: 'cjs', sourcemap: true, strict: false }
1212
: isPostCSS
1313
? [
14-
{ file: 'postcss.js', format: 'cjs', sourcemap: true },
14+
{ file: 'postcss.js', format: 'cjs', exports: 'default', sourcemap: true },
1515
{ file: 'postcss.mjs', format: 'esm', sourcemap: true }
1616
] : isBrowser
17-
? { file: 'browser.js', format: 'cjs', sourcemap: true, strict: false }
17+
? { file: 'browser.js', format: 'cjs', exports: 'default', sourcemap: true, strict: false }
1818
: [
19-
{ file: 'index.js', format: 'cjs', sourcemap: true },
19+
{ file: 'index.js', format: 'cjs', exports: 'default', sourcemap: true },
2020
{ file: 'index.mjs', format: 'esm', sourcemap: true }
2121
];
2222

0 commit comments

Comments
 (0)