Skip to content

Commit

Permalink
Move polyfills into separate module, and use it in JIT compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mstade committed Aug 30, 2016
1 parent 4b05686 commit 3d84147
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bin/ez-build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node
require('source-map-support/register')
require('babel-polyfill')
require('../lib/polyfill.js')
require('../lib/main.js')
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"depcheck": "depcheck . --ignores-dirs=lib",
"prepublish": "npm run depcheck && npm run build",
"test": "npm run test:unit && npm run test:cli",
"test:unit": "tape -r babel-register -r babel-polyfill -r source-map-support/register test/unit/**/*.test.js",
"test:unit": "tape -r babel-register -r ./lib/polyfill test/unit/**/*.test.js",
"test:cli": "bats test/cli/**/*.bats",
"cov": "npm run build:cov && npm run cov:unit && npm run cov:cli",
"cov:unit": "nyc npm run test:unit && nyc report && nyc report --reporter=text-lcov > unit.lcov",
Expand Down
2 changes: 2 additions & 0 deletions src/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import 'source-map-support/register'
import 'babel-polyfill'

0 comments on commit 3d84147

Please sign in to comment.