From b6a84aeb3d68328007720e96b8d133d283047b1f Mon Sep 17 00:00:00 2001 From: meikidd Date: Wed, 13 Dec 2017 17:13:42 +0800 Subject: [PATCH] improve: add module filed in package.json. see https://webpack.js.org/configuration/resolve/#resolve-mainfields --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b643c2c..93b18a0 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "2.0.1", "description": "ISO-639-1 codes", "main": "build/index.js", + "module": "src/index.js", "typings": "index.d.ts", "scripts": { "build": "webpack",