Commit Graph

2652 Commits

Author SHA1 Message Date
Tobias Koppers 1c44f95b8c fix bug where module is referenced which is not in the graph 2018-10-24 15:45:10 +02:00
Tobias Koppers 98d077d0b6 order values with different types correctly 2018-10-24 15:45:08 +02:00
Daniel Ehrenberg b22f027f79 Update tests for new WebAssembly.Global API
The current version of the WebAssembly JS API specification [1]
exports globals as WebAssembly.Global, rather than as Numbers. This
version of the API is shipped in Chrome 69 and Firefox 62, and is
also seen in Node 11 nightly builds.

This patch updates webpack's tests to permit either the new API or
the old one, for exports of WebAssembly Globals. One of the affected
tests passes on Node 11 (where it previously failed), and the other
fails for unrelated reasons [2].

Fixes #8145

[1] https://webassembly.github.io/spec/js-api/index.html
[2] https://github.com/webpack/webpack/pull/7467/files#r223454525
2018-10-24 15:45:04 +02:00
Tobias Koppers 523ddd7220 avoid memory leak 2018-10-24 15:30:33 +02:00
Tobias Koppers af4cb35784
Merge pull request #8175 from cacheflow/add-tracking-of-removed-files
feat(Compiler): Add file removal tracking in watch-run
2018-10-24 10:44:40 +02:00
Tobias Koppers 7654a1cefe fix behavior and add test case 2018-10-24 10:02:12 +02:00
Tobias Koppers a262b83580 remove globalPath and useChunkHash feature
It's no longer needed, because we hash the runtime how
2018-10-24 09:39:51 +02:00
renatoagds 5e112dbfbe update watchMode tests 2018-10-23 15:12:36 -03:00
Tobias Koppers 071062422e Merge tag 'v4.22.0' into next
4.22.0
2018-10-23 16:41:31 +02:00
Tobias Koppers 0ae4a58918 make AggressiveSplittingPlugin stable 2018-10-23 11:32:41 +02:00
Tobias Koppers 94eb554dc0 fix byId sorting 2018-10-23 11:32:39 +02:00
Tobias Koppers 60b06472f5 make LimitChunkCountPlugin stable
fix integrating non-runtime with runtime chunk
move entry modules when integrating two chunks
2018-10-23 11:32:36 +02:00
Tobias Koppers 1e29c44df3 move natural chunk comparator to comparators
add name order to natural chunk order
2018-10-23 11:32:34 +02:00
Tobias Koppers 83866b0dac use stable sorting for sorting dependencies 2018-10-23 11:32:32 +02:00
Tobias Koppers ad8f8910e2 make origins sorting deterministic
remove duplicate origins
2018-10-23 11:32:30 +02:00
Tobias Koppers 8955561952 Run additional tests to ensure compilation stablility 2018-10-23 11:32:28 +02:00
renatoagds 22553427d4 fix prettier lint 2018-10-22 20:12:42 -03:00
renatoagds b6dda49add check if watch mode is trigger when use watch 2018-10-22 20:01:07 -03:00
Tobias Koppers 5e4a6a4f5d fix byId sorting 2018-10-19 13:20:48 +02:00
Tobias Koppers c04747f17d make LimitChunkCountPlugin stable 2018-10-19 12:57:27 +02:00
Tobias Koppers a7db689306 make chunk compare stable 2018-10-19 12:57:26 +02:00
Tobias Koppers 3217d02aab make stats assets order stable by providing a default order 2018-10-19 12:57:25 +02:00
Tobias Koppers 98b482efd7 make dependency order stable 2018-10-19 12:57:24 +02:00
Tobias Koppers 8a8111b637 make sorting in Stats stable 2018-10-19 12:57:23 +02:00
Tobias Koppers 511d15bbc4 make origins sorting deterministic
remove duplicate origins
2018-10-19 12:57:22 +02:00
Tobias Koppers c8252e6e4d Run additional tests to ensure compilation stablility 2018-10-19 12:57:19 +02:00
Lex Alexander 2cdf04e14b feat(Compiler): Add file removal tracking in watch-run
-Closes 5072.
2018-10-18 15:58:58 -07:00
Tobias Koppers 1d9f8a332f
Merge pull request #8233 from ljqx/const-plugin-logical-operator
[ConstPlugin] add support for logical expressions (&& and ||)
2018-10-18 09:57:23 +02:00
Zhibin Liu dcd38348e5 fix comments 2018-10-18 14:21:12 +08:00
Tobias Koppers 6b0da68ed9 run all test cases with caching 2018-10-17 22:15:46 +02:00
Tobias Koppers 5b7987abf4 remove console.log 2018-10-17 21:25:46 +02:00
Tobias Koppers 1500a9da5c refactor LocalModule to remove module reference to allow serializing 2018-10-17 21:25:46 +02:00
Tobias Koppers 0d980a75ba improve example build and test
improve cache print of references
2018-10-17 21:25:40 +02:00
Tobias Koppers a852828279 add persistent caching prototype 2018-10-17 21:25:39 +02:00
Tobias Koppers 518104b3fb Merge tag 'v4.21.0' into next
4.21.0
2018-10-17 20:38:00 +02:00
Zhibin Liu 257e6ec8d6 [ConstPlugin] add support for logical expressions (&& and ||) 2018-10-17 23:12:07 +08:00
Tobias Koppers 15b6f8bb7f make afterEach async 2018-10-17 16:17:23 +02:00
Tobias Koppers 7bc5c98171 Merge branch 'master' into marcusdarmstrong-external-module-fix 2018-10-17 16:13:55 +02:00
Tobias Koppers 83538ebc54
Merge pull request #8178 from webpack/feature/moduleIds
Remove moduleIds=total-size and deprecate moduleIds=hashed
2018-10-17 10:04:11 +02:00
Florent Cailhol 7db1d0ce4b Remove IgnorePlugin compat layer 2018-10-12 18:10:12 +02:00
Florent Cailhol 7669104f71 Deprecate moduleIds=hashed in favor of moduleIds=deterministic
Also remove moduleIds=total-size
2018-10-12 17:14:16 +02:00
Naveen Marella 78e64b6cc5 Added unit test to generate formatted manifest json 2018-10-03 13:16:07 -06:00
Tobias Koppers 9fe42e7c40
Merge pull request #8118 from webpack/bugfix/issue-8110
fixes #8110
2018-10-02 16:43:33 +02:00
Tobias Koppers 9da00cdb42 fixes #8110 2018-10-02 14:52:52 +02:00
Michael Ciniawsky 7f746a955a chore(JavascriptParser): update `acorn` dependencies
package: update `acorn` v5.6.2...v6.0.0
package: update `acorn-dynamic-import` v3.0.0...v4.0.0
2018-10-02 14:20:20 +02:00
Sergey Vershinin 8a939328f9 fix output for 'output.library: string[]' configuration 2018-10-01 22:31:26 +03:00
Tobias Koppers 7ed8b97091 add testcase for context dependencies in module 2018-09-27 21:36:41 +02:00
Evyatar 5edea62e35 fix_contains_typo 2018-09-27 19:02:34 +03:00
Tobias Koppers 7340fbb547 refactor Cache
add a new hookable Cache class
removed CachePlugin
add MemoryCachePlugin
refactor timestamps
create FileSystemInfo class
2018-09-27 13:20:19 +02:00
Tobias Koppers bf0d0d8f91
Merge pull request #8093 from eemeli/amd-require
Add "amd-require" libraryTarget, resulting in a require() wrapper
2018-09-27 12:40:05 +02:00
Tobias Koppers 4eab41bd5f refactor Module.needBuild to be async 2018-09-27 11:20:54 +02:00
Eemeli Aro d250ba1776 Fix the "should name define" test in configCases/target/amd-unnamed 2018-09-26 21:52:52 +03:00
Eemeli Aro b624d167a5 Add "amd-require" libraryTarget, resulting in a require() wrapper 2018-09-26 21:46:16 +03:00
Tobias Koppers 4f1905aa5a Merge tag 'v4.20.2' into next
4.20.2
2018-09-25 23:13:58 +02:00
Tobias Koppers aab3afbef8 fixes #8085 2018-09-25 21:52:03 +02:00
Tobias Koppers dece2e69e3 Merge tag 'v4.20.1' into next
4.20.1
2018-09-25 16:21:39 +02:00
Tobias Koppers 17044bf9c6 Merge tag 'v4.20.0' into next
4.20.0
2018-09-25 16:20:42 +02:00
Tobias Koppers d836bcb027 fixes #8081 2018-09-25 14:45:30 +02:00
Chuck Dumont f8877e0819 Uncaught exception from renderers 2018-09-21 14:42:25 -04:00
Tobias Koppers 39ef8f67e4 fix Validation test 2018-09-21 12:25:30 +02:00
Tobias Koppers 19ff6f8171 fix issues with absolutePath, allOf and anyOf
make DllReferencePlugin schema more expressive
typing fixes
2018-09-21 12:25:25 +02:00
Tobias Koppers 72c63ba91c fixes for RegExp in schema 2018-09-21 12:25:09 +02:00
Tobias Koppers c76f7ec2f4 add support for title in schema 2018-09-21 12:25:06 +02:00
Tobias Koppers 53c2f82de7 improve schema to be able to use it 2018-09-21 12:24:58 +02:00
Tobias Koppers 62b6142609 fix Validation test 2018-09-21 11:26:16 +02:00
Tobias Koppers c7681825f8 fix issues with absolutePath, allOf and anyOf
make DllReferencePlugin schema more expressive
typing fixes
2018-09-21 11:04:36 +02:00
Tobias Koppers 8c31f2a708 fixes for RegExp in schema 2018-09-21 11:04:33 +02:00
Tobias Koppers d064fbe79f add support for title in schema 2018-09-21 11:04:24 +02:00
Tobias Koppers 6023bb7a11 fix Validation test 2018-09-21 11:04:21 +02:00
Tobias Koppers 64b27537da improve schema to be able to use it 2018-09-21 11:04:10 +02:00
Tobias Koppers 56c613a669 add moduleIds deterministic for simpler long term caching 2018-09-18 17:49:19 +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 ab284977c3
Merge pull request #8043 from RubenVerborgh/externals-object-array
Allow array as value in externals object
2018-09-18 09:42:43 +02:00
Tobias Koppers 9bda6295ca remove bad unit test 2018-09-18 09:16:26 +02:00
Tobias Koppers f0271d93c6 fix ExternalModule and test case 2018-09-18 09:10:14 +02:00
Ruben Verborgh 3aef0e5844 Allow array as value in externals object.
Fixes https://github.com/webpack/webpack/issues/8041.
2018-09-17 19:30:11 +02:00
Tobias Koppers e08f71c0ef keep/restore comments in export default
fixes #8039
2018-09-17 14:58:55 +02:00
Tobias Koppers a94d0434a9 fix for changed API in terser plugin warningsFilter 2018-09-16 11:04:43 +02:00
Tobias Koppers 5ade574510
Merge pull request #7947 from philipwalton/mjs-sourcemap-support
Add sourcemap support for .mjs output files
2018-09-15 21:45:31 +02:00
Ed Morley dd19dc09ae Rename test directories too 2018-09-15 12:30:25 +01:00
Ed Morley 79910c6ba5 Switch from uglifyjs-webpack-plugin to terser-webpack-plugin
Some history:
* `uglifyjs-webpack-plugin` < v1.0 used the minifier `uglify-js`
* however `uglify-js` does not support ES6, which resulted in a fork
  called `uglify-es` that was developed in the `uglify-js` repository,
  but under the `harmony` branch
