Tobias Koppers
c94aea82cc
enable export mangling for system.js externals
...
add __esModule flag only when needed
2020-03-05 14:07:55 +01:00
Tobias Koppers
4da880e658
remove Array.prototype.reduce calls to simplify code
2020-01-21 09:45:25 +01:00
Tobias Koppers
782e4535ac
Refactor how exportsType work
...
add flagged exportsType for __esModule flagged
add getExportsType to merge strict with exportsType
move CommonJsStuffPlugin into CommonJsPlugin
split CommonJsPlugin into imports and exports part
enable minimal tree shaking for CommonJs imports and exports
2019-12-06 11:13:08 +01:00
Ivan Kopeykin
1b3c667fd7
run lint fix
2019-12-03 20:48:31 +03:00
Ivan Kopeykin
faea05d195
fix: use memorize util instead of lazyRequire
2019-12-03 20:31:39 +03:00
Ivan Kopeykin
4598ea539b
feat(util/lazyRequire): tool for loading CommonJS modules lazily
2019-12-02 18:37:55 +03:00
Tobias Koppers
01d159d9f2
Merge pull request #10058 from webpack/types/parser
...
Introduce a Parser base class to improve Parser types
2019-11-30 07:58:27 +01:00
Tobias Koppers
2f3da77d38
Introduce a Parser base class to improve Parser types
...
Parser.parse must be always sync
make JSON and WASM modules strict
fix inherit-types tooling to omit static methods
2019-11-30 01:36:28 +01:00
Emanuele Stoppa
e607681277
fix: replaced some TODO with correct types and fixed some runtime issue
2019-11-28 22:48:01 +01:00
Sergey Melyukov
bdc61abf82
refactor: merge generators in asset modules
2019-11-26 15:42:37 +01:00
Sergey Melyukov
a214be41a0
add deprecation codes
2019-11-14 17:03:15 +03:00
Tobias Koppers
84b6817f60
consistency and bugfixes for reexporting json
2019-11-05 10:39:12 +01:00
Tobias Koppers
8696017c55
add Dependency.getReferencedExports
...
remove Dependency.getReference
remove DependencyReference
2019-10-30 07:48:37 +01:00
Tobias Koppers
8d46b21fad
add Dependency.getCondition and conditional ModuleGraphConnections
...
getDependencyReference is no longer used to check of connection
2019-10-30 07:48:32 +01:00
Tobias Koppers
bba1d0fbb7
lazy require webassemblyjs using modules
2019-10-18 13:48:11 +02:00
Tobias Koppers
65bdb43180
fix badly chosen max fill rate for deterministic
...
sort modules by identifier in output file, that's better for gzip
2019-10-16 16:38:04 +02:00
Tobias Koppers
ddc3dae0e6
refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
...
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00
Tobias Koppers
53f68c9e7b
update deprecated usage of chunk and main templates
2019-10-08 23:46:33 +02:00
Tobias Koppers
69a545c444
Deprecate MainTemplate, ChunkTemplate, ModuleTemplate
...
move logic and hooks to JavascriptModulesPlugin
2019-10-08 23:46:26 +02:00
Tobias Koppers
92e362544f
Merge tag 'v4.39.3' into next
...
4.39.3
2019-08-27 19:17:06 +02:00
Tobias Koppers
e507392094
add output.ecmaVersion options to set emitted code style
...
fix a bug with prefetching initial chunks
InitFragments have get[End]Content methods which get a sourceContext
RuntimeModules have implicit chunk and compilation
changed default to `output.ecmaVersion: 2015`
2019-08-26 21:32:29 +02:00
jamesgeorge007
dfcf3dd5c2
Minor grammatical correction
2019-08-19 20:12:03 +05:30
Tobias Koppers
3675f64e51
Merge pull request #9588 from jamesgeorge007/feat/add-types
...
chore(WebAssemblyGenerator): Added type metadata
2019-08-19 15:21:28 +02:00
jamesgeorge007
8d3c3c5640
remove extraneous check
2019-08-17 17:54:24 +05:30
jamesgeorge007
aba6ea6928
remove extraneous check
2019-08-17 17:53:09 +05:30
jamesgeorge007
2186d75d74
remove extraneous check
2019-08-17 17:52:51 +05:30
jamesgeorge007
7d45ca1002
Add types
...
getCountImportedFunc
2019-08-17 17:50:29 +05:30
jamesgeorge007
fbf1d47984
reword
2019-08-17 17:29:49 +05:30
jamesgeorge007
7331de580c
minor tweak
2019-08-17 17:28:17 +05:30
jamesgeorge007
60e33163bd
fix grammar
2019-08-17 17:26:11 +05:30
jamesgeorge007
b13bdc282a
fix typo
2019-08-17 17:24:27 +05:30
Tobias Koppers
cac462cba8
Merge pull request #8983 from hiroppy/feature/url
...
add experimental Url support
2019-07-17 23:32:15 +02:00
Tobias Koppers
4fa8addeec
Handle auxiliary files separately from normal files
2019-07-17 23:13:08 +02:00
Tobias Koppers
1d72a05fed
Merge tag 'v4.36.0' into next
...
4.36.0
2019-07-17 16:02:33 +02:00
Tobias Koppers
955d5689a9
remove experimental from module type name
...
since there is the `experiments` config now
2019-07-15 15:03:29 +02:00
ikopeykin
30e747a55d
enforce eslint require-hyphen-before-param-description
2019-07-09 23:15:14 +03: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
6db94536ad
Merge tag 'v4.34.0' into next
...
4.34.0
2019-06-13 10:51:12 +02:00
Tobias Koppers
fd4b3c503a
pretty files
2019-06-09 11:23:42 +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
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
2be9ca9431
rename incorrectly named file
2019-05-22 13:11:48 +02:00
Adam Postma
ff8c37e887
correct spelling mistake, update identifer to identifier
2019-04-12 10:29:41 -06: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
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
923e16dd5a
remove module argument from getDependencyReference
2019-01-28 08:38:35 +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
9048500acf
remove unneeded moduleGraph argument
2018-12-31 12:32:12 +01:00