Skip to content

Commit

Permalink
transform-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jan 21, 2018
1 parent 7686ce0 commit 66e408f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = function(karma) {

frameworks: [ 'mocha', 'chai', 'browserify'],
files: [
'http://cdn.polyfill.io/v2/polyfill.min.js?features=default,Promise,fetch,Array.prototype.map,Array.prototype.filter',
'test/client.js',
'test/sw.js',
{pattern: 'test/fixtures/built-sw.js', served: true, included: false},
Expand All @@ -19,6 +18,7 @@ module.exports = function(karma) {
},
browserify: {
debug: true,
plugins: ['transform-runtime']
transform: [
['babelify', {
'presets': ['env']
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"test": "make lint test",
"browserify": "browserify -s fetchMock es5/client.js > es5/client-bundle.js",
"prepublish": "babel src --out-dir es5 --presets env && npm run browserify"
"prepublish": "babel src --out-dir es5 --presets env --plugins transform-runtime && npm run browserify"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -35,6 +35,7 @@
"devDependencies": {
"babel": "^6.0.15",
"babel-cli": "^6.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^7.3.0",
Expand Down

0 comments on commit 66e408f

Please sign in to comment.