Skip to content

Commit

Permalink
build: remove .min at umd bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Jan 13, 2022
1 parent ad51c23 commit 5a7e015
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

echo "\nStarting checking...\n"

es-check es5 umd/es5.min.js &
es-check es6 umd/es6.min.js &
es-check es5 umd/es5.js &
es-check es6 umd/es6.js &

wait

Expand Down
4 changes: 2 additions & 2 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ const config = ({ output, esTarget }) => ({
module.exports = [
config({
esTarget: 'es2015', //es6
output: 'umd/es6.min'
output: 'umd/es6'
}),
config({
esTarget: 'es5',
output: 'umd/es5.min'
output: 'umd/es5'
}),
config({
esTarget: 'es2017',
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/compiled-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ The UMD code is compiled with `webpack` to support `>= ES5`. See the
[build config](build/webpack.config.js). You can import these files anywhere (Browser,
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/es6.js`: Production file for ES6+
- `axios-cache-interceptor/umd/es5.js`: Production file for ES5+
- `axios-cache-interceptor/umd/index.js`: Production file for ES2017+

```html
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"exports": {
"import": "./esm/index.js",
"require": "./cjs/index.js",
"default": "./umd/es6.min.js"
"default": "./umd/es6.js"
},
"browser": "./umd/es6.min.js",
"jsdelivr": "./umd/es6.min.js",
"unpkg": "./umd/es6.min.js",
"browser": "./umd/es6.js",
"jsdelivr": "./umd/es6.js",
"unpkg": "./umd/es6.js",
"runkitExampleFilename": "./examples/runkit.js",
"scripts": {
"build": "sh build/build.sh",
Expand Down

0 comments on commit 5a7e015

Please sign in to comment.