mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 09:59:58 +01:00
fix: 🐛 mjs causing an elusive bug in webpack module resolution
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
This commit is contained in:
parent
88a35580c3
commit
b2dc7828c5
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user