securityos/node_modules/true-myth/ember-addon.js

20 lines
433 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'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),
});
}
},
};