async generateBundle(options, bundle) {
            if (multiOutputNames.length !== 0) {
                // we are generating multiple build outputs, which is handled by child plugins
                return;
            }
            if (!options.dir) {
                throw utils_1.createError('Rollup output options must have a dir option set to emit an HTML file.');
            }
            generatedBundles.push({ name: 'default', options, bundle });
            const emittedAssets = await emitAssets_1.emitAssets.call(this, inputs, pluginOptions);
            const outputs = await createHTMLOutput_1.createHTMLOutput({
                outputDir: path_1.default.resolve(options.dir),
                inputs,
                emittedAssets,
                generatedBundles,
                externalTransformHtmlFns,
                pluginOptions,
                defaultInjectDisabled,
                serviceWorkerPath,
                injectServiceWorker,
                absolutePathPrefix,
                strictCSPInlineScripts,
            });
            for (const output of outputs) {
                this.emitFile(output);
            }
        }
/**
         * Emits output html file if we are doing a single output build.
         * @param {OutputOptions} options
         * @param {OutputBundle} bundle
         */
Emits output html file if we are doing a single output build.
Emits output html file if we are doing a single output build .
async generateBundle(options, bundle) {
            if (multiOutputNames.length !== 0) {
                return;
            }
            if (!options.dir) {
                throw utils_1.createError('Rollup output options must have a dir option set to emit an HTML file.');
            }
            generatedBundles.push({ name: 'default', options, bundle });
            const emittedAssets = await emitAssets_1.emitAssets.call(this, inputs, pluginOptions);
            const outputs = await createHTMLOutput_1.createHTMLOutput({
                outputDir: path_1.default.resolve(options.dir),
                inputs,
                emittedAssets,
                generatedBundles,
                externalTransformHtmlFns,
                pluginOptions,
                defaultInjectDisabled,
                serviceWorkerPath,
                injectServiceWorker,
                absolutePathPrefix,
                strictCSPInlineScripts,
            });
            for (const output of outputs) {
                this.emitFile(output);
            }
        }
async generateBundle ( options , bundle ) { if ( multiOutputNames . length !== 0 ) { return ; } if ( ! options . dir ) { throw utils_1 . createError ( 'Rollup output options must have a dir option set to emit an HTML file.' ) ; } generatedBundles . push ( { name : 'default' , options , bundle } ) ; const emittedAssets = await emitAssets_1 . emitAssets . call ( this , inputs , pluginOptions ) ; const outputs = await createHTMLOutput_1 . createHTMLOutput ( { outputDir : path_1 . default . resolve ( options . dir ) , inputs , emittedAssets , generatedBundles , externalTransformHtmlFns , pluginOptions , defaultInjectDisabled , serviceWorkerPath , injectServiceWorker , absolutePathPrefix , strictCSPInlineScripts , } ) ; for ( const output of outputs ) { this . emitFile ( output ) ; } }
Emits output html file if we are doing a single output build.
Emits output html file if we are doing a single output build .
// we are generating multiple build outputs, which is handled by child plugins