process(production = false) {
        return __awaiter(this, void 0, void 0, function* () {
            let { input } = this;
            if (!input.includes(".js") && !input.includes(".ts")) {
                input = utils.join(this.input, "index.js");
                if (!(yield utils.pathExists(input))) {
                    input = utils.join(this.input, "index.ts");
                }
            }
            const bundleOutput = yield utils.bundle({
                cache: this.rollupCache,
                external: {
                    "@isotope/core": "Isotope",
                    "@isotope/prototope": "Prototope"
                },
                name: this.id,
                path: input,
                production
            });
            const currentDir = utils.dirname(this.output);
            this.rollupCache = bundleOutput.cache;
            this.code = parser_1.parseAssetReferences({
                assetsDir: this.assetsDir,
                currentDir,
                input: parser_1.parseConfigReferences({
                    config: this.dockingConfig,
                    input: bundleOutput.code
                })
            });
            this.func = this.eval();
            if (this.type === "dynamic" || this.type === "universal") {
                yield utils.mkdirp(currentDir);
                yield utils.outputFile(this.output, this.code, "utf8");
            }
        });
    }
/**
     * Processes the component.
     *
     * @param production - If the component should be processed for production.
     */
Processes the component.
@param production - If the component should be processed for production.
Processes the component . @param production - If the component should be processed for production .
process(production = false) {
        return __awaiter(this, void 0, void 0, function* () {
            let { input } = this;
            if (!input.includes(".js") && !input.includes(".ts")) {
                input = utils.join(this.input, "index.js");
                if (!(yield utils.pathExists(input))) {
                    input = utils.join(this.input, "index.ts");
                }
            }
            const bundleOutput = yield utils.bundle({
                cache: this.rollupCache,
                external: {
                    "@isotope/core": "Isotope",
                    "@isotope/prototope": "Prototope"
                },
                name: this.id,
                path: input,
                production
            });
            const currentDir = utils.dirname(this.output);
            this.rollupCache = bundleOutput.cache;
            this.code = parser_1.parseAssetReferences({
                assetsDir: this.assetsDir,
                currentDir,
                input: parser_1.parseConfigReferences({
                    config: this.dockingConfig,
                    input: bundleOutput.code
                })
            });
            this.func = this.eval();
            if (this.type === "dynamic" || this.type === "universal") {
                yield utils.mkdirp(currentDir);
                yield utils.outputFile(this.output, this.code, "utf8");
            }
        });
    }
process ( production = false ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { let { input } = this ; if ( ! input . includes ( ".js" ) && ! input . includes ( ".ts" ) ) { input = utils . join ( this . input , "index.js" ) ; if ( ! ( yield utils . pathExists ( input ) ) ) { input = utils . join ( this . input , "index.ts" ) ; } } const bundleOutput = yield utils . bundle ( { cache : this . rollupCache , external : { "@isotope/core" : "Isotope" , "@isotope/prototope" : "Prototope" } , name : this . id , path : input , production } ) ; const currentDir = utils . dirname ( this . output ) ; this . rollupCache = bundleOutput . cache ; this . code = parser_1 . parseAssetReferences ( { assetsDir : this . assetsDir , currentDir , input : parser_1 . parseConfigReferences ( { config : this . dockingConfig , input : bundleOutput . code } ) } ) ; this . func = this . eval ( ) ; if ( this . type === "dynamic" || this . type === "universal" ) { yield utils . mkdirp ( currentDir ) ; yield utils . outputFile ( this . output , this . code , "utf8" ) ; } } ) ; }
Processes the component.
Processes the component .