esbuild-register
Advanced tools
Comparing version 3.1.2 to 3.2.0
@@ -11,5 +11,15 @@ import { TransformOptions } from 'esbuild'; | ||
declare type EXTENSIONS = keyof typeof FILE_LOADERS; | ||
declare function register(esbuildOptions?: TransformOptions & { | ||
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; | ||
@@ -16,0 +26,0 @@ }; |
{ | ||
"name": "esbuild-register", | ||
"description": "Transpile JSX, TypeScript and esnext features on the fly with esbuild", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"main": "register.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100970
2784