Tobias Koppers
e9b8b00b4f
fix chunk name reuse in SplitChunks
...
fixes #9288
2019-06-18 15:26:28 +02:00
Ryan Drew
054c933950
introduce name truncation config option for SplitChunksPlugin
2019-06-15 14:20:48 -04: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
bba93d2a85
Merge pull request #9214 from jkzing/feat/suspend-watching
...
feat(watching): allow suspend/resume compilation
2019-06-13 17:57:10 +02:00
Tobias Koppers
681abf0830
Merge pull request #9225 from Bkucera/issue-9221
...
fix progress on line wrap (trim line to stderr.columns)
2019-06-13 17:49:22 +02:00
Tobias Koppers
03f1fa1e0c
shorter timeouts for cached builds
2019-06-13 14:07:39 +02:00
Tobias Koppers
58a157334e
fix merge snapshot update
2019-06-13 14:07:11 +02:00
Tobias Koppers
03c7f0c54a
add test case
2019-06-13 14:04:31 +02:00
jkzing
460b099a63
test(watching): add integration test
2019-06-13 19:26:31 +08:00
jkzing
6c4a979093
test(watching): add tests
2019-06-13 19:18:01 +08:00
Tobias Koppers
6db94536ad
Merge tag 'v4.34.0' into next
...
4.34.0
2019-06-13 10:51:12 +02:00
Tobias Koppers
06521142a3
Merge pull request #9268 from webpack/bugfix/let-scopes
...
handle block scopes correctly
2019-06-13 01:09:27 +02:00
Tobias Koppers
e04b1a52a0
handle block scopes correctly
...
fixes #9253
fixes #9183
2019-06-13 00:41:42 +02:00
alreadyExisted
df5e118da4
fix(mjs): remove unused namespace build errors
2019-06-12 14:46:39 +02:00
Tobias Koppers
ba77df23dd
add warnings for non-default json module imports
...
unify linking error generation
2019-06-12 14:33:49 +02:00
Felix Becker
74178d4d4b
Update snapshot
2019-06-12 10:31:33 +02:00
Tobias Koppers
01eb9885a5
disable splitChunks.minRemainingSize for multiple selected chunks
2019-06-12 08:58:17 +02:00
Tobias Koppers
a0aa52d7bd
Merge pull request #9254 from webpack/bugfix/remaining-size-shared
...
fix minRemainingSize when multiple chunks are affected
2019-06-11 21:55:20 +02:00
Tobias Koppers
2f5bd7a8e3
fix minRemainingSize when multiple chunks are affected
...
issue: https://github.com/webpack/webpack/issues/8537#issuecomment-499818693
2019-06-11 17:46:36 +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
Tobias Koppers
fd4b3c503a
pretty files
2019-06-09 11:23:42 +02:00
Tobias Koppers
11fb0a9511
enabled wasm for watch test case
2019-06-05 17:36:25 +02:00
Tobias Koppers
d4651abe8e
fix test failures
2019-06-05 16:10:08 +02:00
Tobias Koppers
a14c6fb3ba
refactor async logic to break cycles
2019-06-05 14:17:15 +02:00
Tobias Koppers
12a3e7c854
create experiments for importAwait importAsync and (a)syncWebAssembly
2019-06-05 13:32:22 +02:00
Tobias Koppers
cfc1d62bd0
add missing info to hash
2019-06-05 11:41:16 +02:00
Tobias Koppers
de61023616
add side-by-side wasm support based on async modules
...
type: "webassembly/async-experimental"
remove i64 importing limitation since it will have BigInt integration eventually
update wasm example
2019-06-04 23:28:56 +02:00
Tobias Koppers
903084f9aa
WIP prototype of top-level-await and async modules based on import await
2019-06-04 23:25:35 +02: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
09f2fa7273
Merge tag 'v4.33.0' into next
...
4.33.0
2019-06-04 23:23:25 +02:00
Lex Alexander
2cd6489579
Added test to account for module parsing failure for binary files
2019-06-04 11:45:48 -07:00
Ben Kucera
7aefa64b0a
refactor test, evenly truncate details text, properly handle undefined stderr.columns
2019-06-04 12:33:55 -04:00
Tobias Koppers
aa78e27a44
fix splitting of windows newlines
...
move fixture
update snapshots
2019-06-04 14:48:46 +02:00
Tobias Koppers
8af4c0800c
update validation snapshot
2019-06-04 14:25:41 +02:00
Tobias Koppers
96869d959e
Merge pull request #9191 from webpack/dependabot/npm_and_yarn/chrome-trace-event-1.0.2
...
chore(deps): bump chrome-trace-event from 1.0.0 to 1.0.2
2019-06-04 14:18:32 +02:00
Tobias Koppers
e90cf7c0c6
Merge pull request #9190 from webpack/dependabot/npm_and_yarn/terser-webpack-plugin-1.3.0
...
chore(deps): bump terser-webpack-plugin from 1.2.4 to 1.3.0
2019-06-04 14:18:05 +02:00
Tobias Koppers
96b97b559a
Downstream bug fixed and we can remove workaround
2019-06-04 12:09:09 +02:00
Tobias Koppers
31dae4ddf8
update snapshots
2019-06-04 11:51:23 +02:00
Tobias Koppers
bf0775f991
add test case
2019-06-04 11:42:03 +02:00
Tobias Koppers
ad64a1c2ca
add experiment.mjs config option
2019-06-04 11:33:26 +02:00
Tobias Koppers
51b19ebd1f
make refs independent of number of default rules
2019-06-04 11:33:16 +02:00
Ben Kucera
e7c2b7d813
fix progress on line wrap (trim line to stderr.columns)
2019-06-03 18:27:38 -04: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
Tobias Koppers
979e6e40a8
fix edgecase with script this context
2019-05-29 21:59:09 +02:00
Tobias Koppers
1b685d1de8
change DependencyReference.importedNames to be always an string[][]
2019-05-29 11:55:07 +02:00
Tobias Koppers
43bc7a306e
Refactor to track nested exports
...
Harmony dependencies track access to nested properties
Flag nested exports
2019-05-29 11:55:00 +02:00
Tobias Koppers
46b428b9d9
fix rejection when removing and readding self-accepted module
...
fixes #9198
Co-authored-by: rixo <eric@rixo.fr>
2019-05-29 09:28:19 +02:00
Tobias Koppers
ad5a6d105b
Merge tag 'v4.32.2' into next
...
4.32.2
2019-05-23 01:19:34 +02:00
Tobias Koppers
fec26a9503
fix concatenated version of reexport dependency for sideEffects
...
fixes #9159
2019-05-22 21:32:52 +02:00
Tobias Koppers
9b368f6d6d
update snapshot
2019-05-22 16:19:59 +02:00
Tobias Koppers
0de5b54f25
disable node stuff in node targets
2019-05-22 15:55:21 +02:00
Tobias Koppers
b5e4c1f52c
Merge pull request #9169 from webpack/feature/no-js-chunks
...
don't emit and load JS files for chunks without JS modules
2019-05-22 14:13:51 +02:00
Tobias Koppers
a4406ff187
improve validation errors
2019-05-22 13:46:07 +02:00
Tobias Koppers
0963d744e9
add test case for enum validation
2019-05-22 13:45:53 +02:00
Tobias Koppers
f1df013150
refactor Validation test for snapshots
2019-05-22 13:45:36 +02:00
Tobias Koppers
14d95e30cb
Merge tag 'v4.32.1' into next
...
4.32.1
2019-05-22 13:36:26 +02:00
Tobias Koppers
c5f94f3b6a
don't emit and load JS files for chunks without JS modules
...
allow custom module types in rules
allow configCases to access stats
2019-05-22 13:12:15 +02:00
Tobias Koppers
5b08ab51c3
fixes #9156
...
node: false should not disable CommonJs features
2019-05-22 08:03:44 +02:00
Tobias Koppers
b34da271a1
add sync mode for chunk dependency startup in sync node target
...
fixes #9154
allow nesting webpack bundles (rename inner __webpack_require__)
to allow testing this
2019-05-20 22:53:58 +02:00
Tobias Koppers
70c28f929b
fix merge issue
2019-05-20 16:59:50 +02:00
Tobias Koppers
abc825d58f
Merge tag 'v4.32.0' into next
...
4.32.0
2019-05-20 14:46:31 +02:00
Tobias Koppers
a4bbdae0d2
fix problem with dll and sideEffects
...
allow to redirect module and id in reexports
SideEffects plugin redirects reexports too
fixes #9146
2019-05-20 11:28:33 +02:00
Tobias Koppers
6d50f4d957
Merge pull request #9138 from webpack/refactoring/rule-set
...
rewrite RuleSet to RuleSetCompiler with plugins
2019-05-20 11:27:43 +02:00
Tobias Koppers
36c7ab73ab
Merge pull request #9128 from rchl/fix/useful-chunk-load-stacktrace
...
fix: provide useful stacktrace on chunk loading failure
2019-05-20 09:24:02 +02:00
Rafal Chlodnicki
b322070344
fix: provide useful stacktrace on chunk loading failure
...
Error created from load/error event handler has no useful stack trace
whatsoever as it's an async event and stack has unwound already at that
point.
To have better (sync) stacktrace of what triggered loading of the
chunk, create error before stack has unwound and use it and its
stacktrace later, in case of an error.
This potentially has some processing overhead as browser needs to
create a stacktrace. It's probably not that big though but I haven't
done any real testing.
2019-05-19 22:11:24 +02:00
Tobias Koppers
a3f2314a63
replace micromatch with glob-to-regexp for sideEffects flag
2019-05-16 21:54:03 +02:00
Tobias Koppers
9e630f3635
fixup Validation test for schema changes
2019-05-16 20:38:01 +02:00
Tim Schaub
290ab5d071
Allow loaders to access the mode
2019-05-16 10:18:16 -06:00
Tobias Koppers
74d4669d73
rewrite RuleSet to RuleSetCompiler with plugins
...
remove some deprecated features (query, loaders)
add missing condition (realResource)
2019-05-16 11:37:52 +02:00
Tobias Koppers
9b849e8d9c
Merge pull request #9126 from webpack/feature/clever-merge
...
improve merging of resolve and parsing options
2019-05-13 22:29:51 +02:00
Tobias Koppers
f03c4f127a
improve merging of resolve and parsing options
...
by rules and via loader API
Objects are deeply merged
Arrays overwrite by default, but can reference old value with "..."
fixes #8968
2019-05-13 15:30:10 +02:00
Tobias Koppers
d2dbdd9b30
Merge pull request #9115 from webpack/bugfix/pefetch-public-path
...
fix prefetching with runtime public path
2019-05-13 13:21:02 +02:00
Tobias Koppers
92f8c36ca2
add `minRemainingSize` option for splitChunks to ensure leftover chunks from splitting have a minimum size
...
defaults to `minSize` of cache group
defaults to global option when not specified
global option defaults to zero in development
2019-05-13 13:10:23 +02:00
Tobias Koppers
0c39719729
avoid zero sized modules as they lead to problems
2019-05-13 12:29:29 +02:00
Tobias Koppers
b05377c6f7
Merge pull request #9054 from zcfan/fix-9042
...
Turn off NodeStuffPlugin with when "node" configuration set to "false"
2019-05-13 11:05:09 +02:00
Tobias Koppers
e062e899f6
Merge pull request #9063 from ominiom/fix-parser-object-pattern-rest-element-issue
...
fix(parser): Rest element identifiers in object patterns not added to defined variables of scope
2019-05-11 00:09:42 +02:00
Tobias Koppers
9bad7218c9
fix test case
2019-05-10 23:37:00 +02:00
Tobias Koppers
88fbf33d63
Merge pull request #8505 from webpack/types/hooks
...
Update tapable definitions
2019-05-10 23:28:10 +02:00
Tobias Koppers
ac23b8e479
update stats snapshot, because new line was added
2019-05-10 23:16:06 +02:00
Tobias Koppers
b6090b6943
delay prefetching until all initial code is evaluated
...
add test case
fix bug in Chunk.getChildIdsByOrdersMap
2019-05-10 23:10:32 +02:00
Tobias Koppers
905da8cabf
fix test case
2019-05-10 23:10:20 +02:00
Dan Homola
e79e2417c7
test: make prefetch/preload tests stricter
2019-05-10 23:10:14 +02:00
Tobias Koppers
2ddf3a0591
allow to access the function generating the script src
...
fixes #8259
2019-05-10 22:11:47 +02:00
Yuta Hiroto
6033db679f
chore(ci): add Node.js v12 to azure-pipelines
2019-05-10 20:54:39 +01:00
Florent Cailhol
c18b1798d5
Update snapshots because hashs changed (indent fix)
2019-05-10 09:59:54 +02:00
Florent Cailhol
9d4d2bfde8
Update unit tests
2019-05-10 09:55:58 +02:00
Tobias Koppers
8bd62c353c
fix merge issue
2019-05-09 21:54:24 +02:00
Tobias Koppers
e4009e7695
Merge tag 'v4.31.0' into next
...
4.31.0
2019-05-09 21:38:10 +02:00
Tobias Koppers
b66143f706
Merge tag 'v4.30.0' into next
...
4.30.0
2019-05-09 21:34:28 +02:00
Tobias Koppers
b17543e0ba
Merge pull request #8919 from vincentrodriguez/errors-and-warnings-only-preset
...
Preset option for errors & warnings only
2019-05-09 09:52:41 +02:00
Alan Zhang
8fbcc5672f
don't evaluate `__dirname` and `__filename` when set to false
2019-04-29 02:41:54 +08:00
Iain Wilson
260d69e995
fix(parser): Unit test for object pattern rest spread identifiers being added to definitions
2019-04-25 14:44:19 +01:00
Alan Zhang
61dfa67d10
Turn off NodeStuffPlugin with when "node" configuration set to "false"
2019-04-23 12:16:28 +08:00
Merijn Wijngaard
dc6dd515d3
Allow top-level return in script parsing. Fixes issue 8509 in master, like PR 8510 fixed it for 'next'
2019-04-18 09:37:41 +02:00
Tobias Koppers
42db81a2d3
Merge pull request #9029 from EugeneHlushko/mode/warning
...
Update link in warning
2019-04-18 00:10:14 +02:00
EugeneHlushko
84ca105156
mode(warning) update mode warning snapshot hash
2019-04-15 15:23:16 +03:00
Adam Postma
ff8c37e887
correct spelling mistake, update identifer to identifier
2019-04-12 10:29:41 -06:00
Tobias Koppers
de81dd096c
Merge pull request #8864 from joeldenning/issue-8833
...
Adding support for output.libraryTarget "system"
2019-04-10 14:55:27 +02:00
Tobias Koppers
f7d0c2545f
Improve way how System is tested
2019-04-10 13:48:47 +02:00
Tobias Koppers
2259bbe3cf
Merge pull request #8849 from hiroppy/feature/fix-typo
...
test: modify JavaScript example in README
2019-04-08 20:48:57 +02:00
Tobias Koppers
ebd8b35175
Merge pull request #8990 from mattsjones/feature/async-finish-modules
...
Convert finishModules hook to be an AsyncSeries
2019-04-08 20:48:05 +02:00
Joel Denning
a061d0fe55
Merge branch 'master' of github.com:webpack/webpack into issue-8833
2019-04-05 14:00:10 -06:00
Joel Denning
b59e0d1fc2
Self review -- fixing test name.
2019-04-05 13:56:34 -06:00
Matt Jones
fdc3bc6b28
Add finish module test case
2019-04-05 11:22:45 +11:00
EugeneHlushko
fe2c41ad7f
mode(warning) update mode warning snapshot
2019-04-01 10:58:54 +03:00
Yuta Hiroto
71e24cf36c
test(TestCases): don't return a value at `describe.skip` and `it`
2019-03-28 22:14:52 +00:00
Marijn van Butselaar
eb9e875c12
Add fix for normal Function Expression and fix code style for fix #8874
2019-03-20 12:19:49 +01:00
vincentrodriguez
111e864393
support for "errors-warnings" stats preset
2019-03-19 11:24:34 +00:00
vincentrodriguez
9192c8c367
test case for "errors-warnings" stats preset
2019-03-19 10:39:46 +00:00
Joel Denning
ec94b82374
Feedback from sokra. Using Template.indent and Template.asString.
2019-03-18 15:20:28 -06:00
Noé Lebrun
1d2833241b
Removed logging in test case in fix for #8874
2019-03-18 10:37:18 +01:00
Noé Lebrun
9dfccdf75c
Adding additional tests to fix #8874
2019-03-18 10:23:19 +01:00
Joel Denning
97d58d31c0
Adding support for output libraryTarget 'system'. Resolves #8833 .
...
Tests, prettier
Self review
Add comments to System tests.
Adding typescript definition
Guy Bedford's feedback
Self review
Improving code coverage
2019-03-17 08:46:17 -07:00
Noé Lebrun
451c7c65a9
fixes #8874
2019-03-17 01:43:08 +01:00
Tobias Koppers
255b3b460d
fixes #8908
2019-03-15 12:39:21 +01:00
Tobias Koppers
5ca4a3f559
Merge pull request #8916 from mxmul/fix-8911
...
fix null module reference when concatenating entryModule in split chunk
2019-03-15 11:25:44 +01:00
Matt Mulder
287c2b7ef1
fix null module reference when concatenating entryModule in split chunk
2019-03-15 01:30:36 -07:00
Tim Neutkens
bbecd09fba
Add missing done
2019-03-11 17:23:40 +01:00
Tim Neutkens
d346380a78
Make requested changes
2019-03-11 17:18:14 +01:00
Tim Neutkens
cecced5dc9
Run yarn fix
2019-03-10 18:18:34 +01:00
Tim Neutkens
8d69df9d7e
Add test for amd: false
2019-03-10 18:13:54 +01:00
Yuta Hiroto
ebe51482b5
test: modify JavaScript example in README
2019-03-01 19:43:33 +09:00
Tobias Koppers
d29ecdb457
Merge tag 'v4.29.6' into next
...
4.29.6
2019-02-28 10:54:00 +01:00
Tobias Koppers
ab517aa080
fixes #8829
2019-02-28 09:10:17 +01:00
Yuta Hiroto
66bfea679f
test: modify styles and typo of README
2019-02-24 12:11:59 +09:00
Tobias Koppers
7efcfa01c1
Merge pull request #8803 from rgranger/bugfix/harmony-accept-dependency
...
bugfix(harmony-deps) : bind the function to prevent the this keyword …
2019-02-21 11:33:02 +01:00
Tobias Koppers
e41f23a529
linting and test case
2019-02-21 09:18:59 +01:00
Tobias Koppers
ccf32f214e
add test cases with many exports
2019-02-21 09:11:43 +01:00
Tobias Koppers
924daa105b
Use simpler/faster hash function to get a hash number
...
Use deterministic mangled names for exports
refactor assignDeterministicIds
rename __webpack_init__ function in wasm to ""
fix bug with incorrectly cached StaticExportsDependency
fix bug in hash logic of Module
2019-02-20 22:41:07 +01:00
Tobias Koppers
e2e0983f4c
remove splitChunks restriction for custom filenames on non-initial chunks
...
fix bug, which generated incorrect static url mapping for get chunk filename runtime module
optimize generated code for chunk filename (shorter)
2019-02-19 11:16:53 +01:00
Tobias Koppers
d34d69e62b
Merge tag 'v4.29.5' into next
...
4.29.5
2019-02-19 08:58:46 +01:00
Tobias Koppers
5dda69e615
add lint step to avoid non-npm dependencies in graph
...
fix azure pipeline windows script (set -e doesn't exist on windows)
2019-02-18 17:05:54 +01:00
Tobias Koppers
75a9a515fd
fix prettierignore file and run prettier
2019-02-18 09:23:08 +01:00
Tobias Koppers
61445a5ed0
Merge tag 'v4.29.3' into next
...
4.29.3
2019-02-07 09:41:34 +01:00
Steven Hargrove
cb0e8cd58b
fix spacing
2019-02-06 11:53:12 -05:00
Tobias Koppers
7a5137d7c4
fixes in ContextModule
...
avoid generating __webpack_require__.e when no chunks are used
add optimized lazy mode when no chunks and no fake make are used
improve module id check
2019-02-06 17:51:16 +01:00
mc-zone
7edcc480db
fix: add missed __webpack_require__.e runtime while importing exist module with context
2019-02-06 17:51:15 +01:00
Steven Hargrove
a50fb84628
improve error report for cjs export in esm
2019-02-06 11:44:32 -05:00
Tobias Koppers
180f912493
Merge tag 'v4.29.2' into next
...
4.29.2
2019-02-06 15:37:11 +01:00
Tobias Koppers
88a5050fa8
Merge pull request #8724 from webpack/dependabot/npm_and_yarn/terser-webpack-plugin-1.2.2
...
Bump terser-webpack-plugin from 1.1.0 to 1.2.2
2019-02-05 17:31:07 +01:00
Tobias Koppers
03cfa701d3
update test cases for changed hash
2019-02-05 16:33:40 +01:00
Tobias Koppers
58c1823d5e
fix test case
2019-02-05 13:49:51 +01:00
Tobias Koppers
5fe66199c0
fix liniting
2019-02-05 10:00:33 +01:00
Tobias Koppers
aa305969f4
Merge tag 'v4.29.1' into next
...
4.29.1
2019-02-04 19:03:31 +01:00
Tobias Koppers
fdaf87bffc
add missing runtime requirement to AMD define
2019-02-03 12:12:24 +01:00
Tobias Koppers
7de37e87bb
fix a bug which creates duplicate runtime modules for entrypoints sharing a runtime chunk
2019-02-02 13:18:57 +01:00
Tobias Koppers
b6ad10b2c1
bugfixes and HarmonyExportImportedSpecifier optimization
2019-02-01 11:45:24 +01:00
Tobias Koppers
6fc0b96c9c
add MangleExportsPlugin and options
2019-01-31 11:41:30 +01:00
Tobias Koppers
71b1c6aa8d
fixup: remove module argument
2019-01-28 08:38:38 +01:00
Tobias Koppers
739fef4fda
move usedExports into ExportsInfo
2019-01-28 08:38:37 +01:00
Tobias Koppers
921b295bc9
Create ExportsInfo and move provided exports and mangle info into this new object
2019-01-28 08:38:34 +01:00
Tobias Koppers
1da2c422d6
remove fast-json-stable-stringify
2019-01-27 11:47:31 +01:00
Tobias Koppers
42007e882a
fixes #8666
2019-01-22 09:13:21 +01:00
Tobias Koppers
9d6b361954
flag dependencies correctly when multiple entries are used
2019-01-20 19:44:13 +01:00
Tobias Koppers
8300425e1c
new version of emitting assets
...
It allows to free memory of Sources with the trade-off of disallowing reading asset content after emitting
2019-01-18 21:56:53 +01:00
Tobias Koppers
0bc0f05fc7
use updated webpack-sources, use new buffer method
2019-01-18 20:46:31 +01:00
Tobias Koppers
9181283029
fix newlines
2019-01-15 17:10:54 +01:00
Tobias Koppers
78cee8b319
simplify regexp
...
[^()]+\(?.*\)? is equal to .*
2019-01-15 15:14:03 +01:00
Tobias Koppers
4d87fffad3
include loc in snapshots
2019-01-15 15:09:52 +01:00
Steven Hargrove
e6864e4ac6
support windows for snapshot
2019-01-12 22:35:19 -05:00
Steven Hargrove
82b7428a4c
rewrite errors tests, cleanup, update snapshots
2019-01-12 22:35:12 -05:00
mc-zone
4f3e0d27b5
Merge branch 'next' into feat_afterDone_hook
2019-01-13 11:24:32 +08:00
mc-zone
180a7c0d1a
Merge branch 'next' into feat_afterDone_hook
2019-01-13 11:16:10 +08:00
Steven Hargrove
e6afd236c4
added tests for swallowed loader errors, fixed another swallowed error
2019-01-11 19:14:49 -05:00
Sean Larkin
8038555903
Merge pull request #8611 from smikula/better-reasons
...
Report originally resolved module as part of reasons
2019-01-11 12:23:13 -08:00
Scott Mikula
c1e330b800
Add a secondary sort for reasons by resolvedOriginModule
2019-01-11 10:07:37 -08:00
Scott Mikula
d649429a8f
Report resolved module earlier in reason line
2019-01-11 09:44:51 -08:00
Scott Mikula
2b6cf7e16e
Revert "Simplify module-reasons test case"
...
This reverts commit db710c957f .
2019-01-11 09:41:06 -08:00
Scott Mikula
db710c957f
Simplify module-reasons test case
2019-01-10 14:02:47 -08:00
Scott Mikula
943165119e
Update snapshot again
2019-01-10 12:13:51 -08:00
Tobias Koppers
4f2a214fc0
Merge pull request #8612 from webpack/bugfix/max-stack-compilation
...
add process.nextTick to avoid long recursion in callbacks
2019-01-10 21:03:36 +01:00
Scott Mikula
07f8140201
Only include resolvedModule in toString output if different, plus tests
2019-01-10 11:47:49 -08:00
Tobias Koppers
0f7355e170
Merge tag 'v4.28.4' into next
...
4.28.4
2019-01-10 16:51:17 +01:00
Tobias Koppers
61a096049d
add process.nextTick to avoid long recursion in callbacks
2019-01-10 16:41:30 +01:00
Tobias Koppers
4492c30ac4
Update watching system to report more timing info to webpack
...
Add snapshotting feature to FileSystemInfo for better performance
2019-01-09 14:42:54 +01:00
Tobias Koppers
ef9e25d8ea
report dependencies from resolver to the compilation
...
refactor NormalModuleFactory
2019-01-08 15:14:25 +01:00
Tobias Koppers
f196886f31
Enable node.global by default
2019-01-08 14:37:13 +01:00
Kilian Cirera Sant
ef67132589
Upgrade acorn to v6
...
package: update `acorn` v5.6.2...v6.0.0
package: update `acorn-dynamic-import` v3.0.0...v4.0.0
2019-01-07 13:06:37 -08:00
Daniel Ruf
af01643288
Increase Jest timeout for profiling plugin test
2019-01-02 10:34:41 +01:00
Tobias Koppers
b2c5f8dc90
remove size difference for wasm modules because of the additional dependency
2018-12-31 12:36:29 +01:00
Tobias Koppers
b5db48291b
add caching to FlagDependencyExportsPlugin
2018-12-31 12:29:01 +01:00
Tobias Koppers
faefdc0bed
expose exports in LibManifestPlugin
...
use StaticExportsDependency in DelegatedModule
2018-12-31 12:28:55 +01:00
Florent Cailhol
41948853a0
Use StaticExportsDependency to define WASM exports
2018-12-31 12:28:53 +01:00
Tobias Koppers
50d63602b5
fix stats assetsByChunkName
...
It's now always an array
2018-12-31 09:15:01 +01:00
Tobias Koppers
ccc7db79ba
Merge pull request #8401 from shahkashani/fix-for-issue-8398
...
Fix for #8398 - call failed-hook on compilation errors
2018-12-30 18:28:48 +01:00
Tobias Koppers
6dd1c9dbb7
Merge pull request #8575 from webpack/feature/split-chunks-single-file
...
add ability to load dependent chunks for non-web targets
2018-12-29 18:10:38 +01:00
Tobias Koppers
b241549d31
Merge tag 'v4.28.3' into next
...
4.28.3
2018-12-29 12:59:56 +01:00
Tobias Koppers
f446bf8a9b
add ability to load dependent chunks for non-web targets
...
This allows to use `splitChunks` for initial chunks in i. e. node and webworker targets
2018-12-29 12:48:59 +01:00
Steven Hargrove
6240cf61f4
added config test case for optimization.minimizer
2018-12-29 06:32:47 -05:00
Navi Marella
01281184d9
Modified Tests as suggested.
2018-12-28 16:21:24 -07:00
Tobias Koppers
e4d8eaf225
Merge pull request #8572 from webpack/update_terser
...
Update terser to make it compatible with v5
2018-12-28 19:13:24 +01:00
Tobias Koppers
5306c92916
Merge pull request #8571 from webpack/fix/hash_deprecation_notices
...
Use fullhash instead of hash in tests
2018-12-28 16:01:17 +01:00
Florent Cailhol
bc3c3d9dd5
Update terser to make it compatible with v5
2018-12-28 14:16:46 +01:00
Florent Cailhol
e9cb04efca
Use fullhash instead of hash
2018-12-28 14:09:35 +01:00
Tobias Koppers
3079886e47
filter entrypoints from namedChunkGroups in Stats only for printing
2018-12-28 12:57:38 +01:00
Tobias Koppers
2601febc6c
Merge pull request #8561 from jahredhope/multi-stats-no-options
...
Allow MultiStats to be called with no options
2018-12-28 12:32:01 +01:00
Florent Cailhol
e85d9d8447
Add namedChunkGroups tests
2018-12-28 09:56:11 +01:00
Navi Marella
eb960cc616
Fixed Profiling Output path for creating a folder, if it doesn't exists.
2018-12-27 16:02:43 -07:00
Jahred Hope
3a4f01b9de
Allow MultiStats to be called with no options
2018-12-27 21:21:26 +11:00
mc-zone
9d2fb9bdf2
Merge branch 'next' into feat_afterDone_hook
2018-12-27 13:35:24 +08:00
mc-zone
9877a677d8
refactor: remove closed check for afterDone calling in Watch; refactor tests
2018-12-26 21:56:19 +08:00
Tobias Koppers
ccad043bc2
Merge pull request #8547 from Connormiha/optimize-absolute-to-path
...
Optimize absoluteToRequest
2018-12-26 11:32:41 +01:00
Tobias Koppers
2143bd6519
Reduce number of allocations
...
Hoist RegExp
Avoid creating array object
Avoid join
Fast case for request without query
improve test cases
fixes a bug where query was omitted with multiple query separators
2018-12-26 11:13:44 +01:00
Tobias Koppers
a49c417988
Merge pull request #8554 from webpack/bugfix/serialize-null-prototype
...
allow serializing of objects with null prototype
2018-12-25 22:53:45 +01:00
Tobias Koppers
44663f8c67
allow serializing of objects with null prototype
2018-12-25 22:08:35 +01:00
Tobias Koppers
b3319a486d
fix incorrect default for some options with all: false
2018-12-25 21:39:25 +01:00
Mihail Bodrov
09890ce3b4
Update test for windows path
2018-12-25 13:34:48 +03:00
mc-zone
351f197685
feat: add tests for compiler.afterDone
2018-12-25 15:08:45 +08:00
Mihail Bodrov
972d9bf8cb
Optimize absoluteToRequest
2018-12-23 15:30:28 +03:00
Tobias Koppers
026b7079a2
Merge pull request #8543 from webpack/bugfix/preset-in-schema
...
improvements to stats
2018-12-23 10:45:32 +01:00
Tobias Koppers
12436bf53e
add chunkRelations to stats config
2018-12-23 10:04:23 +01:00
Tobias Koppers
7ffcc98487
Merge tag 'v4.28.2' into next
...
4.28.2
2018-12-23 09:58:52 +01:00
Tobias Koppers
bc368c7611
fixes #8538
2018-12-22 13:39:26 +01:00
Tobias Koppers
2ae5268bfa
Merge pull request #8525 from webpack/cleanup/remove-compare
...
cleanup work on next
2018-12-20 20:23:52 +01:00
Tobias Koppers
14ec0aa4cf
remove the static memory cache, leaving only the per compilation memory cache
...
Otherwise this leaks memory
2018-12-20 17:32:52 +01:00
Tobias Koppers
6c22ca2b96
fix issue when contextRegExp is undefined
...
fixes #8522
2018-12-20 16:52:44 +01:00
Tobias Koppers
1374757006
remove ModuleReason
...
remove HotUpdateChunkTemplate
move compareLocations into comparators
re-enable NodeSourcePlugin for `.mjs`
2018-12-20 16:38:26 +01:00
Tobias Koppers
089fe56884
fix merge issue
2018-12-20 09:22:51 +01:00
Tobias Koppers
1b402bcae1
Merge tag 'v4.28.0' into next
...
4.28.0
2018-12-19 14:05:17 +01:00
Tobias Koppers
573d2da1d9
Merge pull request #8511 from isiahmeadows/fix-erroneous-injection
...
Remove a broken hook
2018-12-19 09:19:50 +01:00
Isiah Meadows
6b54a46842
Fix failing test.
2018-12-18 16:55:56 -05:00
Isiah Meadows
14ef010886
Fix nits, block `require` to prevent false positive
2018-12-18 16:48:56 -05:00
Tobias Koppers
123b0a64e7
add plugin system for Stats presets, defaults, creation and printing
2018-12-18 22:07:14 +01:00
Ilya Kantor
a9d465f183
IgnorePlugin: add context argument to checkResource, deprecate checkContext
2018-12-18 11:27:06 +03:00
Tobias Koppers
4e653e73c6
Merge pull request #8510 from guybedford/next-tlr
...
Allow top-level return in script parsing, PR for #8509
2018-12-18 09:25:25 +01:00
Isiah Meadows
31de55386a
Add test
2018-12-18 02:44:15 -05:00
guybedford
00c95f36b0
allow top-level return
2018-12-16 21:27:04 +02:00
Tobias Koppers
6c00d3676e
Merge pull request #8484 from webpack/feature/split_chunks_max_size
...
Add maxAsyncSize and maxInitialSize for SplitChunks
2018-12-16 18:44:15 +01:00
Florent Cailhol
46140fbf72
Remove unneeded unit test
2018-12-12 10:51:19 +01:00
Florent Cailhol
b916ff1491
Improve SplitChunksPlugin typings
2018-12-12 10:49:16 +01:00
Florent Cailhol
172ae10cb9
Add a test case for maxAsyncSize
2018-12-11 21:16:39 +01:00
Florent Cailhol
cb22caa6d4
Rename commons-chunk-plugin test folder
2018-12-11 21:06:58 +01:00
Florent Cailhol
9caaa664f7
Refactor webpack main
2018-12-09 15:32:03 +01:00
Tobias Koppers
0d2faa0d0a
Merge pull request #8460 from webpack/refactor/node_polyfills
...
Do not polyfill node bindings by default
2018-12-08 12:23:24 +01:00
Tobias Koppers
185aa2b973
Fix unittest
2018-12-07 20:16:39 +01:00
Tobias Koppers
5563ee9e58
use makePathsRelative instead of contextify
...
unify contextify and makePathsRelative
separate NormalModuleFactory ignored, ContextModule and ConcatenatedModule identifier with "|"
2018-12-07 18:12:04 +01:00
Tobias Koppers
d544027af7
fix Compiler test
2018-12-07 16:37:22 +01:00
Tobias Koppers
a83e0daca6
replace RequestShortener with contextify in id generation
2018-12-07 16:07:40 +01:00
Tobias Koppers
a21bc44345
ignored module no longer contain context path
2018-12-07 15:46:32 +01:00
Tobias Koppers
350817ea4f
make identifier of ConcatenatedModule context-independent
2018-12-07 15:36:49 +01:00
Tobias Koppers
f60c8d8f0e
bugfixes and optimizations
...
optimize name map for name equals id
bugfixes in named ids assigning
assign name before automatic ids
2018-12-07 15:14:14 +01:00
Tobias Koppers
fe80339d71
use - instead of ~ as default for better compat
...
fix automaticNameDelimiter in splitChunks
fix test cases
2018-12-07 14:46:49 +01:00
Tobias Koppers
8281667668
improve ids for Long Term Caching
...
add deterministic chunk ids and make it default
StatsTestCases no longer need to explicitly use natural ids as the defaults are deterministic now too
add concept of id name hints for chunks
add `idHint` option to splitChunks to provide a hint
deduplicated code from different id plugins to IdHelpers
improve behavior of named ids in case of conflicts
remove `name: true` and `automaticNamePrefix` from splitChunks it's not as good as expected
improve named chunk ids to show root modules
2018-12-07 12:26:35 +01:00
Florent Cailhol
a68426e925
Add error message
2018-12-07 08:58:55 +01:00
Florent Cailhol
002128c288
Do not polyfill node bindings by default
2018-12-07 08:58:26 +01:00
Florent Cailhol
a2ccf34d98
Fix ModuleDecoratorDependency serialization
2018-12-06 22:16:56 +01:00
Florent Cailhol
c148033fe9
Remove module.webpackPolyfill guard
2018-12-06 22:16:55 +01:00
Florent Cailhol
74e6346363
Replace module buildins by runtime modules
2018-12-06 22:16:31 +01:00
Tobias Koppers
2b518a6c67
Wrap chunk ids in table in correct syntax
2018-12-06 21:00:43 +01:00