mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-31 21:36:08 +00:00
25 lines
445 B
JavaScript
25 lines
445 B
JavaScript
/* eslint-env node */
|
|
'use strict';
|
|
const BroccoliNearley = require('./broccoli-nearley');
|
|
|
|
module.exports = {
|
|
name: 'ember-nearley',
|
|
|
|
isDevelopingAddon() {
|
|
return false;
|
|
},
|
|
|
|
setupPreprocessorRegistry(type, registry) {
|
|
registry.add('js', {
|
|
name: 'ember-nearley',
|
|
toTree(tree) {
|
|
return new BroccoliNearley(tree);
|
|
}
|
|
});
|
|
|
|
if (type === 'parent') {
|
|
this.parentRegistry = registry;
|
|
}
|
|
}
|
|
};
|