mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-01 13:58:01 +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;
|
||
|
}
|
||
|
}
|
||
|
};
|