20 lines
433 B
JavaScript
20 lines
433 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
name: 'true-myth',
|
||
|
|
||
|
setupPreprocessorRegistry(type, registry) {
|
||
|
if (type === 'self') {
|
||
|
this.treePaths.addon = path.resolve(__dirname, 'dist', 'es');
|
||
|
|
||
|
registry.add('js', {
|
||
|
name: 'babel-with-app-settings',
|
||
|
ext: 'js',
|
||
|
toTree: tree => this.project.findAddonByName('ember-cli-babel').transpileTree(tree),
|
||
|
});
|
||
|
}
|
||
|
},
|
||
|
};
|