From b2dc7828c55b23be05adb0791816cc7bc9910af2 Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Mon, 13 Jan 2020 21:20:04 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20mjs=20causing=20an=20elus?= =?UTF-8?q?ive=20bug=20in=20webpack=20module=20resolution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b5e8d91..541c669 100644 --- a/package.json +++ b/package.json @@ -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" },