Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Replace babel-polyfill with transform-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
scmx authored and optout21 committed May 7, 2019
1 parent b0f9519 commit 37eb3a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ function build(file) {
.transform(babelify, {
ignore: /zxing\.js$/i,
presets: ['es2015'],
plugins: ['syntax-async-functions', 'transform-regenerator']
plugins: [
'syntax-async-functions',
'transform-regenerator',
'transform-runtime'
]
})
.bundle()
.pipe(source('instascan.js'));
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('babel-polyfill');
require('webrtc-adapter');

var Instascan = {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"devDependencies": {
"babel-plugin-syntax-async-functions": "^6.8.0",
"babel-plugin-transform-regenerator": "^6.9.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.9.0",
"babelify": "^7.3.0",
"browserify": "^13.0.1",
Expand Down

0 comments on commit 37eb3a1

Please sign in to comment.