Skip to content

Commit 40b92c3

Browse files
fix(esm): ensure index.mjs is compatible with rollup umd build
1 parent 3a0fbfd commit 40b92c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esm/index.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import StyleToObject from '../cjs/index.js';
22

3-
export default StyleToObject.default;
3+
// ensure compatibility with rollup umd build
4+
export default StyleToObject.default || StyleToObject;

0 commit comments

Comments
 (0)