Skip to content

Commit 73de5e6

Browse files
committed
Drop the browser field from the package.json
I think I made a mistake by adding this in the first place. Having the browser field point to a CommonJS build keeps ESM-aware bundlers from going to the "module" field like we want them to. For the non-ESM bundlers, the UMD build only adds a couple hundred bytes or so.
1 parent 488020a commit 73de5e6

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "3.0.0",
44
"description": "A simple set of utility functions for colours.",
55
"main": "dist/chromatism.umd.js",
6-
"browser": "dist/chromatism.cjs.js",
76
"module": "src/operations/index.js",
87
"typings": "./index.d.ts",
98
"repository": "toish/chromatism",

rollup.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ export default {
1717
],
1818
targets: [
1919
{ dest: pkg.main, format: 'umd' },
20-
{ dest: pkg.browser, format: 'cjs' }
2120
]
2221
}

0 commit comments

Comments
 (0)