@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') } } ```
13 lines (12 loc) • 514 B
TypeScript
export interface LuaBundleWebpackPluginItem {
is_entry: boolean;
body: string;
mode: 'plain' | 'base64';
mime: string;
}
export declare const COMMA_WITH_NL = ",\n";
export declare const TEXT_MIME_TYPES: string[];
export declare const obj: (value: unknown) => string;
export declare const luaEscape: (value: string) => string;
export declare const pack: (value: object | string | number | boolean) => string;
export declare const wrapper: (value: Map<string, LuaBundleWebpackPluginItem>) => string;