Home Reference Source
import {ProjextRollupWindowAsGlobalPlugin} from 'projext-plugin-rollup/src/plugins/windowAsGlobal/index.js'
public class | source

ProjextRollupWindowAsGlobalPlugin

This is a Rollup plugin that inserts a single line of code on the bundle in order to make global an alias for window.

Method Summary

Public Methods
public

This gets called when Rollup starts the bundling process.

Public Methods

public intro(): string source

This gets called when Rollup starts the bundling process. It returns the code that will make global available as an alias for window.

Return:

string