Jason Williams
8a1b008a46
simplify the testcase
2020-11-07 15:10:12 +00:00
Jason Williams
60db4905e0
ad configTestCase instead
2020-11-07 14:34:39 +00:00
Tobias Koppers
11a7cac537
add useSimpleSourceMap flag to enable/disable OriginalSource for generated code
...
pass reduced options object to Source.map() function
2020-10-26 16:33:38 +01:00
Tobias Koppers
b929d4cdce
calculate real content hash for assets after asset processing
2020-08-18 22:07:24 +02:00
Tobias Koppers
4505a47e61
update snapshots and deprecations
2020-08-04 13:58:10 +02:00
Tobias Koppers
fd9b399ae9
Create Cache facade to make it easier to use
...
add missing serializers for classes used in test suite
2020-07-15 11:14:28 +02:00
evilebottnawi
7852c25657
chore: update terser-webpack-plugin
2020-05-23 16:42:57 +03:00
Tobias Koppers
49752a06a8
cleanup asset processing
...
deprecate writing to compilation.assets after sealing.
merge all asset processing into single hook with stages.
Deprecate additionalChunkAssets and optimizeChunkAssets.
Redirect additionalAssets, optimizeAssets to processAssets for backward-compat.
Remove finishAssets hook without deprecation as it was not in v4.
2020-05-22 10:39:21 +02:00
Tobias Koppers
6178aea763
improve typings and test them in CI
...
lazy load all webpack exports
2020-04-21 09:25:43 +02:00
Tobias Koppers
73978b1463
handle sourceRoot during source map contextify
2019-12-27 15:23:23 +01:00
Tobias Koppers
63afbf9bf1
add deprecation testing for config test cases
2019-12-17 17:18:52 +01:00
Tobias Koppers
46fec5e252
emit a warning when require.include is used
2019-10-22 10:17:34 +02:00
Tobias Koppers
6a6425272d
improve test case to be less sensitive to module number changes
2018-11-29 16:14:27 +01:00
Tobias Koppers
2849281702
remove generateContext from RuntimeModule.generate
...
add public path runtime module
2018-11-29 16:13:26 +01:00
Florent Cailhol
caefde17ab
Remove devtoolLineToLine and lineToLine options
2018-11-12 14:26:31 +01:00
Philip Walton
17fafd3432
Fix lint errors
2018-09-05 20:00:48 -07:00
Philip Walton
a2cc0313ab
Add tests for default source map extensions
2018-09-05 18:41:39 -07:00
Raanan Weber
47aa3d0ffe
adding tests
2018-07-09 17:32:57 +02:00
Tobias Koppers
4a541303c9
Upgrade jest
...
increase timeout
fix hanging
avoid inspector in CI
setup jest caching
2018-05-24 12:52:48 +02:00
Bazyli Brzóska
09ee9f4883
migration of new tests and changes after merge of master
2018-04-11 20:31:28 +02:00
Bazyli Brzóska
75253e7154
Merge branch 'master' of https://github.com/webpack/webpack into jest
...
# Conflicts:
# .eslintrc.js
# package.json
# test/BenchmarkTestCases.benchmark.js
# test/ConfigTestCases.test.js
# test/NodeWatchFileSystem.unittest.js
# test/TestCases.test.js
# test/WatcherEvents.test.js
# test/cases/parsing/extract-require/index.js
# test/configCases/parsing/harmony-this/index.js
# test/statsCases/async-commons-chunk/expected.txt
# yarn.lock
2018-04-10 23:36:20 +02:00
Erik Ziegler
7fcd28128a
fix: Add handling for devtool source-map with library specified as Object ( #6843 )
2018-03-23 10:06:39 +01:00
byzyk
a534dfd7b1
add test
2018-03-18 15:47:10 +04:00
Bazyli Brzóska
601b19a742
Merge branch 'master' of https://github.com/webpack/webpack into jest
2018-03-07 22:03:18 +01:00
Jason Milloff
1181c0effc
Remove accidental filename setting which wasn't needed and was breaking test
2018-03-05 12:13:21 -05:00
Jason Milloff
57c6c4323c
Add requested changes from PR comments
2018-03-05 11:45:20 -05:00
Bazyli Brzóska
36e8e30875
run prettier on existing code
2018-02-25 11:46:17 +01:00
Bazyli Brzóska
7b5c3516f6
Merge branch 'v4-beta3' into jest
...
# Conflicts:
# test/BenchmarkTestCases.benchmark.js
# test/CachePlugin.unittest.js
# test/HotTestCases.test.js
# test/NormalModule.unittest.js
# test/ProfilingPlugin.unittest.js
# test/TestCases.test.js
# test/configCases/parsing/harmony-this/index.js
# test/configCases/plugins/profiling-plugin/index.js
# test/configCases/plugins/profiling-plugin/webpack.config.js
# test/watchCases/runtime/static-import/0/index.js
# yarn.lock
2018-02-25 11:41:05 +01:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Stephan Badragan
59d9b9f8aa
EvalSourceMapDevToolPlugin: add ability to filter which modules get sourcemapped
...
see: https://github.com/webpack/webpack/issues/6450
This is useful to filter out stuff you don't care about or stuff that's very
large and screws up with devtools.
2018-02-08 17:33:55 -08:00
Bazyli Brzóska
075fcc31d7
migrate should to expect, part 4 (manual)
2018-01-27 16:05:21 +01:00
Bazyli Brzóska
a6c2aca36f
migrate should to expect, part 2 (manual)
2018-01-26 23:59:38 +01:00
Bazyli Brzóska
5a8083a930
migrate should to expect, part 1
...
used regexps:
([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\.should\.be\.eql
➡️
expect($1).toBe
expect\(([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\)\.toBe\(\[
➡️
expect($1).toEqual([
expect\(([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\)\.toBe\(\{
➡️
expect($1).toEqual({
2018-01-26 22:51:03 +01:00
Tobias Koppers
2148f556a4
Enable minimizing in production mode
2017-12-14 00:06:56 +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
d6ccbb9feb
remove incorrect test case
2017-11-20 12:41:19 +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
85ffe1e8ce
add test case
2017-07-11 21:41:20 +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
8e69a80847
code linting
2017-01-11 12:29:01 +01:00
Alistair Brown
7a43c0ef25
Update missing should type check calls
2017-01-02 00:44:24 +00:00
Tobias Koppers
8c3d97d933
add test
...
better error messages
validate array
more options in schema
stricter schema
fix some old configs
2016-09-19 00:54:35 +02:00
Tobias Koppers
a24a299204
test must pass sourceMap true
2016-05-29 12:26:27 +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
Tobias Koppers
91366def02
added two additional test cases
2015-04-28 23:51:17 +02:00
Sebastien Barre
6deb702490
Another stab at excluding source maps based on Tobias input
2015-03-19 11:30:52 -04:00
Sebastien Barre
31ee49b95c
First stab at SourceMapDevToolPlugin excludeChunks option
2015-03-17 14:53:14 -04:00
Tobias Koppers
c3f950506a
added cheap mode test cases
2015-02-27 22:43:02 +01:00
Tobias Koppers
2935d149a4
add test case for source-map bug
2014-08-03 21:31:53 +02:00
Tobias Koppers
572ebfcd51
use correct (relative) url to source map
2014-07-16 20:57:10 +02:00