Skip to content

Commit

Permalink
fix(esm): ensure index.mjs is compatible with rollup umd build
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Oct 20, 2023
1 parent 3a0fbfd commit 40b92c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esm/index.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import StyleToObject from '../cjs/index.js';

export default StyleToObject.default;
// ensure compatibility with rollup umd build
export default StyleToObject.default || StyleToObject;

0 comments on commit 40b92c3

Please sign in to comment.