Tobias Koppers
677ccd90ea
small fixes
2019-07-23 09:28:06 +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
ikopeykin
27b1e17f5b
createHash typescript
2019-07-10 14:06:36 +03:00
Tobias Koppers
6f25c3bdbd
Merge pull request #9150 from cacheflow/show-loaders-used-when-module-parsing-fails
...
feat(NormalModule/ModuleParseError): Show loaders used from config when module parsing fails
2019-06-04 23:24:21 +02:00
Tobias Koppers
45582c51e7
avoid loading from rule set, simplify
2019-06-03 17:00:50 +02:00
Lex Alexander
1c6e7a9344
feat(NormalModule/ModuleParseError): Show loaders used from config when module parsing fails
...
-Closes #9025
2019-05-29 14:11:49 -07:00
Tim Schaub
1a63d7bd0d
Default to production
...
Co-Authored-By: Tobias Koppers <tobias.koppers@googlemail.com>
2019-05-16 13:50:31 -06:00
Tim Schaub
290ab5d071
Allow loaders to access the mode
2019-05-16 10:18:16 -06:00
Tobias Koppers
162da1c509
add getResolve method to loader context
...
with allows to pass options
2018-12-03 12:42:28 +01:00
Tobias Koppers
8614c75f11
run inherit types tool on existing code
2018-07-21 13:50:18 +02:00
Tobias Koppers
fb2c24bf76
add `splitChunks.maxSize` option
...
add `splitChunks.fallbackCacheGroup`
add `splitChunks.hidePathInfo`
move `contextify` into utils
add some types
2018-07-04 10:45:02 +02:00
Tobias Koppers
deb798d8a7
add TODO comment
2018-06-25 16:42:19 +02:00
Tobias Koppers
41343d1763
add TODO comments
2018-06-25 16:18:21 +02:00
Sean Larkin
c3ebef7f25
Merge branch 'master' into feature/type-compiler-compilation-save
2018-06-21 11:07:33 +03:00
Tobias Koppers
6a7e79a443
Convert non-Error errors into Errors
2018-06-05 13:41:00 +02:00
Tobias Koppers
1886ee0f3f
improve final loader not string/buffer message
...
add test case
2018-06-05 11:58:10 +02:00
Tobias Koppers
9fbe914078
Merge branch 'master' into feature/module-build-error-with-loader-name
...
# Conflicts:
# lib/ModuleBuildError.js
# lib/ModuleError.js
# lib/ModuleWarning.js
2018-06-05 10:23:00 +02:00
Ma Cheng
e68d83e8c7
Fix Typo
2018-06-02 17:41:35 +08:00
Ma Cheng
957ee2a63e
Merge branch 'master' into feature/module-build-error-with-loader-name
2018-06-02 17:19:16 +08:00
Tobias Koppers
530e1fb172
Add matchResource feature (for loaders)
...
Match rules with custom resource name
Also use this name as rule.issuer or splitChunks test
Show nicely in stats
2018-06-01 15:37:17 +02:00
Sean Larkin
1bae93852a
Merge branch 'master' into feature/type-compiler-compilation-save
2018-05-30 19:35:36 -07:00
Florent Cailhol
2a9452e51b
Add brackets for multiline if/for statements
2018-05-29 15:45:44 +02:00
Sean Larkin
761d73b4e7
chore(types): add Compiler and Compilation type support
2018-05-15 15:04:38 +02:00
Tobias Koppers
f2ad440de8
More strict linting of jsdocs
...
Use TODO over any when type is possible
2018-05-08 14:53:33 +02:00
Tobias Koppers
9bc9c75f9d
Merge branch 'master' into next
...
# Conflicts:
# test/__snapshots__/StatsTestCases.test.js.snap
2018-05-04 12:02:30 +02:00
Tobias Koppers
ff950e732b
Use hex encoding instead
2018-05-02 18:11:48 +02:00
Tobias Koppers
214801493e
improve NormalModule performance
...
cache source and meta hash
2018-05-02 14:20:30 +02:00
mc-zone
8060ec6a24
Merge branch 'master' into feature/module-build-error-with-loader-name
2018-04-29 16:57:05 +08:00
Tobias Koppers
82a71be1dc
Cleanup, refactoring, types
2018-04-27 18:53:07 +02:00
Mohsen Azimi
c7429a67fe
Fixed all type errors!
2018-04-12 11:42:39 +02:00
Mohsen Azimi
2367a7da3d
More comments
2018-04-12 11:42:37 +02:00
Mohsen Azimi
7bc38d4bf4
CR feedback
2018-04-03 21:14:18 -07:00
Mohsen Azimi
10d6067818
Use a Map for dependencyTemplatesHashMap instead of a WeakMap
2018-03-31 19:38:00 -07:00
Tobias Koppers
93a5bf567f
fixes for mini-css-extract-plugin
2018-03-28 16:19:15 +02:00
Florent Cailhol
3983803d30
Destructure 'require' to improve readability
2018-03-22 12:05:58 +01:00
mc-zone
9c13d51141
improve message format; prevent destructure crash; improve tests;
2018-03-18 22:56:36 +08:00
mc-zone
ce63b53522
remove loader origin name and purify
2018-03-02 17:57:46 +08:00
Josh Soref
c9bb7b7707
spelling: successful
2018-02-26 02:48:51 +00:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
63b4523a15
Pass 'context' as constructor argument
2018-01-30 21:40:44 +01:00
Tobias Koppers
5c63d3cb43
move source generation into separate module
...
allow to pass a Generator to NormalModule
change NormalModule constructor to options object
🍆
2018-01-24 11:33:38 +01:00
Tobias Koppers
7a1b357aad
Merge branch 'next' into for_of_loops
2018-01-24 09:01:31 +01:00
Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +01:00
Evan Scott
1f29fa9b51
perf: refactor various timestamp caches into ES6 Maps
...
This change satisfies https://github.com/webpack/webpack/issues/6234
which desires to change the timestamp caches from plain objects to
the ES6 Map type to avoid deopts, since v8 expects things to be
added to Maps but objects are only fast if properties aren't added
dynamically after initial assignment.
2018-01-23 02:30:22 -05:00
Florent Cailhol
7f303e5260
Use Buffer.from instead of new Buffer
2018-01-22 17:23:34 +01:00
Florent Cailhol
c0d1994196
Fix Resolver#resolve deprecated call
2017-12-31 18:14:23 +01:00
Tobias Koppers
91e6692362
extract exports from wasm module
...
mangle used exports
fix esm flag
2017-12-14 13:05:03 +01:00
Tobias Koppers
e829a5ed71
Reset dependencies in unbuild
...
Elsewise they are cleared in disconnect and module removing doesn't work correctly
2017-12-12 17:01:14 +01:00
Tobias Koppers
aae32c770b
cache buildMeta
2017-12-12 16:58:03 +01:00
Tobias Koppers
ffb977fed4
refactor meta -> buildMeta, add factoryMeta
...
add compat layer to Module.meta
2017-12-12 16:57:50 +01:00