Skip to content

Commit

Permalink
Changing the esm dist filenames due to .mjs still suck now.
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Jul 1, 2019
1 parent 564a866 commit d653408
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"custom"
],
"main": "dist/rsc.js",
"module": "dist/rsc.mjs",
"esnext": "dist/rsc.next.mjs",
"module": "dist/rsc.esm.js",
"esnext": "dist/rsc.next.esm.js",
"types": "dist/types/index.d.ts",
"files": [
"dist"
Expand All @@ -37,9 +37,9 @@
"react": "^16.0.0"
},
"dependencies": {
"cnbuilder": "^1.1.4",
"cnbuilder": "^1.1.6",
"react-draggable": "^3.3.0",
"zoom-level": "^1.2.3"
"zoom-level": "^1.2.4"
},
"devDependencies": {
"@babel/core": "^7.4.4",
Expand Down
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export default [
output: [
{
file: pkg.esnext,
format: "es"
format: "es",
exports: "named"
}
],

Expand Down Expand Up @@ -45,7 +46,8 @@ export default [
},
{
file: pkg.module,
format: "esm"
format: "esm",
exports: "named"
}
],

Expand Down

0 comments on commit d653408

Please sign in to comment.