index
Interfaces
CompilerOptions
Properties
Property | Type | Default value | Description |
---|---|---|---|
|
|
|
The output directory Example
|
|
|
|
The source file or files to compile Example
|
|
|
|
If true the bundle will also include all dependencies |
|
|
|
If true the bundle will also include all workspace dependencies. |
|
|
|
Adds CommonJS global variables within esm bundle like:
|
|
|
|
Options to pass to esbuild |
HooksOptions
Properties
Property | Type |
---|---|
|
( |
|
( |
Functions
build()
build(
options
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
Returns
Promise
<void
>
buildAndWatch()
buildAndWatch(
options
):Promise
<BuildContext
<BuildOptions
>>
Parameters
Parameter | Type |
---|---|
|
Returns
Promise
<BuildContext
<BuildOptions
>>
bundleFile()
bundleFile(
fileName
):Promise
<{code
:string
;dependencies
:string
[]; }>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<{ code
: string
; dependencies
: string
[]; }>
createEsbuildCliHooksPlugin()
createEsbuildCliHooksPlugin(
options
):Plugin
Parameters
Parameter | Type |
---|---|
|