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-webpack
InternalOptions
NormalModuleFactory
Class NormalModuleFactory
Abstract
Hierarchy
ModuleFactory
NormalModuleFactory
Index
Constructors
constructor
Properties
context
fs
generator
Cache
hooks
parser
Cache
resolver
Factory
rule
Set
Methods
cleanup
For
Cache
create
create
Generator
create
Parser
get
Generator
get
Parser
get
Resolver
resolve
Request
Array
resolve
Resource
Constructors
constructor
new
Normal
Module
Factory
(
)
:
NormalModuleFactory
Returns
NormalModuleFactory
Properties
context
context
:
string
fs
fs
:
InputFileSystem
generator
Cache
generator
Cache
:
Map
<
string
,
WeakMap
<
Object
,
Generator
>
>
hooks
hooks
:
Readonly
<
{
afterResolve
:
AsyncSeriesBailHook
<
[
ResolveData
]
,
false
|
void
,
UnsetAdditionalOptions
>
;
beforeResolve
:
AsyncSeriesBailHook
<
[
ResolveData
]
,
false
|
void
,
UnsetAdditionalOptions
>
;
createGenerator
:
HookMap
<
SyncBailHook
<
any
,
any
,
UnsetAdditionalOptions
>
>
;
createModule
:
AsyncSeriesBailHook
<
[
Partial
<
NormalModuleCreateData
&
{
settings
:
ModuleSettings
}
>
,
ResolveData
]
,
void
|
Module
,
UnsetAdditionalOptions
>
;
createModuleClass
:
HookMap
<
SyncBailHook
<
any
,
any
,
UnsetAdditionalOptions
>
>
;
createParser
:
HookMap
<
SyncBailHook
<
any
,
any
,
UnsetAdditionalOptions
>
>
;
factorize
:
AsyncSeriesBailHook
<
[
ResolveData
]
,
Module
,
UnsetAdditionalOptions
>
;
generator
:
HookMap
<
SyncHook
<
any
,
void
,
UnsetAdditionalOptions
>
>
;
module
:
SyncWaterfallHook
<
[
Module
,
Partial
<
NormalModuleCreateData
&
{
settings
:
ModuleSettings
}
>
,
ResolveData
]
,
Module
>
;
parser
:
HookMap
<
SyncHook
<
any
,
void
,
UnsetAdditionalOptions
>
>
;
resolve
:
AsyncSeriesBailHook
<
[
ResolveData
]
,
false
|
void
|
Module
,
UnsetAdditionalOptions
>
;
resolveForScheme
:
HookMap
<
AsyncSeriesBailHook
<
[
ResourceDataWithData
,
ResolveData
]
,
true
|
void
,
UnsetAdditionalOptions
>
>
;
resolveInScheme
:
HookMap
<
AsyncSeriesBailHook
<
[
ResourceDataWithData
,
ResolveData
]
,
true
|
void
,
UnsetAdditionalOptions
>
>
}
>
parser
Cache
parser
Cache
:
Map
<
string
,
WeakMap
<
Object
,
any
>
>
resolver
Factory
resolver
Factory
:
ResolverFactory
rule
Set
rule
Set
:
RuleSet
Methods
cleanup
For
Cache
cleanup
For
Cache
(
)
:
void
Returns
void
create
create
(
data
:
ModuleFactoryCreateData
, callback
:
(
arg0
?:
null
|
Error
, arg1
?:
ModuleFactoryResult
)
=>
void
)
:
void
Parameters
data:
ModuleFactoryCreateData
callback:
(
arg0
?:
null
|
Error
, arg1
?:
ModuleFactoryResult
)
=>
void
(
arg0
?:
null
|
Error
, arg1
?:
ModuleFactoryResult
)
:
void
Parameters
Optional
arg0:
null
|
Error
Optional
arg1:
ModuleFactoryResult
Returns
void
Returns
void
create
Generator
create
Generator
(
type
?:
any
, generatorOptions
?:
object
)
:
any
Parameters
Optional
type:
any
Optional
generatorOptions:
object
Returns
any
create
Parser
create
Parser
(
type
:
string
, parserOptions
?:
{}
)
:
"/home/runner/work/forge/forge/node_modules/webpack/types"
.
Parser
Parameters
type:
string
Optional
parserOptions:
{}
[
index:
string
]:
any
Returns
"/home/runner/work/forge/forge/node_modules/webpack/types"
.
Parser
get
Generator
get
Generator
(
type
?:
any
, generatorOptions
?:
object
)
:
undefined
|
Generator
Parameters
Optional
type:
any
Optional
generatorOptions:
object
Returns
undefined
|
Generator
get
Parser
get
Parser
(
type
?:
any
, parserOptions
?:
object
)
:
any
Parameters
Optional
type:
any
Optional
parserOptions:
object
Returns
any
get
Resolver
get
Resolver
(
type
?:
any
, resolveOptions
?:
any
)
:
ResolverWithOptions
Parameters
Optional
type:
any
Optional
resolveOptions:
any
Returns
ResolverWithOptions
resolve
Request
Array
resolve
Request
Array
(
contextInfo
?:
any
, context
?:
any
, array
?:
any
, resolver
?:
any
, resolveContext
?:
any
, callback
?:
any
)
:
any
Parameters
Optional
contextInfo:
any
Optional
context:
any
Optional
array:
any
Optional
resolver:
any
Optional
resolveContext:
any
Optional
callback:
any
Returns
any
resolve
Resource
resolve
Resource
(
contextInfo
?:
any
, context
?:
any
, unresolvedResource
?:
any
, resolver
?:
any
, resolveContext
?:
any
, callback
?:
any
)
:
void
Parameters
Optional
contextInfo:
any
Optional
context:
any
Optional
unresolvedResource:
any
Optional
resolver:
any
Optional
resolveContext:
any
Optional
callback:
any
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