* `uglifyjs-webpack-plugin` v1.x switched to `uglify-es` for ES6 support
* however `uglify-es` stopped being maintained:
  https://github.com/mishoo/UglifyJS2/issues/3156#issuecomment-392943058
* which led to a fork called `terser` that has incorporated all of
  the unmerged PRs and will be where all new development occurs:
  https://github.com/fabiosantoscode/terser
* `terser-webpack-plugin` was created, which is the `terser` equivalent
  of `uglifyjs-webpack-plugin`:
  https://github.com/webpack-contrib/terser-webpack-plugin
* `uglifyjs-webpack-plugin` v2.x will be switching back to `uglify-js`,
  so any project that needs to support ES6 now needs to switch to
  `terser-webpack-plugin`.

Fixes #7923.
2018-09-15 12:29:14 +01:00
Tobias Koppers 97ed999aad Merge tag 'v4.19.0' into next
4.19.0

* Separate context for renderBoostrap and hooks
* Remove ModuleTemplate from MainTemplate.bootstrap hook
2018-09-15 13:10:58 +02:00
Tobias Koppers 13b2cdd5ae hash content of bootstrap code
instead of trying to calculate it
from inputs

fixes #8027
fixes #7984
2018-09-13 23:25:26 +02:00
Tobias Koppers 37046a7315 Add windows to azure 2018-09-13 10:06:28 +02:00
Tobias Koppers 5b4cbb5ee0 add queues to Compilation
remove Semaphore and use AsyncQueue instead
deprecate Module.needRebuild, add Module.needBuild
remove Module.unbuild
add Module.invalidateBuild
2018-09-12 13:17:03 +02:00
Tobias Koppers d48a331642 Split Compilation process in multiple methods 2018-09-12 13:17:02 +02:00
Tobias Koppers 3c244d9fc9 Optimize error origin handling and module trace
Improve warnings and errors sorting
2018-09-12 13:16:59 +02:00
Tobias Koppers 6ca7ae1c48 make Compilation.modules a Set 2018-09-06 17:03:24 +02:00
Tobias Koppers 9da6003362 Make usedIds in records an array
Make emitted JSON for records stable
2018-09-06 16:05:29 +02: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
Tobias Koppers b4860ccebb refactor chunk id plugins 2018-09-05 14:28:52 +02:00
Tobias Koppers 4a7a85ca84 rename index/index2 to pre/postOrderIndex 2018-09-04 09:27:25 +02:00
Tobias Koppers 4d7b5b3b5e Refactor module id plugins to be independent 2018-09-03 20:45:44 +02:00
Tobias Koppers e979f1534e use optimization.moduleIds instead of plugins directly 2018-09-03 20:12:55 +02:00
Tobias Koppers 888ad3d684 insert concatenated module at correct position
fixes bug where ids are incorrectly assigned
2018-09-03 20:12:55 +02:00
Tobias Koppers 51a13926ad Merge tag 'v4.17.2' into next
4.17.2
2018-09-03 20:06:19 +02:00
Tobias Koppers 8c8719bd4a
Merge pull request #7954 from webpack/feature/split-chunk-type
add moduleType option to cacheGroup to select by module type
2018-09-03 19:13:26 +02:00
Tobias Koppers 41e59235df emit error when splitChunks.name points to existing chunk name 2018-09-03 10:37:43 +02:00
Tobias Koppers b87e93221b add type option to cacheGroup to select by module type 2018-09-03 10:36:24 +02:00
Tobias Koppers cd9525ad4c Upgrade some dependencies 2018-08-29 20:06:15 +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
Tobias Koppers 1b886ee342 improve prettier and lint config and performance 2018-08-24 16:57:16 +02:00
Tobias Koppers 670502fc81 Move AsyncDependenciesBlock.chunkGroup into ChunkGraph 2018-08-22 20:17:49 +02:00
Tobias Koppers e0f84652c0 remove Module.prefetched
remove prefeteched from Stats
make Compilation.addModuleChain public and remove onModule argument
remove Compilation.prefetch
2018-08-22 15:19:05 +02:00
Tobias Koppers b20556c1ff move profile to ModuleGraph 2018-08-22 14:54:28 +02:00
Tobias Koppers 26022c86a0 move Module.depth into ModuleGraph
nested modules no longer have depth and stay unsorted in stats
2018-08-22 12:45:11 +02:00
Tobias Koppers 4f65deb7dd Merge tag 'v4.17.1' into next
4.17.1
2018-08-22 12:43:12 +02:00
Tobias Koppers a92c23ef76 fixes #7930 2018-08-22 11:11:37 +02:00
Tobias Koppers 42167db4af move Module.index and index2 into ModuleGraph 2018-08-21 16:16:51 +02:00
Tobias Koppers 4dfe88edb0 add moduleGraph argument to comparators 2018-08-21 11:08:07 +02:00
Tobias Koppers c21d59f783 Merge tag 'v4.17.0' into next
4.17.0
2018-08-21 11:02:16 +02:00
Tobias Koppers 45e798af68
Merge pull request #7827 from AoDev/feat/ignore-plugin-check-fn
feat(IgnorePlugin): allow user to provide his own check functions
2018-08-21 10:24:32 +02:00
Tobias Koppers c2e03951f4
Merge pull request #7922 from webpack/bugfix/concat-globals
fix exporting globals in scope-hoisted modules
2018-08-20 18:09:37 +02:00
Tobias Koppers 9315ce29aa fix exporting globals in scope-hoisted modules
fixes #7905
2018-08-20 10:54:05 +02:00
Tobias Koppers c253b4b130 chunk ids contribute to contenthash for javascript
fixes #7915
2018-08-20 10:04:33 +02:00
Florent Cailhol 7b02084bc5 Replace Basic and Advanced optimzation hooks by stages 2018-08-16 14:10:51 +02:00
Tobias Koppers 6d5310fbd6 allow multiple entryModules per chunk
allow to specify ChunkGroup to depend on
move entry modules into ChunkGraph
2018-08-15 11:51:16 +02:00
Kevin Purnelle 6235e99248 feat(IgnorePlugin): allow user to provide his own check functions
The user can provide checkResource and checkContext functions that
will be called with current resource or context respectively.

