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
d34d69e62b
Merge tag 'v4.29.5' into next
...
4.29.5
2019-02-19 08:58:46 +01:00
Sven Sauleau
0bb563f073
fix(webassembly): add end instructions
2019-02-10 13:44:29 +01:00
Tobias Koppers
cc34ea42b0
add type argument to Module.size
...
add getSize to Generator
2018-12-05 20:18:59 +01:00
Tobias Koppers
dff9278d6b
add Module.getSourceTypes
...
getSourceTypes declares all source types which can be generated
Remove shouldRender in favor of source type testing
2018-12-05 20:18:57 +01: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
d5ad14813f
create Source with Buffers for WASM
2018-10-18 12:44:31 +02:00
Tobias Koppers
fd0b6aa196
Merge tag 'v4.18.0' into next
...
4.18.0
2018-09-10 17:44:07 +02:00
Tobias Koppers
e0e0061f32
Merge branch 'master' into chore-bump-webassemblyjs11
2018-09-10 15:18:38 +02:00
Tobias Koppers
3bb5263bfd
move methods from Module into ModuleGraph
2018-08-21 11:04:40 +02:00
Tobias Koppers
c21d59f783
Merge tag 'v4.17.0' into next
...
4.17.0
2018-08-21 11:02:16 +02:00
Mihail Bodrov
1f954b4f12
Get rid typeof undef in all lib
2018-08-21 03:26:50 +03:00
Tobias Koppers
a6e1c0693c
add TODOs
2018-08-16 14:10:39 +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
11e127d162
pass moduleGraph along with multiple methods
2018-08-02 17:54:42 +02:00
Tobias Koppers
4ce109f8c1
change arguments of Generator.generate and Module.source into a object to be easier extensible
...
add JavascriptModulesPlugin.getHooks().shouldRender to decide if a module should be rendered
2018-08-02 16:07:29 +02:00
Tobias Koppers
c9eb4c8e01
Merge tag 'v4.16.4' into next
...
4.16.4
2018-08-02 16:00:39 +02:00
Florent Cailhol
64e301c33b
Update Prettier
2018-07-31 11:44:32 +02:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Tobias Koppers
0052861178
remove unconsistency with Module._source and originalSource
2018-07-25 12:20:35 +02:00
Sven SAULEAU
38c34030a0
Merge remote-tracking branch 'upstream/master' into chore-bump-webassemblyjs11
2018-07-25 10:06:37 +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
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
ad8f496745
arrow functions, remove or improve eslint-disable comments
2018-06-27 13:48:13 +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
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
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
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
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
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
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
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