Skip to content

Commit

Permalink
fix: Build @rocket.chat/css-in-js as ES module (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Mar 16, 2020
1 parent b69d700 commit 910c85c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/css-in-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"css-in-js"
],
"main": "dist/index.js",
"module": "dist/index.mjs",
"files": [
"dist"
],
Expand Down
5 changes: 5 additions & 0 deletions packages/css-in-js/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export default {
format: 'cjs',
sourcemap: true,
},
{
file: pkg.module,
format: 'esm',
sourcemap: true,
},
],
plugins: [
external(),
Expand Down
2 changes: 0 additions & 2 deletions packages/fuselage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@
}
},
"dependencies": {
"@emotion/hash": "^0.8.0",
"@emotion/stylis": "^0.8.5",
"@rocket.chat/css-in-js": "^0.4.0",
"@rocket.chat/fuselage-tokens": "^0.4.0",
"@rocket.chat/icons": "^0.4.0"
Expand Down

0 comments on commit 910c85c

Please sign in to comment.