diff --git a/package.json b/package.json index e6c23651..59ff3d0c 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "jsnext:main": "lib/index.classic.esmodule.js", "main:modern": "lib/index.modern.commonjs.js", "module:modern": "lib/index.modern.esmodule.js", + "browser": "lib/browser.classic.js", "directories": { "test": "tests" }, diff --git a/src/browser-main.js b/src/browser.js similarity index 88% rename from src/browser-main.js rename to src/browser.js index 491bf107..82aa52ef 100644 --- a/src/browser-main.js +++ b/src/browser.js @@ -1,4 +1,4 @@ -import IntlPolyfill from "./core.js"; +import IntlPolyfill from "./index.js"; // hack to export the polyfill as global Intl if needed if (typeof Intl === 'undefined') {