index.d.ts 828 B

123456789101112131415161718
  1. import type { CompilerSystem, Logger } from '../../internal/index';
  2. /**
  3. * Creates a "logger", based off of NodeJS APIs, that will be used by the compiler and dev-server.
  4. * The NodeJS "process" object must be provided as a property in the first argument's object.
  5. */
  6. export declare function createNodeLogger(c: {
  7. process: any;
  8. }): Logger;
  9. /**
  10. * Creates the "system", based off of NodeJS APIs, used by the compiler. This includes any and
  11. * all file system reads and writes using NodeJS. The compiler itself is unaware of Node's
  12. * `fs` module. Other system APIs include any use of `crypto` to hash content. The NodeJS
  13. * "process" object must be provided as a property in the first argument's object.
  14. */
  15. export declare function createNodeSys(c: {
  16. process: any;
  17. }): CompilerSystem;
  18. export { CompilerSystem, Logger };