diff --git a/build/webpack.config.js b/build/webpack.config.js index a25a18e..b938ddc 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -9,15 +9,14 @@ const root = (...p) => path.resolve(__dirname, '..', ...p); /** * @param {{ * output: string; - * entry: string; * esTarget: string; * }} options * @returns {import('webpack').Configuration} */ -const config = ({ output, esTarget, entry }) => ({ +const config = ({ output, esTarget }) => ({ mode: 'production', - entry: root('src', entry), + entry: root('src', 'index.ts'), output: { path: root(), @@ -64,12 +63,14 @@ const config = ({ output, esTarget, entry }) => ({ module.exports = [ config({ esTarget: 'es2015', //es6 - entry: 'index.ts', output: 'umd/es6.min' }), config({ esTarget: 'es5', - entry: 'index.ts', output: 'umd/es5.min' + }), + config({ + esTarget: 'es2017', + output: 'umd/index' }) ]; diff --git a/docs/pages/compiled-code.md b/docs/pages/compiled-code.md index 513a63c..7637c37 100644 --- a/docs/pages/compiled-code.md +++ b/docs/pages/compiled-code.md @@ -19,6 +19,7 @@ CommonsJS, ESM and more) - `axios-cache-interceptor/umd/es6.min.js`: Production file for ES6+ - `axios-cache-interceptor/umd/es5.min.js`: Production file for ES5+ +- `axios-cache-interceptor/umd/index.js`: Production file for ES2017+ ```html