Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Commit f15d69a

Browse files
committed
将 tslib 作为依赖
1 parent 832fa48 commit f15d69a

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

build/build.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const uglifyJS = require('uglify-js')
1414
rollup
1515
.rollup({
1616
input: config.input,
17-
plugins: [config.tp]
17+
plugins: [config.tp],
18+
external: ['tinyemitter', 'tslib']
1819
})
1920
.then(bundle => {
2021
// 输出 es 格式

package-lock.json

+4-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"files": ["dist", "libs", "declaration"],
2828
"dependencies": {
2929
"@types/chrome": "0.0.52",
30-
"tinyemitter": "^1.0.1"
30+
"tinyemitter": "^1.0.1",
31+
"tslib": "^1.8.0"
3132
},
3233
"devDependencies": {
3334
"@types/es6-promise": "0.0.33",
@@ -44,7 +45,7 @@
4445
"karma-safari-launcher": "^1.0.0",
4546
"karma-typescript": "^3.0.8",
4647
"phantomjs-prebuilt": "^2.1.16",
47-
"rollup": "^0.50.1",
48+
"rollup": "^0.51.3",
4849
"rollup-plugin-commonjs": "^8.2.6",
4950
"rollup-plugin-node-resolve": "^3.0.0",
5051
"rollup-plugin-typescript2": "^0.8.0",

0 commit comments

Comments
 (0)