@ima/cli
Version:
IMA.js CLI tool to build, develop and work with IMA.js applications.
15 lines (14 loc) • 608 B
TypeScript
import type { LoaderDefinitionFunction } from 'webpack';
export interface UseServerLoaderOptions {
environment: 'client' | 'server';
}
/**
* This generic webpack loader is triggered by the 'use server' directive.
* It parses a file into an AST and then runs a series of processors against it,
* which can modify the AST. Finally, it generates code from the transformed AST.
*
* @param {string} source The source code of the module.
* @returns {string} The transformed source code.
*/
declare const UseServerLoader: LoaderDefinitionFunction<UseServerLoaderOptions>;
export default UseServerLoader;