@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
23 lines (22 loc) • 1.04 kB
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.
* @param c an object containing a `Process` for Stencil to use
* @returns a {@link Logger} 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.
* @param c an object containing a `Process` for Stencil to use
* @returns a {@link CompilerSystem} object
*/
export declare function createNodeSys(c: {
process: any;
}): CompilerSystem;
export { CompilerSystem, Logger };