Tobias Koppers
df81e14447
little schema fixes
2020-03-10 18:19:49 +01:00
Tobias Koppers
87e6f58786
Ensure strict format of descriptions in schemas
2020-03-10 18:19:33 +01:00
Tobias Koppers
88e6c5e2a7
add library option to entry description
2020-02-26 17:36:16 +01:00
Tobias Koppers
39e407e927
normalize entry option and reduce normalization in EntryOptionPlugin
2020-02-26 17:36:06 +01:00
Tobias Koppers
f1dd328779
refactor library system
2020-02-26 17:35:52 +01:00
Tobias Koppers
e5b51235d7
add externalsType option
...
fix a few edge cases in ExternalModule
2020-02-26 17:22:42 +01:00
Tobias Koppers
bbb16e7af2
add output.uniqueName option
...
It defaults to library name or name from package.json in context
output.uniqueName will be used to generate unique globals for
* output.jsonpFunction
* output.chunkCallbackName
* etc.
2020-02-26 16:32:42 +01:00
Tobias Koppers
03431d1113
from serve property from options
2020-02-18 22:55:31 +01:00
Tobias Koppers
683e867450
Improve schema generation and add more descriptions
2020-02-17 19:12:58 +01:00
Tobias Koppers
6477ca56f8
Split options defaulting in normalization and defaults
...
Apply defaults after plugins are applied to allow plugins to feature their own defaults.
This allows to make preset plugins.
2020-02-17 19:12:54 +01:00
Sergey Melyukov
c31d941899
dependOn feature
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2020-02-11 09:11:00 +01:00
Tobias Koppers
fe3c1d83ba
cleanup
2020-02-10 13:04:28 +01:00
Sergey Melyukov
d6c9953c94
feat: implement entry.filename option
2020-02-07 13:00:25 +03:00
Tobias Koppers
152fa4ce97
Merge pull request #10334 from smelukov/entry-descriptor
...
Add entrypoint descriptor with `import` property
2020-02-05 09:34:46 +01:00
Tobias Koppers
18ae77ef56
addEntry takes options object instead of only name
...
remove duplication in EntryOptionsPlugin and DynamicEntryPlugin
lazy require (Dynamic)EntryPlugin in EntryOptionsPlugin
2020-02-04 21:21:42 +01:00
Tobias Koppers
9ae0b6a421
allow stats.ids in schema
2020-02-04 09:19:09 +01:00
Sergey Melyukov
7da1b5e70a
feat: add entrypoint descriptor with `import` property
2020-02-03 17:46:14 +03:00
opl-
22569ce792
fix ResolveOptions.plugins types
...
closes #10073
2019-12-05 19:24:40 +01:00
Tobias Koppers
0ea81b542c
get rid of some hacks in declarations file
2019-11-28 16:19:18 +01:00
Sergey Melyukov
491cb57cb4
initial improvement for asset modules
2019-11-26 15:41:48 +01:00
Tobias Koppers
497b65e122
run prettier
2019-11-15 10:56:01 +01:00
Tobias Koppers
07671f3481
allow to disable compareBeforeEmit
2019-11-04 16:46:45 +01:00
Tobias Koppers
87abd00c6e
remove all options for cache.store expect "pack"
...
these are incomplete and may be readded later
2019-10-21 09:22:38 +02:00
Tobias Koppers
c1d1e91bd6
allow all possible combinations with pattern
2019-10-18 14:58:50 +02:00
evilebottnawi
c81ffbef42
refactor: `devtool` option
2019-10-18 14:43:21 +02:00
Tobias Koppers
fc04bf15bc
Do not show stack trace of errors in stats by default
...
Add new `stats.errorStack` option to display it anyway.
2019-10-15 07:43:37 +02:00
evilebottnawi
8764f14794
feat: improve DX with `output.ecmaVersion` option
2019-10-11 00:43:27 +03:00
Tobias Koppers
ddc3dae0e6
refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
...
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00
Tobias Koppers
ccc53dba5e
update deprecated usage in library-related plugins
2019-10-08 23:46:31 +02:00
Tobias Koppers
69a545c444
Deprecate MainTemplate, ChunkTemplate, ModuleTemplate
...
move logic and hooks to JavascriptModulesPlugin
2019-10-08 23:46:26 +02:00
Tobias Koppers
7bde43f47a
Merge tag 'v4.40.0' into next
...
4.40.0
2019-09-13 11:12:26 +02:00
Tobias Koppers
2e37731988
add analysis for top level symbols, exports and imports
...
integrates the work of Vincent Chan for GSoC 2018
Co-authored-by: Vincent Chan <cdzos97@gmail.com>
2019-09-03 14:18:40 +02:00
Tobias Koppers
e507392094
add output.ecmaVersion options to set emitted code style
...
fix a bug with prefetching initial chunks
InitFragments have get[End]Content methods which get a sourceContext
RuntimeModules have implicit chunk and compilation
changed default to `output.ecmaVersion: 2015`
2019-08-26 21:32:29 +02:00
Tobias Koppers
a2caa36b8e
add immutablePaths next to managedPaths for paths in the yarn cache
...
for PnP support
2019-08-20 14:50:07 +02:00
Tobias Koppers
e5cecdad23
store build dependencies snapshot in pack
...
add snapshot shortcut for package manager managed paths
add cache.managedPaths
2019-08-13 17:02:37 +02:00
Tobias Koppers
856235d76f
track and config build dependencies
2019-08-12 23:07:41 +02:00
Tobias Koppers
f236df1bc9
replace logging in persistent caching with infrastructure logger
...
remove cache.loglevel
2019-08-12 13:41:23 +02:00
Tobias Koppers
e5ff9576e2
update typescript dependencies
2019-08-06 09:00:05 +02:00
Tobias Koppers
2e25cd588b
Merge remote-tracking branch 'origin/next' into next
2019-07-24 10:52:04 +02:00
Tobias Koppers
c17dfde7a8
Merge tag 'v4.37.0' into next
...
4.37.0
2019-07-24 10:51:04 +02:00
Tobias Koppers
7b31890a2f
more tests
...
add none as loglevel
2019-07-22 10:35:26 +02:00
Tobias Koppers
d532c4f24f
allow to configure the infrastructure logger
...
rename includeDebugLogging to loggingDebug
rename logToConsole to createConsoleLogger
2019-07-22 09:22:36 +02:00
Yuta Hiroto
8dcda23c36
feat(assetModule): add function type to assetModuleFilename
2019-07-21 23:05:12 +01:00
Tobias Koppers
42a9bfd225
improve logging options and display
...
allow more logging options in schema
collapse groups in non-verbose logging
show number of filtered logging lines
update stats presets for logging
2019-07-19 11:59:48 +02:00
Tobias Koppers
d849160d3f
add logging API
...
Plugins:
Compiler.getInfrastructureLogger(name)
Compilation.getLogger(name)
Loader:
this.getLogger([name])
API equal to console API with these methods:
error, warn, info, log, debug,
time, timeLog, timeEnd,
group, groupCollapsed, groupEnd,
profile, profileEnd,
clear
2019-07-18 17:13:40 +02:00
Tobias Koppers
cac462cba8
Merge pull request #8983 from hiroppy/feature/url
...
add experimental Url support
2019-07-17 23:32:15 +02:00
Tobias Koppers
4fa8addeec
Handle auxiliary files separately from normal files
2019-07-17 23:13:08 +02:00
Tobias Koppers
1d72a05fed
Merge tag 'v4.36.0' into next
...
4.36.0
2019-07-17 16:02:33 +02:00
Tobias Koppers
fb45e38fa4
rename url -> asset
...
remove experimental in favor of experiments.asset
2019-07-17 11:57:04 +02:00
Yuta Hiroto
e474c604e9
feat(url): implement Url ModulePlugin and Generator
2019-07-17 11:45:40 +02:00