Skip to content

Commit

Permalink
fix: fix auto & update README
Browse files Browse the repository at this point in the history
  • Loading branch information
calimanco committed Jan 20, 2021
1 parent 1e4fd9d commit 63d8d04
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ require('promise-polyfill-plus/auto')
下面示例仅供参考,生产环境不建议直接用下载链接。

```html
<!--Uncompressed version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/download/v1.5.1/promise-polyfill-plus.umd.auto.js'></scirpt>
<!--Compressed version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/download/v1.5.1/promise-polyfill-plus.umd.auto.min.js'></scirpt>
<!--Uncompressed umd version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/latest/promise-polyfill-plus.umd.auto.js'></scirpt>
<!--Compressed umd version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/latest/promise-polyfill-plus.umd.auto.min.js'></scirpt>
```

## 特性
Expand Down
8 changes: 4 additions & 4 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ If you want to use it directly in HTML, please go to the Github Releases page to
The following example is for reference only. It is not recommended using the download link directly in the production environment.

```html
<!--Uncompressed version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/download/v1.5.1/promise-polyfill-plus.umd.auto.js'></scirpt>
<!--Compressed version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/download/v1.5.1/promise-polyfill-plus.umd.auto.min.js'></scirpt>
<!--Uncompressed umd version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/latest/promise-polyfill-plus.umd.auto.js'></scirpt>
<!--Compressed umd version-->
<scirpt src='https://github.com/calimanco/promise-polyfill-plus/releases/latest/promise-polyfill-plus.umd.auto.min.js'></scirpt>
```

## Features
Expand Down
3 changes: 2 additions & 1 deletion auto.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict'

require('./dist/promise-polyfill-plus.umd.auto.js')
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('./dist/promise-polyfill-plus.umd.js').autoPolyfill()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typescript"
],
"main": "dist/promise-polyfill-plus.umd.js",
"module": "dist/promise-polyfill-plus.es5.js",
"module": "dist/promise-polyfill-plus.es6.js",
"typings": "dist/types/index.d.ts",
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
file: pkg.main.replace('.js', '.auto.js'),
name: camelCase(libraryName),
format: 'umd',
sourcemap: true,
sourcemap: false,
outro: 'autoPolyfill()',
exports: 'named'
},
Expand Down

0 comments on commit 63d8d04

Please sign in to comment.