Skip to content

Commit 94cf00d

Browse files
committed
apply csp patch
1 parent a8d6330 commit 94cf00d

File tree

9 files changed

+4705
-52
lines changed

9 files changed

+4705
-52
lines changed

build/build.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ rollup.rollup({
2626
entry: 'src/index.js',
2727
plugins: [
2828
babel({
29-
loose: 'all'
29+
loose: 'all',
30+
exclude: 'lib/**'
3031
})
3132
]
3233
})
@@ -45,7 +46,8 @@ rollup.rollup({
4546
'process.env.NODE_ENV': "'development'"
4647
}),
4748
babel({
48-
loose: 'all'
49+
loose: 'all',
50+
exclude: 'lib/**'
4951
})
5052
]
5153
})
@@ -66,7 +68,8 @@ rollup.rollup({
6668
'process.env.NODE_ENV': "'production'"
6769
}),
6870
babel({
69-
loose: 'all'
71+
loose: 'all',
72+
exclude: 'lib/**'
7073
})
7174
]
7275
})

build/ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [[ -z $CI_PULL_REQUEST ]] && [[ $CIRCLE_BRANCH = master ]]; then
55
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
66
npm run build
77
npm run e2e
8-
npm run sauce-all
8+
npm run sauce #csp only need Chrome/FF
99
else
1010
npm test
1111
fi

build/karma.cover.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function (config) {
1717
options.webpack.module.postLoaders = [
1818
{
1919
test: /\.js$/,
20-
exclude: /test|node_modules/,
20+
exclude: /test|node_modules|lib\//,
2121
loader: 'istanbul-instrumenter'
2222
}
2323
]

0 commit comments

Comments
 (0)