Search
Preparing search index...
The search index is not available
Electron Forge
Options
All
Public
Public/Protected
All
Inherited
Menu
Electron Forge
@electron-forge/plugin-vite
InternalOptions
TransformPluginContext
Interface TransformPluginContext
Hierarchy
PluginContext
TransformPluginContext
Index
Properties
cache
debug
emit
File
get
Module
Info
info
meta
parse
warn
Methods
add
Watch
File
error
get
Combined
Sourcemap
get
File
Name
get
Module
Ids
get
Watch
Files
load
resolve
set
Asset
Source
Properties
cache
cache
:
PluginCache
debug
debug
:
LoggingFunctionWithPosition
emit
File
emit
File
:
EmitFile
get
Module
Info
get
Module
Info
:
GetModuleInfo
info
info
:
LoggingFunctionWithPosition
meta
meta
:
PluginContextMeta
parse
parse
:
ParseAst
warn
warn
:
LoggingFunctionWithPosition
Methods
add
Watch
File
add
Watch
File
(
id
:
string
)
:
void
Parameters
id:
string
Returns
void
error
error
(
error
:
string
|
RollupError
, pos
?:
number
|
{
column
:
number
;
line
:
number
}
)
:
never
Parameters
error:
string
|
RollupError
Optional
pos:
number
|
{
column
:
number
;
line
:
number
}
Returns
never
get
Combined
Sourcemap
get
Combined
Sourcemap
(
)
:
SourceMap
Returns
SourceMap
get
File
Name
get
File
Name
(
fileReferenceId
:
string
)
:
string
Parameters
fileReferenceId:
string
Returns
string
get
Module
Ids
get
Module
Ids
(
)
:
IterableIterator
<
string
>
Returns
IterableIterator
<
string
>
get
Watch
Files
get
Watch
Files
(
)
:
string
[]
Returns
string
[]
load
load
(
options
:
{
id
:
string
;
resolveDependencies
?:
boolean
}
&
Partial
<
PartialNull
<
ModuleOptions
>
>
)
:
Promise
<
ModuleInfo
>
Parameters
options:
{
id
:
string
;
resolveDependencies
?:
boolean
}
&
Partial
<
PartialNull
<
ModuleOptions
>
>
Returns
Promise
<
ModuleInfo
>
resolve
resolve
(
source
:
string
, importer
?:
string
, options
?:
{
attributes
?:
Record
<
string
,
string
>
;
custom
?:
CustomPluginOptions
;
isEntry
?:
boolean
;
skipSelf
?:
boolean
}
)
:
Promise
<
null
|
ResolvedId
>
Parameters
source:
string
Optional
importer:
string
Optional
options:
{
attributes
?:
Record
<
string
,
string
>
;
custom
?:
CustomPluginOptions
;
isEntry
?:
boolean
;
skipSelf
?:
boolean
}
Optional
attributes
?:
Record
<
string
,
string
>
Optional
custom
?:
CustomPluginOptions
Optional
is
Entry
?:
boolean
Optional
skip
Self
?:
boolean
Returns
Promise
<
null
|
ResolvedId
>
set
Asset
Source
set
Asset
Source
(
assetReferenceId
:
string
, source
:
string
|
Uint8Array
)
:
void
Parameters
assetReferenceId:
string
source:
string
|
Uint8Array
Returns
void
All Modules
Makers
maker-appx
maker-deb
maker-dmg
maker-flatpak
maker-pkg
maker-rpm
maker-snap
maker-squirrel
maker-wix
maker-zip
Plugins
plugin-auto-unpack-natives
plugin-base
plugin-electronegativity
plugin-fuses
plugin-local-electron
plugin-vite
plugin-webpack
Publishers
publisher-base
publisher-bitbucket
publisher-electron-release-server
publisher-gcs
publisher-github
publisher-nucleus
publisher-s3
publisher-snapcraft
publisher-static
Templates
template-base
template-vite
template-vite-typescript
template-webpack
template-webpack-typescript
Utils & Internal Helpers
core
core-utils
maker-base
shared-types
test-utils
tracer
web-multi-logger