Nitin Kumar
09047244b3
fix: limit progress bar length to 40 when no columns provided
2023-03-12 07:27:19 +05:30
Jesús Leganés-Combarro
cb028265e7
Added `assert/strict` built-in
2023-03-01 15:35:55 +04:00
Tobias Koppers
49dab4cc5e
add semicolon
2022-02-22 09:54:35 +01:00
Ivan Kopeykin
2665fb118c
add baseUri entry option
2022-02-21 16:23:47 +03:00
Praveena
dec858a57e
fixes #15342 - add util/types to node target
2022-02-08 14:00:40 +00:00
Tobias Koppers
b9c6691ff5
bugfixes, external assets
2021-12-03 16:23:09 +01:00
Tobias Koppers
7025319eea
upgrade watchpack
...
use new collectTimeInfoEntries method from watchpack
add more efficient Watcher.getInfo method
2021-11-25 09:27:04 +01:00
Mark Molinaro
5601c56185
use fresh maps when not available
2021-11-17 11:46:43 -08:00
Mark Molinaro
c2f57247a8
perf: correctly split timestamp by file/dependency and only call getTimeInfoEntries once
2021-11-17 11:43:54 -08:00
Aleen
ab34ffb2ae
Revert to use ['catch'] directly
2021-11-02 12:52:00 +08:00
Aleen
4c50786098
use propertyAccess to generate .catch code
2021-11-02 12:51:59 +08:00
Juanra GM
3d76869da9
fix: add missing external modules
2021-10-27 20:48:34 +02:00
Zhuo Zhang
e0915a538e
add "diagnostics_channel" to NodeTargetPlugin
2021-10-07 21:28:48 +08:00
wood1986
6a24863c1b
fix: add stream/web to NodeTargetPlugin
2021-09-11 23:52:45 -07:00
Tobias Koppers
08ea1464d5
keep state of chunk loading during hmr updates
...
ignore duplicate chunk loads
2021-08-16 13:50:43 +02:00
Tobias Koppers
a1f0d23dcc
add `node-commonjs` external type to use `createRequire` for commonjs externals
...
for `module` externals, fallback to `import()` when not in module mode
2021-06-25 11:22:55 +02:00
Tobias Koppers
629f9f031c
add support for module externals and automatic externals
2021-06-24 16:44:14 +02:00
Tobias Koppers
15408018cb
partially fix test cases
2021-06-24 10:05:37 +02:00
dnalborczyk
da6fe93982
Update lib/node/NodeTargetPlugin.js
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-06-18 11:01:13 +02:00
Daniel Nalborczyk
b80b612c14
feat: add node: prefixed modules
2021-06-18 11:00:26 +02:00
Tobias Koppers
fbcc470bcf
add fsStartTime for single runs
2021-05-21 08:06:46 +02:00
Tobias Koppers
0d4dbd019a
fix collecting of changed files and aggregating when suspending
2021-05-18 14:23:33 +02:00
Tobias Koppers
f8fdc19c71
add pnpapi as builtin
...
fixes https://github.com/webpack/enhanced-resolve/pull/286
2021-04-19 10:30:51 +02:00
Tobias Koppers
2df8267220
handle falsy entry options correctly
2021-04-14 20:21:17 +02:00
Tobias Koppers
d808d04d26
attach the chunk graph to RuntimeModules
2021-04-14 12:26:35 +02:00
Tobias Koppers
4e117781e8
improvements
...
add appendOnly flag
add custom console
add custom stream
2021-04-06 15:20:27 +02:00
Hyeonmin Park
72ba68cc78
feat: add colors flag to infrastructureLogging
2021-04-04 14:28:31 +09:00
Tobias Koppers
7dc945f147
allow to place runtime outside of the output path
2021-03-16 13:07:58 +01:00
Tobias Koppers
69218d4ea0
fix problem with startup of non-js initial chunks
...
fixes #12880
2021-03-14 19:54:50 +01:00
Tobias Koppers
8ea0a6ad4e
Merge pull request #12831 from animecyc/bugfix/shared-plugin-runtime-bug
...
fix: use runtime globals in shared plugin
2021-03-11 19:30:05 +01:00
Tobias Koppers
cf208782e6
fix web worker chunk loadign for non-js chunks
2021-03-11 18:32:44 +01:00
Tobias Koppers
715547c3e0
remove unused code
...
fix naming for non js entry handling in jsonp chunk loading
2021-03-09 17:19:16 +01:00
Tobias Koppers
c7f93af138
refactor startup logic to better integrate with libraries
...
get rid of startupNoDefault and many custom logic regarding this in jsonp chunk loading
add onChunksLoaded runtime method to cover that for all chunk loading types
add `__webpack_runtime_id__` to access the current runtime
allow to use onChunksLoaded for other module types too
2021-03-08 20:25:09 +01:00
Tobias Koppers
1ebc7ca974
fix some incorrect properties accesses
...
fix some edge cases with MultiCompiler
fixes #12770
2021-02-24 20:12:32 +01:00
Daniel Nalborczyk
bd5e4ddfa2
chore: move word to cspell.json
2021-02-15 23:21:04 -05:00
Tobias Koppers
263c950952
typings has been fixed
2021-01-04 12:04:42 +01:00
Daniel Nalborczyk
16833c33a0
fix spell checker (wasi)
2020-12-14 13:30:18 -05:00
Daniel Nalborczyk
56f42f13a0
feat: add support for additional node.js builtin modules
2020-12-14 13:17:39 -05:00
Tobias Koppers
48571c663f
add selective runtime requirements from startup logic which doesn't prevent inlining modules
...
avoid using startup function for grab data from preexecuted chunks
2020-12-11 14:36:48 +01:00
Tobias Koppers
7e85649492
improve target options
...
infer target properties from different targets and fill defaults from that
custom targets can now be created via `target: false` and a plugin (similar to the other options)
add stubs from universal chunk/wasm loading and module chunk format
add externalsPresets.electron and externalsPresets.electronRenderer
node.__file/dirname: "eval-only"
2020-09-10 11:42:09 +02:00
Tobias Koppers
aa67a435a4
refactor wasm loading from target into output.wasmLoading option
...
allow entry specific wasm loading
2020-09-09 11:20:37 +02:00
Tobias Koppers
ed06a7f83a
new Worker() support
...
add support for async anonymous entrypoints from inside the codebase
add worker example
move entry options into Entrypoint and receive them from there
2020-09-08 07:37:20 +02:00
Tobias Koppers
7381cc0536
move baseUri into chunk loading runtime modules
2020-08-29 01:59:39 +02:00
Tobias Koppers
07d863e14c
implement enabledChunkLoadingTypes approach
...
allow chunkLoading per entry
allow custom library/chunkLoading types
2020-08-28 10:59:37 +02:00
Tobias Koppers
3ec865d3e2
move StartupChunkDependenciesPlugin into chunk loading plugins
2020-08-28 10:58:05 +02:00
Tobias Koppers
d69fadf8e8
add output.chunkLoading option to control chunk loading plugins
2020-08-28 10:58:04 +02:00
Tobias Koppers
23d230bdf9
move chunk loading into separate plugins
2020-08-28 10:58:03 +02:00
Tobias Koppers
6ac97b3f58
move CommonJsChunkFormat into separate plugin
2020-08-28 10:58:02 +02:00
Tobias Koppers
afa9784dfc
use hard-coded list of builtins to be independent of node.js version
2020-08-28 01:09:12 +02:00
DraggonFantasy
61a6470ec7
Fix formatting
2020-08-26 00:53:33 +03:00
DraggonFantasy
251885756e
Fix formatting
2020-08-26 00:37:45 +03:00
DraggonFantasy
88b1b17425
Fix "ModuleNotFound 'module'" error
...
Related to #6497
2020-08-25 23:16:50 +03:00
Tobias Koppers
0a6f2bf401
expose missing target plugins
2020-08-19 23:17:33 +02:00
Ivan Kopeykin
8cf511dc94
Merge branch 'master' into chore/todos-to-defined-types
2020-08-06 22:48:20 +03:00
Tobias Koppers
305dab3ae1
improve and fix backtracing to root folder from nested directories
2020-08-04 09:36:49 +02:00
Ivan Kopeykin
4fc44a3398
add more types
2020-08-02 23:47:54 +03:00
Tobias Koppers
8948263db8
avoid using getChunkModuleMaps as it doesn't support different modules per runtime
2020-07-28 17:16:32 +02:00
Tobias Koppers
6c425546df
Avoid using real watchers in MultiWatching test case
...
add watchFileSystem to MultiCompiler and typings
2020-07-08 11:17:00 +02:00
Tobias Koppers
9f28e37969
allow runtimeChunk with node targets
...
also fixes a incorrect relative path
2020-06-29 11:46:16 +02:00
Mohsen Azimi
042b4ee7d4
Use @ts-expext-error
2020-05-12 14:34:29 +02:00
Tobias Koppers
b9c50fdb09
fix jsdoc documentations
2020-04-28 19:42:58 +02:00
Tobias Koppers
2d95f1b8d7
refactor HMR javascript part to reduce duplication
...
add invalidate to HMR API
2020-04-15 11:12:33 +02:00
Tobias Koppers
2350d09680
move chunk filename template logic into reusable function
2020-01-16 15:40:44 +01:00
Yury Michurin
553638dcd1
Use chunkGraph API directly
2019-12-19 12:13:42 +02:00
Yury Michurin
bd07e67a6a
Fix quote
2019-12-19 12:03:49 +02:00
Yury Michurin
8b9fea3790
Set contentHashType to javascript
2019-12-19 12:03:49 +02:00
Yury Michurin
19eb1a99ed
Fix issues raised in CR
2019-12-19 12:03:47 +02:00
Yury Michurin
f9bd2e20bc
Make inner folder entrypoints able to require common chunks
2019-12-19 12:03:45 +02:00
Sergey Melyukov
f212d3c30e
pr comments
2019-12-03 18:11:46 +03:00
Sergey Melyukov
6b59d113a4
optimize webpack runtime size
2019-12-02 17:59:37 +03:00
Tobias Koppers
b65f82e965
upgrade watchpack
2019-11-15 13:53:55 +01:00
Tobias Koppers
2f1a0176b3
rename filesModified -> modifiedFiles
...
avoid creating additional arrays by allowing Iterable on WatchFileSystem interface
2019-11-15 13:49:15 +01:00
Tobias Koppers
a877cd51d1
add presentational dependencies which are cheaper, but allow only templating
2019-10-30 07:49:20 +01:00
Tobias Koppers
6fbbca7756
fix typo
2019-10-29 10:04:18 +01:00
evilebottnawi
8198ffb3e6
refactor: code
2019-10-22 00:14:05 +02:00
Tobias Koppers
ecbcdf527f
apply chunk template modifications only to non-runtime chunks
2019-10-09 15:55:21 +02: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
53f68c9e7b
update deprecated usage of chunk and main templates
2019-10-08 23:46:33 +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
ab0ab1bdd1
Merge tag 'v4.39.1' into next
...
4.39.1
2019-08-05 13:32:25 +02:00
Tobias Koppers
b73d35bbee
Merge tag 'v4.39.0' into next
...
4.39.0
2019-08-05 13:12:09 +02:00
Tobias Koppers
8006117bae
make status logging 1 char shorter
2019-08-02 09:45:26 +02:00
Tobias Koppers
0b0e9e9608
fix Progress and Stats Tests for colors and output
2019-08-01 14:04:24 +02:00
Tobias Koppers
8f0a443e6c
Colored console for node environment
...
Status report in logger
ProgressPlugins uses logger
2019-08-01 13:51:18 +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
d532c4f24f
allow to configure the infrastructure logger
...
rename includeDebugLogging to loggingDebug
rename logToConsole to createConsoleLogger
2019-07-22 09:22:36 +02:00
Tobias Koppers
955d5689a9
remove experimental from module type name
...
since there is the `experiments` config now
2019-07-15 15:03:29 +02:00
Tobias Koppers
c94073b31c
update enhanced-resolve
2019-07-05 00:45:41 +02:00
Tobias Koppers
b2e7837288
replace Object.assign with object spread
2019-06-19 13:16:05 +02:00
Tobias Koppers
6db94536ad
Merge tag 'v4.34.0' into next
...
4.34.0
2019-06-13 10:51:12 +02:00
Tobias Koppers
e9c0d068dd
refactor filesystem interfaces
...
add Compiler.intermediateFileSystem
avoid using `path` and `fs` module when possible
move `join`, `mkdirp` and `dirname` into utils
join and dirname is optional in FileSystem interface
remove mkdirp from Filesystem interface
2019-06-11 17:32:58 +02:00
Tobias Koppers
de61023616
add side-by-side wasm support based on async modules
...
type: "webassembly/async-experimental"
remove i64 importing limitation since it will have BigInt integration eventually
update wasm example
2019-06-04 23:28:56 +02:00
Tobias Koppers
b5e4c1f52c
Merge pull request #9169 from webpack/feature/no-js-chunks
...
don't emit and load JS files for chunks without JS modules
2019-05-22 14:13:51 +02:00
Tobias Koppers
c5f94f3b6a
don't emit and load JS files for chunks without JS modules
...
allow custom module types in rules
allow configCases to access stats
2019-05-22 13:12:15 +02:00
Tobias Koppers
2be9ca9431
rename incorrectly named file
2019-05-22 13:11:48 +02:00
Tobias Koppers
4492c30ac4
Update watching system to report more timing info to webpack
...
Add snapshotting feature to FileSystemInfo for better performance
2019-01-09 14:42:54 +01:00
Tobias Koppers
31f2e6d1f7
watch missing items as files not as directories
2019-01-08 15:14:36 +01:00
Steven Hargrove
b9f52dcb4d
hoist option logic, reduce code paths in handler
2019-01-04 12:40:17 -05:00
Tobias Koppers
f446bf8a9b
add ability to load dependent chunks for non-web targets
...
This allows to use `splitChunks` for initial chunks in i. e. node and webworker targets
2018-12-29 12:48:59 +01:00
Tobias Koppers
1374757006
remove ModuleReason
...
remove HotUpdateChunkTemplate
move compareLocations into comparators
re-enable NodeSourcePlugin for `.mjs`
2018-12-20 16:38:26 +01:00