Created
April 2, 2015 23:05
-
-
Save eventualbuddha/c807401d3d206600392d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.js | |
require('babel/register')({ only: /tests/ }); | |
require('./tests'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lib/index.js | |
console.log('' + this); | |
class Bar { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tests/index.js | |
require('../lib'); | |
class Foo { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails as expected because babel is not transpiling lib/index.js.