@@ -7,13 +7,7 @@ const concatFiles = require('broccoli-concat');
77const stew = require ( 'broccoli-stew' ) ;
88const writeFile = require ( 'broccoli-file-creator' ) ;
99const replace = require ( 'broccoli-string-replace' ) ;
10- const Babel = require ( 'broccoli-babel-transpiler' ) ;
11- const moduleResolver = require ( 'amd-name-resolver' ) . resolveModules ( {
12- throwOnRootAccess : false ,
13- } ) ;
1410const Funnel = require ( 'broccoli-funnel' ) ;
15- const ensurePosix = require ( 'ensure-posix-path' ) ;
16- const path = require ( 'path' ) ;
1711const packageJson = require ( './package.json' ) ;
1812const { map, mv } = stew ;
1913
@@ -33,16 +27,6 @@ const options = {
3327options . minifyJS = { enabled : false } ;
3428options . minifyCSS = { enabled : false } ;
3529
36- // Stolen from relative-module-paths.js in ember-cli-babel
37- function getRelativeModulePath ( modulePath ) {
38- return ensurePosix ( path . relative ( process . cwd ( ) , modulePath ) ) ;
39- }
40-
41- // Stolen from relative-module-paths.js in ember-cli-babel
42- function resolveRelativeModulePath ( name , child ) {
43- return moduleResolver ( name , getRelativeModulePath ( child ) ) ;
44- }
45-
4630module . exports = function ( defaults ) {
4731 let checker = new VersionChecker ( defaults ) ;
4832 let emberChecker = checker . for ( 'ember-source' ) ;
@@ -100,41 +84,11 @@ module.exports = function (defaults) {
10084 app . import ( 'node_modules/compare-versions/index.js' ) ;
10185 app . import ( 'node_modules/normalize.css/normalize.css' ) ;
10286
103- // Ember Debug
104-
105- let emberDebug = 'ember_debug' ;
106-
107- let sourceMap = new Funnel ( 'node_modules/source-map-js' , {
108- files : [ '**/*.js' ] ,
109- destDir : 'ember-debug/deps' ,
110- } ) ;
111-
112- sourceMap = new Babel ( sourceMap , {
113- plugins : [ 'transform-commonjs' ] ,
114- } ) ;
115-
116- const backburner = new Funnel ( 'node_modules/backburner.js/dist/es6' , {
117- files : [ 'backburner.js' ] ,
118- destDir : 'ember-debug/deps' ,
119- } ) ;
87+ let emberDebug = 'ember_debug/dist' ;
12088
12189 emberDebug = new Funnel ( emberDebug , {
12290 destDir : 'ember-debug' ,
12391 include : [ '**/*.js' ] ,
124- exclude : [ 'vendor/startup-wrapper.js' , 'vendor/loader.js' ] ,
125- } ) ;
126-
127- emberDebug = mergeTrees ( [ sourceMap , backburner , emberDebug ] ) ;
128-
129- emberDebug = new Babel ( emberDebug , {
130- moduleIds : true ,
131- getModuleId : getRelativeModulePath ,
132- plugins : [
133- [ '@babel/plugin-transform-class-properties' ] ,
134- [ '@babel/plugin-transform-class-static-block' ] ,
135- [ 'module-resolver' , { resolvePath : resolveRelativeModulePath } ] ,
136- [ '@babel/plugin-transform-modules-amd' , { noInterop : true } ] ,
137- ] ,
13892 } ) ;
13993
14094 const previousEmberVersionsSupportedString = `[${ packageJson . previousEmberVersionsSupported
0 commit comments