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