safe-webpack-define-plugin
Version:
A webpack (typescript ready) plugin to define global variables on outputted bundles
13 lines • 620 B
TypeScript
import { DefinePlugin } from 'webpack';
import { SafeDefinePluginOptions, StringifiableObject } from '.';
/**
* This plugin exposes as variables any objects given to it to the code in the outputted webpack bundle
*
* It is just a wrapper of the webpack `DefinePlugin` with some typescript/value escaping rails
* This can be used along side the `DefinePlugin`
*/
export declare class SafeDefinePlugin<D extends StringifiableObject = StringifiableObject> extends DefinePlugin {
constructor(definitions: D, options?: SafeDefinePluginOptions);
}
export default SafeDefinePlugin;
//# sourceMappingURL=Plugin.d.ts.map