Created
August 3, 2018 15:53
-
-
Save SlyDen/bcb91ecf3d68f6e3665ebf268bfa9b4e to your computer and use it in GitHub Desktop.
Turn off transpilation to help debug ember apps
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
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
module.exports = function(defaults) { | |
var config = { | |
"ember-cli-qunit": { | |
useLintTree: true | |
}, | |
/* etc */ | |
babel: { | |
includePolyfill: true | |
}, | |
sourcemaps: { | |
enabled: true, | |
extensions: ['js'] | |
} | |
}; | |
// blacklist certain transforms if in es6dev environment | |
if(EmberApp.env() === "es6dev") { | |
config.babel.blacklist = [ | |
'es6.forOf', | |
'regenerator', | |
'es6.arrowFunctions', | |
'es6.constants', | |
'es6.blockScoping', | |
'es6.templateLiterals']; | |
} | |
var app = new EmberApp(defaults, config); | |
// do stuff | |
return app.toTree(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment