1 | "use strict";
|
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4 | };
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 | const auto_import_1 = __importDefault(require("./auto-import"));
|
7 | module.exports = {
|
8 | name: 'ember-auto-import',
|
9 | setupPreprocessorRegistry(type, registry) {
|
10 |
|
11 |
|
12 |
|
13 | if (type !== 'parent') {
|
14 | return;
|
15 | }
|
16 |
|
17 |
|
18 | registry.add('js', {
|
19 | name: 'ember-auto-import-analyzer',
|
20 | toTree: (tree) => {
|
21 | return auto_import_1.default.lookup(this).analyze(tree, this);
|
22 | }
|
23 | });
|
24 | },
|
25 | included() {
|
26 | let autoImport = auto_import_1.default.lookup(this);
|
27 | this._super.included.apply(this, arguments);
|
28 | if (autoImport.isPrimary(this)) {
|
29 | autoImport.included(this);
|
30 | }
|
31 | },
|
32 | updateFastBootManifest(manifest) {
|
33 | let autoImport = auto_import_1.default.lookup(this);
|
34 | if (autoImport.isPrimary(this)) {
|
35 | autoImport.updateFastBootManifest(manifest);
|
36 | }
|
37 | return manifest;
|
38 | }
|
39 | };
|
40 |
|
\ | No newline at end of file |