UNPKG

@tarantool.io/lua-bundler-webpack-plugin

Version:

Bundle to single Lua file with content of bundle as big Lua table with next semantic: ``` { { is_entry: Boolean, body: String(content of file), mime: String(mime-type of file), mode: String('plain' or 'base64') } } ```

12 lines (11 loc) 386 B
import type { Compiler, WebpackPluginInstance } from 'webpack'; export interface LuaBundleWebpackPluginOptions { bundleName?: string; namespace?: string; entryRegExp?: RegExp; } export declare class LuaBundleWebpackPlugin implements WebpackPluginInstance { private options; constructor(options: LuaBundleWebpackPluginOptions); apply(compiler: Compiler): void; }