Skip to content

Commit

Permalink
Avoid conditional export for ./dist/style.css
Browse files Browse the repository at this point in the history
For some reason that I don't entirely understand, the conditional export here seems to upset postcss-loader (element-hq/element-web#23595 (comment)) -- possibly because this is neither a cjs nor an es6 import. Since both `require` and `import` point to the same file, we might as well make it unconditional.
  • Loading branch information
richvdh authored Jan 4, 2024
1 parent 35d8e06 commit 77ae0eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
"types": "./dist/index.d.ts",
"style": "./dist/style.css"
},
"./dist/style.css": {
"require": "./dist/style.css",
"import": "./dist/style.css"
}
"./dist/style.css": "./dist/style.css"
},
"types": "./dist/index.d.ts",
"scripts": {
Expand Down

0 comments on commit 77ae0eb

Please sign in to comment.