These functions should return a boolean to decide whether the module
should be ignored or not.

Now the constructor can accept a single option object.

```
const resourceRegExp = /a_regex/
const contextRegExp = /another_regex/

// before:
new webpack.IgnorePlugin(resourceRegExp, contextRegExp)

// alternative:
new webpack.ignorePlugin({resourceRegExp, contextRegExp})
```

Note that from Webpack 5, only passing an object will be allowed,
so we could encourage people to migrate already.
2018-08-14 17:20:10 +02:00
Tobias Koppers 3cf01999b5 add ChunkGraph
move chunk modules and module chunks into the ChunkGraph
remove outdated unit tests
2018-08-14 15:32:13 +02:00
Tobias Koppers 72e8e5f552 fix nested modules 2018-08-09 20:32:31 +02:00
Florent Cailhol a945054079 Hide modules that are not emitted in stats 2018-08-09 20:22:09 +02:00
Tobias Koppers ac09ae1418 add more test cases
improve harmony-duplicate-export test cases to allow scope-hoisting
2018-08-09 15:45:49 +02:00
Tobias Koppers 3347700225 improve optimization bailout message usefulness 2018-08-09 15:45:30 +02:00
tsangint 1d95e524b3 Update Jest URL 2018-08-09 01:27:40 +08:00
Tobias Koppers 227952c914 put reexports into the correct init section when possible
fixes #7857
2018-08-08 14:12:54 +02:00
Tobias Koppers d6cf42e4c2 merge used with usedExports
usedExports = false now means module is not used
2018-08-06 21:05:11 +02:00
Tobias Koppers c4e0a9f72e Move Module.used and Module.usedExports into ModuleGraph 2018-08-06 21:04:01 +02:00
Tobias Koppers 565b569b68 Merge tag 'v4.16.5' into next
4.16.5
2018-08-06 09:20:57 +02:00
Tobias Koppers 17ebfb9784 fix #7829
webpack-hot-client seem to call `addEntry` multiple
which causes two Entrypoints with the same name
This lead the bad side effects
i. e. optimization.runtimeChunk no longer works correctly

