-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Description
A pull request by @sokra was merged and maintainers requested a documentation change.
See pull request: webpack/webpack#12896
The options of the DefinePlugin no longer have to be covered by build dependencies
What kind of change does this PR introduce?
feature
Did you add tests for your changes?
yes
Does this PR introduce a breaking change?
no
What needs to be documented once your changes are merged?
- The constant options of the DefinePlugin do not have to be covered by build dependencies.
- but for the
DefinePlugin.runtimeValue
generator function build dependencies need to be used
- but for the
DefinePlugin.runtimeValue
has now an options argument as second argumentoptions.fileDependencies: string[]
list of files the function depends onoptions.contextDependencies: string[]
list of directories the function depends onoptions.missingDependencies: string[]
list of not existing files the function depends onoptions.buildDependencies: string[]
list of build dependencies the function depends onoptions.version: string | () => string
version of the function
norbitrial
Metadata
Metadata
Assignees
Labels
No labels