Commit Graph

113 Commits

Author SHA1 Message Date
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