@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
19 lines (18 loc) • 828 B
TypeScript
import type { CompilerSystem, Logger } from '../../internal/index';
/**
* Creates a "logger", based off of NodeJS APIs, that will be used by the compiler and dev-server.
* The NodeJS "process" object must be provided as a property in the first argument's object.
*/
export declare function createNodeLogger(c: {
process: any;
}): Logger;
/**
* Creates the "system", based off of NodeJS APIs, used by the compiler. This includes any and
* all file system reads and writes using NodeJS. The compiler itself is unaware of Node's
* `fs` module. Other system APIs include any use of `crypto` to hash content. The NodeJS
* "process" object must be provided as a property in the first argument's object.
*/
export declare function createNodeSys(c: {
process: any;
}): CompilerSystem;
export { CompilerSystem, Logger };