Now adding an entry with the same name replaces the existing entry
2018-08-03 11:09:26 +02:00
Tobias Koppers 5539f57ba8
Merge pull request #7839 from skingston91/master
fixes 7778: query string in dynamic import()
2018-08-03 09:40:21 +02:00
Tobias Koppers 1138d32bfb
Merge pull request #7840 from webpack/test/watch-cases
update watch test cases for new jest integration
2018-08-03 09:21:58 +02:00
Tobias Koppers 61633aa91c fix #7778
remove prepend in favor of replaces
improve code style in ContextDependencyHelpers
2018-08-03 09:20:23 +02:00
Tobias Koppers 795cc352c5 Improve error reporting while recompilation in HotCases 2018-08-03 08:10:53 +02:00
Tobias Koppers 3e30c70d39
Merge pull request #7830 from ryota-murakami/patch-1
Update Jest Homepage URL
2018-08-02 20:25:00 +02:00
Tobias Koppers 975f33df68 remove invalid unittests 2018-08-02 17:54:45 +02:00
Tobias Koppers 3ef5475183 filter connections while replacing module 2018-08-02 17:54:44 +02:00
Tobias Koppers 381e2db200 replace Module.reasons and Dependency.module with ModuleGraph 2018-08-02 17:54:44 +02:00
skingston91 73dff6cbd5
Update index.js
Remove name from test
2018-08-02 16:04:47 +01:00
Tobias Koppers f5be9a62d4 update watch test cases for new jest integration 2018-08-02 16:58:41 +02:00
Steven ea5c68bc37 Adds test cases for issue 7778 2018-08-02 15:44:19 +01:00
Tobias Koppers c9eb4c8e01 Merge tag 'v4.16.4' into next
4.16.4
2018-08-02 16:00:39 +02:00
Tobias Koppers fb2236f734
Merge pull request #7818 from webpack/test/browsertest
Remove outdated/unused test suites
2018-08-02 15:13:17 +02:00
Tobias Koppers a2bddc9195
Merge pull request #7821 from webpack/refactor/use_runtime
Use RuntimeTemplate to generate error code
2018-08-02 15:12:28 +02:00
Tobias Koppers 01cfe5b67a improve way of adding exported tests to test tree 2018-08-02 14:45:50 +02:00
ryota-murakami cdf042c251
Update Jest homepage URL 2018-08-01 15:47:00 +09:00
Florent Cailhol 367b02a0f0 Use RuntimeTemplate to generate error code 2018-07-31 09:01:06 +02:00
Tobias Koppers b2dca34043 some properties of dependencies should contribute to hash 2018-07-30 23:07:25 +02:00
Tobias Koppers a02862e10f remove injected-vars from test case, because it no longer bails-out 2018-07-30 22:39:43 +02:00
Tobias Koppers 07380569bb update snapshots 2018-07-30 22:38:53 +02:00
Florent Cailhol 43c905553e Update snapshots 2018-07-30 22:37:23 +02:00
Florent Cailhol 51a6dcba58 Remove outdated/unused test suite 2018-07-30 19:24:12 +02:00
Tobias Koppers 138687730a only assign module ids for modules in chunks
handle weak dependencies without id correctly
2018-07-27 13:16:54 +02:00
Tobias Koppers f63c9b8e43 Use natural ids in most stats cases to make them more stable 2018-07-27 12:28:02 +02:00
Tobias Koppers 6d9e4f315b Use natural module/chunk ids in mode none 2018-07-27 12:27:57 +02:00
Tobias Koppers 3771daba6a Merge tag 'v4.16.3' into next
4.16.3
2018-07-27 12:21:04 +02:00
Tobias Koppers aac43687fd fix case where empty chunkgroups cause nested chunkgroups to vanish 2018-07-27 10:56:01 +02:00
Florent Cailhol 41dd5a9ed1 Convert LocalModulesHelpers 2018-07-26 22:37:36 +02:00
Florent Cailhol dad4a4c539 Convert SizeFormatHelpers 2018-07-26 22:37:21 +02:00
Tobias Koppers 2fa351a178 make ExportMode.module a callback function
fix comment
2018-07-26 15:53:11 +02:00
Florent Cailhol 60ef6a6a30 Make DependencyReference dynamic 2018-07-26 15:31:04 +02:00
Tobias Koppers bc10939096 add types for Module and subclasses
better way to handle "optional" methods
2018-07-25 12:12:17 +02:00
Tobias Koppers 7036ec488b remove the need to rewrite chunk in reasons 2018-07-23 12:20:47 +02:00
Tobias Koppers 66d3f319a6 Merge tag 'v4.16.2' into next
4.16.2
2018-07-23 12:19:16 +02:00
Tobias Koppers b8c47a7688
Merge pull request #7628 from reduckted/dllreferenceplugin-graceful-json-parse-failure
Catch errors while parsing DLL manifest
2018-07-23 10:37:47 +02:00
Tobias Koppers 699fe21158
Merge pull request #7750 from ak-14/node-dependencies
Handle module.require, require.main.require, and module.parent.require
2018-07-23 10:34:53 +02:00
Abdulrahman Alkhelaifi 80c3e433c4 Handle module.require, require.main.require, and module.parent.require
- Resolve module.require dependencies

