Alexander Akait
b8b90d6ee9
fix: less `any` types ( #19382 )
2025-04-04 16:38:51 +03:00
Qingyu Wang
8ab85e29bb
feat: implement `module.generator.json.JSONParse`
...
For large `.json` modules, webpack will generate `JSON.parse` by default for
better performance. But there are some circumstances that `JSON.parse` is not a
good choice (e.g.: when doing AOT compilation).
Thus, a new generator option `module.generator.json.JSONParse` is added to
disable generating `JSON.parse` for `.json` module.
The default value is kept as `true` and can be opt-out by custom rules.
fix : #19319
2025-03-13 22:24:10 +08:00
hai-x
3de7b0d330
refactor: use `module.parser.json.exportsDepth`
2024-12-14 01:24:31 +08:00
hai-x
38df65df32
perf: improve FlagDependencyExportsPlugin for large JSON by depth
2024-12-12 19:57:02 +08:00
alexander.akait
9943f3506a
style: improve style of code
2024-08-02 19:32:14 +03:00
alexander.akait
4ee703f647
chore: improve jsdoc rules
2024-07-30 17:07:14 +03:00
alexander.akait
2e23e67163
feat: more types for JSON type
2023-04-28 21:03:16 +03:00
Sean Larkin
4bcc0f0ed5
yarn lint fix
2023-03-31 09:45:36 -07:00
Sean Larkin
844fc55b36
refactor(moduletypes): introduce module type constants, reduce memory footprint define/json plugins
2023-03-31 09:26:38 -07:00
Tobias Koppers
e21b1d46fe
precompile schemas for improved startup performance
2021-04-16 16:02:58 +02:00
highonweb
bc1911bf78
Changed name of memorize function to memoize
2020-12-27 03:02:57 +05:30
evilebottnawi
8c19efb7fd
chore(deps): update `schema-utils`
2020-10-05 21:58:54 +03: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
Sergey Melyukov
e934792b2a
support custom parser for json modules
2019-11-28 20:12:11 +03:00
evilebottnawi
8198ffb3e6
refactor: code
2019-10-22 00:14:05 +02:00