/
opt
/
canhelp
/
node_modules
/
esbuild-register
/
dist
/
/opt/canhelp/node_modules/esbuild-register/dist
mkdir
upload
Name
Size
Mode
Actions
loader.d.ts
97
0644
edit
dl
rm
loader.js
421
0644
edit
dl
rm
node.d.ts
791
0644
edit
dl
rm
node.js
177161
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/esbuild-register/dist/node.d.ts
(791B)
import { TransformOptions } from 'esbuild'; declare type LOADERS = 'js' | 'jsx' | 'ts' | 'tsx'; declare const FILE_LOADERS: Record<string, LOADERS>; declare type EXTENSIONS = keyof typeof FILE_LOADERS; interface RegisterOptions extends TransformOptions { extensions?: EXTENSIONS[]; /** * Auto-ignore node_modules. Independent of any matcher. * @default true */ hookIgnoreNodeModules?: boolean; /** * A matcher function, will be called with path to a file. Should return truthy if the file should be hooked, falsy otherwise. */ hookMatcher?(fileName: string): boolean; } declare function register(esbuildOptions?: RegisterOptions): { unregister(): void; }; declare type Register = ReturnType<typeof register>; export { Register, register };
Save
cmd:
run