Commit Graph

130 Commits

Author SHA1 Message Date
Tobias Koppers 8614c75f11 run inherit types tool on existing code 2018-07-21 13:50:18 +02:00
Sven SAULEAU b310b9b45c
feat: remove LEB128 opt 2018-07-16 13:57:32 +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 559cf94edb Simplify imports 2018-07-09 15:09:00 +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 1ad71e01f9 add helpful error when importing wasm in initial chunk 2018-07-02 16:18:49 +02:00
Tobias Koppers b06cca2371
Merge pull request #7626 from webpack/format/arrow-functions
arrow functions, remove or improve eslint-disable comments
2018-06-29 20:41:54 +02:00
Tobias Koppers ad8f496745 arrow functions, remove or improve eslint-disable comments 2018-06-27 13:48:13 +02:00
Florent Cailhol c68d0d2171 Remove Tapable compatibility 2018-06-26 08:31:08 +02:00
Tobias Koppers 50fe2e79ee add Compilation.getDependencyReference and hooks to override it
expose DependencyReference class
2018-06-23 15:13:14 +02:00
Sven SAULEAU 0288128cb9
feat: get start func from context 2018-06-06 11:06:40 +02:00
Sven SAULEAU 6e85ac5468
feat: use function matcher 2018-06-06 10:39:06 +02:00
Tobias Koppers 8e3be48da4 allow to disable wasm import mangle
disable it by default (temporary)
2018-06-05 23:49:02 +02:00
Tobias Koppers 5ecf74917f finish plugin and tests 2018-06-04 16:23:41 +02:00
Tobias Koppers 822c252a09 Merge branch 'master' into fix-wasm-check-for-invalid-signatures
# Conflicts:
#	declarations.d.ts
#	lib/wasm/WebAssemblyParser.js
#	package.json
#	yarn.lock
2018-06-04 13:33:26 +02:00
Tobias Koppers 949890acdf
Merge pull request #7472 from webpack/bugfix/error-origin-loc
Cleanup error location and origin information
2018-06-04 11:16:48 +02:00
Tobias Koppers 53103a9690 Cleanup error location and origin information 2018-06-04 10:35:46 +02:00
Tobias Koppers e9195c40dc
Merge pull request #7466 from xtuc/fix-wasm-keep-imports
wasm: keep imports
2018-06-04 09:02:50 +02:00
Tobias Koppers 9a6d9c7a06 rename to externalExports 2018-06-02 18:00:22 +02:00
Tobias Koppers 1e4b1c7212 create correct init for float types 2018-06-02 17:57:58 +02:00
Tobias Koppers 1e4d2b7fe7 handle reexported wasm globals in JS wrapper code 2018-06-02 17:20:58 +02:00
Sven SAULEAU 8a6c722ca6
fix(wasm): keep imports 2018-06-02 15:51:26 +02:00
Sven SAULEAU 928d051aae
Merge remote-tracking branch 'upstream/master' into fix-wasm-check-for-invalid-signatures 2018-05-30 15:31:31 +02:00
Sven SAULEAU b34ed237cf
fix: address some comments 2018-05-30 15:27:42 +02:00
Sven SAULEAU fbd9d0d3a8
feat(wasm): add finalizer for checking exports 2018-05-30 12:45:05 +02:00
Tobias Koppers 53d26bfc96 merge rewriteGlobalsReferingImportedGlobals into rewriteImportedGlobals 2018-05-30 10:49:12 +02:00
Tobias Koppers 04d9c8ab59 Merge branch 'master' into feat-wasm-global-in-global-initilizer2 2018-05-29 21:07:22 +02:00
Tobias Koppers 8e6a012dbb
Merge pull request #7432 from webpack/add_brackets
Add brackets for multiline if/for statements
2018-05-29 20:17:00 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Sven SAULEAU 23795ba666
fix(wasm): preserve global ordering 2018-05-29 14:52:29 +02:00
Sven SAULEAU d6e9624c4a
Merge branch 'master' into feat-wasm-global-in-global-initilizer2 2018-05-29 14:24:26 +02:00
Tobias Koppers 909a2ac8d0 fix small bug in wasm runtime 2018-05-28 23:35:29 +02:00
Sven SAULEAU 38604c3cb0
feat: WIP add global into runtime 2018-05-28 16:56:06 +02:00
Sven SAULEAU fd4e84b36f
fix(wasm): correct initializer type for rewritten globals 2018-05-28 14:55:40 +02:00
Sven SAULEAU 6d8bc91a9b
feat: add missing preprocessing 2018-05-21 14:07:39 +02:00
Sven SAULEAU d7d82b25d5
refactor : use AST utils 2018-05-16 13:22:46 +02:00
Tobias Koppers cd7980e2a8 add comment about the microtask delay 2018-05-12 10:25:17 +02:00
Tobias Koppers 22ec60434d lint and type 2018-05-11 21:02:37 +02:00
Tobias Koppers 42c0214254 move common code into separate module 2018-05-11 21:02:36 +02:00
Tobias Koppers 08e72f5468 fix compat types list 2018-05-11 20:59:21 +02:00
Tobias Koppers ee0b5afc44 generate shorter runtime code for the imports map 2018-05-11 20:59:20 +02:00
Tobias Koppers cb3a0ed08c enforce direct import when types are incompatible with JS types 2018-05-11 20:59:20 +02:00
Tobias Koppers fb29d633db Mangle import names and module requests 2018-05-11 20:57:19 +02:00
Tobias Koppers f903cd3ef9 mangle exports of wasm modules
mangle webpack init function
store WebAssembly.Instance.exports directly
connect wasm modules directly when already cached
2018-05-11 20:57:18 +02:00
Tobias Koppers e2c8f3d501 remove passing AST, redecode AST in Generator 2018-05-11 16:46:33 +02:00
Tobias Koppers 85ef634389 remove _ast variable, add WeakMap 2018-05-10 20:19:30 +02:00
Sven SAULEAU 8bdc8ad646
refactor: remove type cast 2018-05-09 17:53:25 +02:00
Sven SAULEAU d72f7c6b1c
feat: store wasm ast on the module 2018-05-09 17:47:05 +02:00
Sven SAULEAU d491fdc786
feat: uses new APIs 2018-05-09 17:40:38 +02:00
Tobias Koppers f2ad440de8 More strict linting of jsdocs
Use TODO over any when type is possible
2018-05-08 14:53:33 +02:00
Tobias Koppers e90b766beb fix type issue 2018-05-07 11:19:13 +02:00
Sven SAULEAU 42379540f8
fix(wasm): correct exported func index 2018-05-07 09:49:14 +02:00
Sven SAULEAU 3ade8a0a6f
fix(wasm): ignore code section in generator 2018-05-04 18:57:38 +02:00
Sven SAULEAU 1bc7657eab
fix: handle empty modules in dependecies 2018-05-04 18:52:07 +02:00
Sven SAULEAU 9cc4ebb8d8
fix: generation and bump dep 2018-05-04 15:39:26 +02:00
Tobias Koppers 4702ee9016 Use compile/compileStreaming when importObject is a Promise 2018-04-30 08:35:06 +02:00
Tobias Koppers 81873932cb pretty 2018-04-30 07:29:53 +02:00
Tobias Koppers 2be62688c5 update for breaking change in dependency 2018-04-29 21:06:59 +02:00
Tobias Koppers 87a798c992 update for changed API 2018-04-28 11:38:34 +02:00
Tobias Koppers cd6eec18e3 delay import object creating until all promises has been initialized 2018-04-28 11:29:46 +02:00
Tobias Koppers 054ba39898 make wasm to wasm Table and Memory exports possible 2018-04-28 11:09:13 +02:00
Tobias Koppers 502bfe4181 improve hashing for wasm 2018-04-28 10:02:12 +02:00
Tobias Koppers b72e363f03 formatting for output code, nitpicks 2018-04-28 09:57:21 +02:00
Tobias Koppers 9156be961d rename and move BaseWasmMainTemplatePlugin
align usage with other plugins
2018-04-27 19:02:02 +02:00
Tobias Koppers 82a71be1dc Cleanup, refactoring, types 2018-04-27 18:53:07 +02:00
Sven SAULEAU 96f7ba8d8f
refactor: use safer id for init func 2018-03-29 14:53:59 +02:00
Sven SAULEAU de9ab747e2
fix: elimante falsy values 2018-03-29 13:52:26 +02:00
Sven SAULEAU 0476eb4499
Merge branch 'master' into feat-rewrite-wasm 2018-03-29 12:35:48 +02:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Sven SAULEAU 6d906d04d0
fix: improved wasm transformations 2018-03-12 11:43:20 +01:00
Sven SAULEAU 1ff76a5bb1
refactor: use init function 2018-03-09 19:03:33 +01:00
Sven SAULEAU faff92c52b
feat: use instantiateStreaming 2018-03-08 17:54:06 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Alex Nozdriukhin dcde5f4bd1 Fix typos 2018-02-09 19:25:22 +09:00
Tobias Koppers ea609374f7 split Chunk.isInitial into isOnlyInitial and canBeInitial
remove includeInitial argument of getChunk(Module)Maps
2018-01-22 12:52:28 +01:00
Tobias Koppers f92ff346fe linting 2017-12-21 09:33:26 +01:00
Tobias Koppers 3ee016f4a9 add support for imports in wasm modules 2017-12-20 20:42:42 +01:00
Florent Cailhol f737b26260 Remove some plugin calls 2017-12-14 14:42:49 +01:00
Tobias Koppers 91e6692362 extract exports from wasm module
mangle used exports
fix esm flag
2017-12-14 13:05:03 +01:00