Skip to content

Commit

Permalink
chore: use .mjs import
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Feb 15, 2021
1 parent c9b1e34 commit 2d19dbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"ssr"
],
"main": "./lib/index.js",
"module": "./lib/es-relay-hooks.js",
"module": "./lib/es-relay-hooks.mjs",
"exports": {
"import": "./lib/es-relay-hooks.js",
"import": "./lib/es-relay-hooks.mjs",
"require": "./lib/index.js"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function createConfigInternal({ format, production }) {
return {
input: 'src/index.ts',
output: {
file: 'lib/' + format + '-relay-hooks' + (production ? '.min' : '') + '.js',
file: 'lib/' + format + '-relay-hooks' + (production ? '.min' : '') + (format === "es" ? ".mjs" : '.js'),
format,
name: 'relay-hooks',
indent: false,
Expand Down

0 comments on commit 2d19dbb

Please sign in to comment.