Commit Graph

7762 Commits

Author SHA1 Message Date
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
Sven SAULEAU edcadbb0a1 ci: add node 11 2018-10-24 15:45:02 +02:00
Tobias Koppers 91755a2bdc
Merge pull request #8265 from webpack/ci/fix-memory-issue
Upgrade jest and remove memory bug hack
2018-10-24 15:44:12 +02:00
Tobias Koppers 523ddd7220 avoid memory leak 2018-10-24 15:30:33 +02:00
Zhibin Liu 48656d22b9 [WasmFinalizeExportsPlugin] check if `ref` is null before using it 2018-10-24 21:07:37 +08:00
Tobias Koppers bb19513bbd Upgrade jest and remove memory bug hack 2018-10-24 14:45:30 +02:00
Tobias Koppers dd5e502c2d
Merge pull request #8263 from webpack/ci/shorten-travis
CI: simplify travis
2018-10-24 11:37:34 +02:00
Tobias Koppers 505184f812 simplify travis build
versions are already tested by azure
2018-10-24 10:53:36 +02:00
Tobias Koppers f98374d6d2 run prettier on config files 2018-10-24 10:52:20 +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 126d5c3642
Merge pull request #8142 from fabianishere/master
Prefer chunks with entry module when picking name (#7516)
2018-10-24 10:43:59 +02:00
Tobias Koppers 477f786781
Merge pull request #8257 from webpack/remove/global-hash
remove globalPath and useChunkHash feature
2018-10-24 10:12:18 +02:00
Tobias Koppers 7654a1cefe fix behavior and add test case 2018-10-24 10:02:12 +02:00
Fabian Mastenbroek 6bdc47b4b2 Fallback to shortest when both chunks have entry modules 2018-10-24 09:47:30 +02:00
Fabian Mastenbroek 462604a096 Prefer chunks with entry module when picking name (#7516)
This change changes the algorithm for picking the name of a chunk when
integrating two chunk, by choosing the chunk with an entry module. If
none have one, we use the old algorithm instead, choosing based on the
shortest name.

Fixes #7516
2018-10-24 09:47:28 +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
Tobias Koppers c74bee9cef
Merge pull request #8253 from renatoagds/compiler-watch-mode
Adding watchMode flag in compiler
2018-10-24 09:39:33 +02:00
renatoagds 5e112dbfbe update watchMode tests 2018-10-23 15:12:36 -03:00
renatoagds 7e0ca7193d move watchMode trigger for watch in compiler and close in watching 2018-10-23 14:52:32 -03:00
Tobias Koppers af90df9998
Merge pull request #8256 from webpack/dep/webassemblyjs
bumb webassemblyjs
2018-10-23 17:24:11 +02:00
Tobias Koppers 60805c598c bumb webassemblyjs 2018-10-23 16:48:37 +02:00
Tobias Koppers 071062422e Merge tag 'v4.22.0' into next
4.22.0
2018-10-23 16:41:31 +02:00
Tobias Koppers 1e62de8cb0
Merge pull request #8249 from webpack/bugfix/stablility
fix some compilation stablility issues
2018-10-23 13:20:19 +02:00
Tobias Koppers ac66997b4b bumb webassemblyjs 2018-10-23 12:33:25 +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
Tobias Koppers 1af24a2332
Merge pull request #8255 from webpack/bugfix/buffer
revert incorrect change
2018-10-23 09:07:33 +02:00
Tobias Koppers b146c7ac41 revert incorrect change
The Buffer can be a slice of the underlying buffer
2018-10-23 08:43:21 +02:00
Tobias Koppers eb8a34c488
Merge pull request #8252 from jantimon/patch-1
fix missing declarations entry in package.json
2018-10-23 07:25:02 +02:00
Jan Nicklas 80c8850b89 fix missing declarations entry in package.json 2018-10-23 06:33:15 +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
renatoagds 2f7533202c adding watchMode flag in compiler 2018-10-22 19:23:47 -03:00
Tobias Koppers 894eca20bd 4.22.0 2018-10-21 11:34:29 +02:00
Tobias Koppers 5165a90de8
Merge pull request #8242 from webpack/perf/chunk-graph
Optimize chunk graph algorithm
2018-10-20 06:09:58 +02:00
Tobias Koppers 07d2d650ba
Merge pull request #8243 from webpack/bugfix/stablility
fix some compilation stablility issues
2018-10-19 16:20:56 +02: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
Tobias Koppers 3a1a06e784
Merge pull request #8162 from webpack/feature/serializer
add persistent caching prototype
2018-10-19 10:59:08 +02:00