Skip to content

Commit 4344868

Browse files
committed
fix(bundle): ugprade bundle building
1 parent ef924e7 commit 4344868

8 files changed

Lines changed: 856 additions & 41 deletions

File tree

.babelrc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
{
2-
"presets": [
3-
"@babel/preset-env"
4-
],
52
"env": {
63
"production": {
74
"presets": [
8-
"minify"
5+
[
6+
"@babel/env",
7+
{ "modules": false },
8+
"minify"
9+
]
910
]
1011
}
1112
},
1213
"plugins": [
1314
"@babel/transform-runtime",
1415
"@babel/transform-async-to-generator",
15-
"@babel/plugin-proposal-object-rest-spread"
16+
"@babel/plugin-proposal-object-rest-spread",
17+
"@babel/plugin-external-helpers"
1618
],
1719
"ignore": [
18-
"node_modules"
20+
"node_modules/**",
21+
"*.test.js"
1922
]
2023
}

.npmignore

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
node_modules/**
2+
3+
src/**
4+
test/**
5+
coverage/**
6+
7+
npm-debug.log
8+
commitlint.config.js
9+
rollup.config.js
10+
*.test.js
11+
112
.DS_Store
213
.eslintcache
3-
node_modules
4-
npm-debug.log
514
.travis.yml
6-
src/
7-
test/
8-
*.test.js
9-
coverage/
15+
.babelrc
16+
.eslintignore
17+
.eslintrc

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
include:
1515
- stage: test
1616
script:
17-
- npm run compile:prod
17+
- npm run build:production
1818
- npm run lint
1919
- npm run test
2020
before_script: greenkeeper-lockfile-update

0 commit comments

Comments
 (0)