Skip to content

Commit

Permalink
fix: πŸ› mjs causing an elusive bug in webpack module resolution
Browse files Browse the repository at this point in the history
Changed i18n.mjs to i18n.esm.js to prevent webpack to only accept .mjs
imports inside the library. Webpack was importing the cjs version of
Intl-Formatmessage and messing things up.

Issues: #36
  • Loading branch information
kaisermann committed Jan 14, 2020
1 parent 88a3558 commit b2dc782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "svelte-i18n",
"version": "2.2.1",
"main": "dist/i18n.js",
"module": "dist/i18n.mjs",
"main": "dist/i18n.cjs.js",
"module": "dist/i18n.esm.js",
"bin": {
"svelte-i18n": "dist/cli.js"
},
Expand Down

0 comments on commit b2dc782

Please sign in to comment.