Tobias Koppers
8509a225e9
use bindContextCache more often
2020-04-17 10:54:27 +02:00
evilebottnawi
dafa4cd69a
chore: setup cspell
2020-03-12 19:51:26 +03:00
Yaroslav Peteychuk
c48eaeebf1
Minor fix: redundant default parameters
2020-01-14 14:14:37 +02:00
Tobias Koppers
586d5abc2c
improve progress reporting
2019-11-12 16:11:13 +01:00
Tobias Koppers
1a3b391352
compute asset hash lazily to avoid hash computation when memory cache is used
...
Cache accepts null as break condition when etag mismatches
MemoryCachePlugin caches cache mismatches
2019-11-12 16:07:50 +01:00
Tobias Koppers
1d9ae9d619
digest already returns a string
2019-11-12 13:28:28 +01:00
Tobias Koppers
90971dc0e6
use SyncHook for afterFinishAssets
2019-11-12 13:24:58 +01:00
Sergey Melyukov
f69f386855
fix review
2019-11-12 13:20:56 +01:00
Sergey Melyukov
fa8f5bcb80
feat: support caching in SourceMapDevToolPlugin ( closes #9721 )
2019-11-12 13:20:55 +01:00
Tobias Koppers
b90f3e14a1
upgrade webpack-sources
...
make source maps and source names context independent
add enhanced-resolve declarations
add types to Module.build
fix tooling for import order to support import renaming
add support for concatenated modules in eval source maps
2019-11-12 08:59:08 +01:00
Tobias Koppers
e93f5bedb4
avoid sourceMappingURL in the source code
2019-10-18 15:10:03 +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
758269e814
add emit/updateAsset to Compilation
...
add asset info with
* immutable for long term cache-able asset
* size for the asset size in bytes
* development for devtools
* hotModuleReplacement for HMR assets
show asset info in stats
2019-09-11 14:43:42 +02:00
Tobias Koppers
5e07802e21
SourceMapDevTool applies to all assets and adds auxiliary files to chunks
2019-09-09 12:18:06 +02:00
evilebottnawi
6a99b5316d
refactor: migrate on `schema-utils`
2019-08-07 18:10:40 +03:00
Tobias Koppers
d244ca9458
avoid too frequent progress display
...
#9460
2019-07-24 22:41:14 +02:00
Tobias Koppers
fde3f6298d
fix low hanging performance problems with ProgressPlugin
...
#9460
2019-07-24 22:39:44 +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
cf20194d00
Merge pull request #9166 from shawtung/feature/source-map-dev-tool-plugin_file-placeholder
...
Add [file] placeholder for sourceMappingURL in SourceMapDevToolPlugin
2019-07-10 14:37:34 +02:00
ikopeykin
87164a6956
#9331 resolve discussion
2019-07-08 23:31:11 +03:00
shawtung
1f22f358fa
Add [file] placeholder for sourceMappingURL
2019-07-04 11:38:40 +08:00
ikopeykin
fc6852f47d
esdoc(SourceMapDevToolPlugin): add some esdoc definitions
2019-06-26 19:42:33 +03:00
Tobias Koppers
0505e177f1
add more types and fix/remove TODOs
...
change Chunk.files to Set
remove checkContext from IgnorePlugin
remove external flag from ExternalModule
2019-06-14 10:45:56 +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
Florent Cailhol
15997e2324
Remove context usage in ProgressPlugin
2018-11-27 08:58:43 +01:00
Michael Ciniawsky
56c49bdc9d
refactor(TemplatedPathPlugin): split placeholder context (`chunk|module`)
2018-11-01 20:23:09 +01:00
Tobias Koppers
17044bf9c6
Merge tag 'v4.20.0' into next
...
4.20.0
2018-09-25 16:20:42 +02:00
Tobias Koppers
1f6b92de3e
use declarations from schemas in plugins
2018-09-21 11:04:28 +02:00
Tobias Koppers
19d60ba0cd
Merge tag 'v4.19.1' into next
...
4.19.1
2018-09-18 10:13:54 +02:00
Tobias Koppers
02b15a1b46
pass chunkGraph to updateHash instead of moduleGraph
...
pass chunkGraph to compareModulesById instead of moduleGraph
pass chunkGraph to methods of RuntimeTemplate
use comparators from module at some places
2018-08-28 12:06:53 +02:00
Philip Walton
12762ff37f
Add sourcemap support for .mjs output files
2018-08-23 11:10:46 -07:00
Tobias Koppers
3aa2280498
move Module.hash and .renderedHash into ChunkGraph
2018-08-22 19:24:54 +02:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Florent Cailhol
26d33424bb
Replace basename helper by node's one
2018-07-06 11:20:01 +02:00
Florent Cailhol
112af1e7ec
Remove unneeded arguments checks
2018-07-06 11:19:30 +02:00
Tobias Koppers
4f4a2bae33
Merge pull request #7434 from webpack/bump_prettier
...
Update prettier to v1.13
2018-05-29 20:35:51 +02:00
Florent Cailhol
faf04e005c
Update prettier to v1.13
2018-05-29 16:14:16 +02:00
Florent Cailhol
2a9452e51b
Add brackets for multiline if/for statements
2018-05-29 15:45:44 +02:00
Florent Cailhol
bfc74252fd
Use WeakMaps instead of mutating assets
2018-05-21 08:09:56 +02:00
Tobias Koppers
296542ed79
add [contenthash] support
2018-03-24 12:08:36 +01:00
Florent Cailhol
3983803d30
Destructure 'require' to improve readability
2018-03-22 12:05:58 +01:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
40ee8c76d2
Use MD4 for hashing
2018-02-22 11:27:11 +01:00
ruszki
28288c82bd
Remove unnecessary conditions
2018-02-01 19:36:55 +01:00
ruszki
83f772a611
Remove footer from source maps and eval
2018-01-30 22:46:23 +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
Florent Cailhol
7f303e5260
Use Buffer.from instead of new Buffer
2018-01-22 17:23:34 +01:00
EugeneHlushko
2aab060f26
Refactor: indexOf >< checks to includes
2018-01-11 18:58:39 +02:00
EugeneHlushko
6d893ad9c2
Feature: SourceMapDevToolPlugin progress: make the linter happy again
2018-01-04 18:27:55 +02:00
Tobias Koppers
55ad52fd9a
report progress for both steps
2018-01-04 15:42:31 +01:00
EugeneHlushko
91f961b8fa
Feature: SourceMapDevToolPlugin progress: PR changes
2018-01-03 16:56:40 +02:00
EugeneHlushko
fdd6b4ebee
Feature: SourceMapDevToolPlugin progress: PR changes
2018-01-03 16:55:38 +02:00
EugeneHlushko
fe83f52b0a
Feature: SourceMapDevToolPlugin progress: wip
2018-01-03 12:50:37 +02:00
EugeneHlushko
7621c46464
Feature: SourceMapDevToolPlugin progress: wip
...
Feature: SourceMapDevToolPlugin progress: wip
2018-01-03 11:40:57 +02:00
Florent Cailhol
36c690d37f
Use tapable instead of 'plugin'
2017-12-08 14:23:31 +01:00
Tobias Koppers
bfa4b49858
Merge branch 'master' into next
2017-12-04 14:36:07 +01:00
Tobias Koppers
7d87f34269
Only create one RequestShortener per Compiler
...
move Compiler.context assignment into Compiler
2017-12-04 12:23:42 +01:00
Tobias Koppers
dae9de6595
Merge branch 'next' into feature/validate-plugin-options
...
# Conflicts:
# lib/SourceMapDevToolPlugin.js
# lib/optimize/AggressiveSplittingPlugin.js
# yarn.lock
2017-11-28 09:59:59 +01:00
Tobias Koppers
471e1a28f4
make url only relative when no publicPath has been provided
2017-11-27 07:53:38 +01:00
EugeneHlushko
840b43f16a
SourceMapDevToolPlugin: add fileContext and publicPath options. Add a configCase test
2017-11-25 16:38:30 +02:00
Tobias Koppers
a0ef93f939
aggregate all crypto hash usages into util/createHash
...
try to avoid calling hash.update with short strings
2017-11-23 11:09:17 +01:00
Tobias Koppers
a53672d1a2
Merge branch 'master' into next
...
# Conflicts:
# lib/EvalSourceMapDevToolModuleTemplatePlugin.js
# lib/dependencies/HarmonyDetectionParserPlugin.js
# lib/dependencies/HarmonyImportDependency.js
# package.json
# schemas/webpackOptionsSchema.json
# test/Validation.test.js
2017-11-17 16:03:46 +01:00
Sergey Petushkov
cdd593b847
Rename schemas; Make imports less verbose
2017-11-12 09:48:08 +01:00
Sergey Petushkov
d73ad04c72
Add spaces to plugin names
2017-11-12 09:48:08 +01:00
Sergey Petushkov
1065a6e46c
Refactor plugins to use schema-utils; Remove unused
2017-11-12 09:48:08 +01:00
Sergey Petushkov
744dbe9b95
Add validations to plugins
2017-11-12 09:48:08 +01:00
Tobias Koppers
4597805222
Merge branch 'next' into master
2017-11-11 19:00:05 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Abhilash Singh
1a856937d1
Source maps: webpack serves null content from sourcesContent #5542
2017-10-29 04:49:42 +05:30
Stephan Badragan
68acd41bff
passing namespace argument to contructors of dev tool plugins
2017-10-19 13:23:28 -07:00
Stephan Badragan
72b28aa1c3
passing devtoolNamespace through instead of setting it statically
2017-10-18 23:30:37 +01:00
Stephan Badragan
f925032d5a
adding `output.devtoolNamespace` option
...
When loading multiple libraries built with webpack, you can run into
collisions of the sourcemap file paths. For examle, both have
"webpack:///src/index.js".
This change addresses the problem by introducing a new output option
`output.devtoolNamespace` which defaults to `output.library` when
not specified. The defaults moduleFilenameTemplates in all the
sourcemap plugins have been modified to start with:
"webpack://[namespace]/...", where [namespace] will be replaced by
the `output.devtoolNamespace`.
Notice that there are only two slashes following "webpack:" now.
This is to make it behave just as before when not building with a
namespace. When building with a namespace you only get the two
slashes, but from what I've seen the chrome dev tools only care
about the first 2 slashes anyways.
Discussed with sokra here:
https://github.com/webpack/webpack/issues/5767
2017-10-18 01:14:40 +01:00
Tobias Koppers
4105297de6
Merge branch 'next' into deprecation/webpack-3
2017-09-11 11:26:44 +02:00
Filipe Silva
2f30174d15
fix: replace for..of to prevent v8 deoptimization
...
According to https://github.com/GoogleChrome/devtools-docs/issues/53#issuecomment-319107156 , use of `for...of` statements will cause a deopt in some versions of v8.
In a my particular case these two changes reduced 1.6 seconds in a big rebuild.
2017-08-29 14:35:37 +01:00
Tobias Koppers
5e46fff39d
Simplify code a little bit
2017-07-18 14:28:12 +02:00
Evan Scott
7a1630b108
refactor: collapse several array iterators into single reduce
2017-07-17 01:33:59 -04:00
Tobias Koppers
edd6228ac1
fix linting
2017-07-08 12:25:52 +02:00
Tobias Koppers
3dfa75e60d
generate source map names globally
2017-07-07 12:55:11 +02:00
Tobias Koppers
5e84167fbd
remove deprecated stuff
2017-06-14 14:41:02 +02:00
Tobias Koppers
e7474b1b8b
fixup for source-map contenthash
2017-06-05 09:46:01 +02:00
Rafael De Leon
84b6554f98
Enable use of sourceMapFilename: "[file].map?[contenthash]" as a useful workaround for this bug in chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=508270
2017-06-02 10:06:18 -07:00
Tobias Koppers
0990915ad8
spacing
2017-04-13 08:07:52 +02:00
Tobias Koppers
d8a8bd329b
deprecate string option instead of removing it
2017-04-13 08:06:56 +02:00
e-cloud
52055ba07e
refactor: dead code elimination
...
remove those code not defined but used;
remove unused code
2017-04-11 19:43:05 +08:00
Tobias Koppers
7d142780de
change Buffer.from to new Buffer
2017-04-09 10:08:15 +02:00
Will Mendes
127cd7898b
refactor(SourceMapDevToolPlugin): upgrade to ES6
2017-04-07 20:14:19 +10:00
Tobias Koppers
546fe6dfc1
fixes #4086
2017-01-25 22:57:27 +01:00
Sean Larkin
72226db030
add missing disable line
2017-01-17 00:32:42 -06:00
Sean Larkin
91c1f35e05
fix(node): rollback changes of Buffer.from to new Buffer() and bump down travis to 4.3 min node v
2017-01-16 23:57:27 -06:00
Sean Larkin
7327ee608a
chore(eslint): added eslint-node-plugin ( #3652 )
2016-12-30 17:13:49 -06:00
Tobias Koppers
28776e28f3
added sourceRoot option for SourceMap plugins
...
simplified option passing
fixes #238
2016-05-05 10:24:18 +02:00
Tobias Koppers
5d981fe3d5
Option noSources that removes sourcesContent from sourcemaps. Also available as "nosources" in devtool option.
...
Picked from #2213
2016-04-10 23:37:17 +02:00
Kenny Tran
eebc5ceaf6
Fix no-redeclare in code
2016-01-18 18:57:42 -08:00
Tobias Koppers
5bfc68aacb
Merge branch 'master' of https://github.com/webpack/webpack
2016-01-03 21:44:02 +01:00
Tobias Koppers
ded70aef28
moves stuff from webpack-core to webpack-sources
2015-12-29 17:44:55 +01:00
nanzhu
af4c2e88c0
Set charset as 'utf-8' in sourcemap plugin
...
by adding 'charset=utf-8;'.
2015-12-24 10:50:22 +08:00
Tobias Koppers
5879483eb1
fixed formating
2015-10-31 15:31:10 +01:00
Tobias Koppers
0f0ede8a2c
removed deprecated parameters for plugins
2015-10-28 23:26:52 +01:00
Tobias Koppers
f7d799adb4
rebeautify without spacing after keyword
2015-07-16 00:19:23 +02:00