- Add require.main.require and module.parent.require as unsupported
2018-07-19 13:41:58 -07:00
Tobias Koppers e80d49445c fix sorting of reasons 2018-07-19 19:44:44 +02:00
Tobias Koppers 05f05e1759 Merge remote-tracking branch 'origin/refactor/chunk_module_ids' into remove/deprecated-optimization-ids 2018-07-16 10:38:43 +02:00
Tobias Koppers 5e72a6505a remove deprecated optimization options
and update test cases
2018-07-16 10:32:02 +02:00
Tobias Koppers 86ff1a4642 Merge tag 'v4.16.1' into next
4.16.1
2018-07-16 10:30:31 +02:00
Tobias Koppers 3f13ed765f
Merge pull request #7706 from webpack/remove/format-location
update formatLocation to only accept location objects
2018-07-15 20:27:11 +02:00
Tobias Koppers 6f6cdf6eeb
add negation to test name 2018-07-15 10:09:21 +02:00
Tobias Koppers 9f0eeed919 fix unit test, add handling for line only location 2018-07-15 09:57:36 +02:00
Florent Cailhol 1f0e77c9de Change how non-objects are handled 2018-07-14 22:36:02 +02:00
Florent Cailhol 445c2c889c No longer accept strings in compareLocations 2018-07-14 22:35:43 +02:00
Florent Cailhol 3fdf0029b7 Fix Compiler tests 2018-07-14 22:17:55 +02:00
Florent Cailhol 0448c1c338 Use chunkIds and moduleIds 2018-07-14 21:59:42 +02:00
Tobias Koppers b0518552e5
Merge pull request #7707 from webpack/remove/deprecated
remove deprecated stuff
2018-07-13 21:36:19 +02:00
Tobias Koppers 753dcce188 fix order of occurrence order plugin
remove enforced additional occurrence order plugin from test cases
make test cases more independent of module/chunk order/ids
2018-07-13 16:15:01 +02:00
Tobias Koppers ff7d0f56e7
Merge pull request #7704 from webpack/refactor/dependency-templates
make DependencyTemplates a new class
2018-07-12 19:11:58 +02:00
Tobias Koppers ef40df2d1f fix usage of DependencyTemplates and types 2018-07-12 17:12:00 +02:00
Tobias Koppers 568601c7fa remove `exec` from loader context
`require-from-string` can be used instead
2018-07-11 17:48:47 +02:00
Tobias Koppers 95ff4e96f7 remove loader options plugin from test cases 2018-07-11 13:08:19 +02:00
Tobias Koppers 2b14ddc984 Merge tag 'v4.16.0' into next
4.16.0
2018-07-11 11:13:47 +02:00
Tobias Koppers 3366421f17
Merge pull request #7663 from webpack/feature/automatic-name-prefix
automaticNamePrefix and name merging bugfix
2018-07-10 20:45:52 +02:00
Tobias Koppers 8891bd5f04
Merge pull request #7696 from webpack/bugfix/max-size-reasons
copy chunk reason to maxSize parts
2018-07-10 20:43:19 +02:00
Tobias Koppers 365beb1a6d
Merge pull request #7699 from webpack/ci/upgrade-jest
upgrade jest
2018-07-10 19:29:43 +02:00
Tobias Koppers b32a4f5f64
Merge branch 'master' into bugfix/max-size-reasons 2018-07-10 16:13:47 +02:00
Tobias Koppers a4825654eb upgrade jest 2018-07-10 16:02:02 +02:00
Tobias Koppers 692faf2e45 sort ids in Stats numerical 2018-07-10 11:32:45 +02:00
Tobias Koppers 9362a65287 copy chunk reason to maxSize parts 2018-07-10 10:28:06 +02:00
Tobias Koppers 9f0056b10d
Merge pull request #7686 from webpack/feature/module-chunk-ids-option
add new options moduleIds and chunkIds
2018-07-10 10:19:03 +02:00
Raanan Weber 47aa3d0ffe adding tests 2018-07-09 17:32:57 +02:00
Tobias Koppers 3fc4eb752f add new options moduleIds and chunkIds
deprecate namedModules, hashedModuleIds, namedChunks
add a lot of TODOs for webpack 5
split OccurenceOrderPlugin into separate plugins for modules and chunks
add NaturalChunkOrderPlugin and enable it in development
2018-07-09 15:06:19 +02:00
Tobias Koppers 378f31b4f9 increase timeout for ConfigTestCases 2018-07-08 21:37:12 +02:00
Florent Cailhol 854bdafce4 Remove webpack.web.js and its deps 2018-07-06 11:48:19 +02:00
Tobias Koppers 6623a2e292 Merge tag 'v4.15.1' into next
4.15.1
2018-07-06 09:33:43 +02:00
Tobias Koppers 93a28126a6 fixes order for reexported dependencies
fixes #7665
2018-07-05 20:40:19 +02:00
Tobias Koppers 0c2ea9d5d0 add test case 2018-07-05 14:39:21 +02:00
Tobias Koppers 8e8f1856e9 fixes usage of automaticNameDelimiter in cache groups 2018-07-05 13:19:55 +02:00
Tobias Koppers 0e80d223f2 fix merge problem 2018-07-05 10:42:45 +02:00
Tobias Koppers 0a06f19fd8 Merge tag 'v4.15.0' into next
4.15.0
2018-07-04 22:19:50 +02:00
Tobias Koppers bd2e3448ec Merge tag 'v4.14.0' into next
4.14.0
2018-07-04 22:10:53 +02:00
Tobias Koppers f0ae54d478 Merge tag 'v4.13.0' into next
4.13.0
2018-07-04 22:08:31 +02:00
Tobias Koppers 994675c4fe Merge tag 'v4.12.2' into next
4.12.2
2018-07-04 21:55:42 +02:00
Tobias Koppers fb2c24bf76 add `splitChunks.maxSize` option
add `splitChunks.fallbackCacheGroup`
add `splitChunks.hidePathInfo`
move `contextify` into utils
add some types
2018-07-04 10:45:02 +02:00
Florent Cailhol d33f49d96f Rename Parser into JavascriptParser 2018-07-03 14:08:43 +02:00
Tobias Koppers 0bb917bf3f convert to a config test cases 2018-07-02 19:05:03 +02:00
Tobias Koppers a39d6b0a6d check for wasm support in test case 2018-07-02 17:45:07 +02:00
Tobias Koppers 5b30edebfc allow filtering of tests in statsCases 2018-07-02 17:44:47 +02:00
Tobias Koppers 1ad71e01f9 add helpful error when importing wasm in initial chunk 2018-07-02 16:18:49 +02:00
reduckted 5b6f99b8d4 Used the compiler's context to get a relative path to the manifest file. 2018-07-02 21:53:16 +10:00
Tobias Koppers 2aac83bd95 rename optimization.splitChunks.cacheGroups.vendors -> defaultVendors
add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-02 10:15:13 +02:00
reduckted cb553050c3 Catch errors while parsing DLL manifest
If the DLL manifest is blank or malformed, parsing it will throw
an error, and if left uncaught will kill the process if webpack is
in watch mode. Catching the error and adding it to the compilation's
errors will result in a failed compilation, but will keep the
process running while in watch mode.
2018-06-30 22:46:00 +10:00
Tobias Koppers 6e68f96d16
Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-29 19:02:35 +02:00
Tobias Koppers 5a185c954e
Merge pull request #7585 from webpack/feature/hook-into-get-reference
hook into dependency reference
2018-06-29 14:00:56 +02:00
Tobias Koppers 522b324f61 allow emitting to the same filename when hash matches
fixes webpack-contrib/mini-css-extract-plugin#190
fixes webpack-contrib/mini-css-extract-plugin#194
2018-06-29 10:03:21 +02:00
Tobias Koppers 43563b3afb hotfix merge issue in watchCases (not in CI) 2018-06-28 17:32:41 +02:00
Tobias Koppers b181bc47aa
Merge pull request #6793 from ronkorving/define-functions
DefinePlugin: add ability to use function return values
2018-06-28 14:01:23 +02:00
Tobias Koppers e08399a02b
Merge pull request #7017 from rtsao/crossorigin-attr
Add script src origin check to ensure crossorigin attribute is only set when needed
2018-06-28 14:00:38 +02:00
Tobias Koppers 8420c73378 Merge branch 'master' into define-functions
# Conflicts:
#	lib/DefinePlugin.js
#	test/WatchTestCases.test.js
#	test/statsCases/define-plugin/expected.txt
2018-06-28 12:05:00 +02:00
Tobias Koppers 5c4ffd5b90 fix tests and code 2018-06-28 11:11:24 +02:00
Tobias Koppers 6478fb9e2a Merge branch 'master' into crossorigin-attr 2018-06-28 10:27:45 +02:00
Tobias Koppers dcf3e09a84
Merge pull request #7399 from webpack/feat-implement-option-for-hashed-module-ids-plugin
feat: implement option for `HashedModuleIdes` plugin
2018-06-28 10:23:37 +02:00
Tobias Koppers b451035acd Merge branch 'next' into fix/runtime-chunk-filename 2018-06-27 16:00:00 +02:00
Tobias Koppers d0c89618f3
Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-27 14:58:10 +02:00
Tobias Koppers 7beac3c645
Merge branch 'master' into feature/hook-into-get-reference 2018-06-27 14:34:28 +02:00
Tobias Koppers f6a86d8c6c improve test case 2018-06-27 14:02:37 +02:00
Tobias Koppers 40ed1f0c8c Revert "fix: update snapshot"
This reverts commit 3113aea57d.
2018-06-27 12:58:52 +02:00
Tobias Koppers e655de8291 Merge branch 'master' into feature/chunk-module-index
# Conflicts:
#	test/__snapshots__/StatsTestCases.test.js.snap
2018-06-27 12:55:22 +02:00
Tobias Koppers 066cddaaa7
Merge pull request #7597 from webpack/refactor/disable_legacy_plugins
Disable legacy plugins
2018-06-27 12:51:58 +02:00
Tobias Koppers 3263e9524f
Merge pull request #7611 from webpack/refactor/node_env
Do not set nodeEnv when 'mode=none'
2018-06-27 12:49:37 +02:00
Florent Cailhol 6a02b60887 Fix tests 2018-06-27 11:23:08 +02:00
Florent Cailhol b9b81b4002 Do not set nodeEnv when 'mode=none' 2018-06-27 11:18:20 +02:00
Florent Cailhol 91663f19a2 Remove deprecated APIs 2018-06-27 10:08:12 +02:00
Tobias Koppers 9dacf8676f
Merge pull request #7601 from webpack/bugfix/hash-entry-chunks
fixes #7577
2018-06-26 21:05:08 +02:00
Sean Larkin 3113aea57d
fix: update snapshot 2018-06-26 10:18:33 -07:00
Tobias Koppers 0f587763e1 add per chunk index and index2
refactor index generation
2018-06-26 18:26:47 +02:00
Sergey Tatarintsev 2f28947fa0 Fix: entrypoints use filename when runtimeChunk: 'single' is used
Fix #6598
2018-06-26 18:00:24 +02:00
Tobias Koppers e38e076b98 fixes #7577 2018-06-26 17:19:37 +02:00
Tobias Koppers 258d9b6bf6
Merge pull request #7600 from webpack/bugfix/missing-module
fixes #7499
2018-06-26 16:12:36 +02:00
Tobias Koppers ab7ecb30ee fixes #7499 2018-06-26 15:27:44 +02:00
byzyk 022542f8a6 revert 'update defaults', update jest snapshot 2018-06-26 15:21:00 +04:00
Florent Cailhol 1f1aac8f26 Disable SystemJS plugin 2018-06-26 11:09:05 +02:00
Tobias Koppers 35a7f6586d add test case 2018-06-25 18:41:44 +02:00
Tobias Koppers 720f3b271a make hot cases better 2018-06-25 18:39:59 +02:00
Tobias Koppers 499ee8cc95 update stats snapshots 2018-06-25 15:43:42 +02:00
Tobias Koppers ecdd6b1664 Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-25 09:32:46 +02:00
Sean Larkin f64f75e55f revert function style, fix a few types, etc 2018-06-23 10:24:36 -04:00