@ima/cli
Version:
IMA.js CLI tool to build, develop and work with IMA.js applications.
14 lines (13 loc) • 567 B
TypeScript
import { LoaderDefinitionFunction } from 'webpack';
export interface JsStringLoaderOptions {
/** Whether to include source maps in the output string */
includeSourceMap?: boolean;
}
/**
* Converts compiled JavaScript/TypeScript source into a string export.
* This loader should be placed before swc-loader in the chain.
* The compilation is handled by subsequent loaders (swc-loader),
* this loader just wraps the result as a string export.
*/
declare const JsStringLoader: LoaderDefinitionFunction<JsStringLoaderOptions>;
export default JsStringLoader;