Commit Graph

154 Commits

Author SHA1 Message Date
jserfeng 0d856a3553 fix: mangle destruction incorrect with export named default 2024-08-14 21:38:14 +08:00
alexander.akait b9d9a5d9ff style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait a592b62686 style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 423e89b2c7 style: improve style of code 2024-08-02 19:32:13 +03:00
ahabhgk 6011f18b13 improve perf 2024-06-21 21:23:49 +08:00
ahabhgk cfd6049ff6 fix: mangle destructuring default in namespace import 2024-06-21 21:01:17 +08:00
alexander.akait 6154a2393f refactor: code 2024-06-10 19:21:03 +03:00
ahabhgk 327d208156 fix review 2024-06-06 01:15:03 +08:00
ahabhgk c3e5d65d21 refactor 2024-06-01 16:20:58 +08:00
ahabhgk cc5c37df08 clean up 2024-04-19 00:59:57 +08:00
ahabhgk a93725ff9c refactor to HarmonyDestructuredImportSpecifierDependency 2024-04-19 00:54:46 +08:00
ahabhgk ffda9bf704 fix lint 2024-04-13 02:54:43 +08:00
ahabhgk 0734314753 fix: mangle with destructuring 2024-04-13 02:40:28 +08:00
alexander.akait c80a7f2e16 refactor: code use attributes instead assertions 2024-03-15 18:11:02 +03:00
alexander.akait caea8131b3 fix: types 2024-02-22 17:36:36 +03:00
alexander.akait 6ab9bdaa73 fix: types 2024-02-22 17:20:17 +03:00
ahabhgk fc7b34d8f0 fix: should not mangle when destructuring a reexport 2024-02-18 17:10:32 +08:00
ahabhgk 69127aed6e add test 2024-02-06 17:49:47 +08:00
ahabhgk 213290ea65 fix: not mangle export with destructuring 2024-02-06 17:47:11 +08:00
Ben Worline b14922c5be Refactor shared code 2023-10-02 10:28:43 -07:00
alexander.akait d9d64b5198 refactor(types): more 2023-06-21 19:01:53 +03:00
alexander.akait e226101c55 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait e381884115 refactor(types): more 2023-06-21 19:00:24 +03:00
Ben Worline c8dc5fac9b Handle barrel imports (#17305) 2023-06-02 15:16:53 -07:00
Ben Worline 5ab7e50503 handle null dep.idRangeStarts 2023-05-31 08:14:40 -07:00
Ben Worline 9bb13a8be6 incorporate CR feedback 2023-05-30 23:06:15 -07:00
Ben Worline b834303d83 add more error handling and json import support 2023-05-26 12:04:57 -07:00
Ben Worline af6626981e fix use of "at" 2023-05-24 06:12:10 -07:00
Ben Worline 5b88a4865e yarn type-lint 2023-05-23 22:24:20 -07:00
Ben Worline a8bb2d73f8 Merge branch 'main' of https://github.com/webpack/webpack into ns 2023-05-23 20:22:06 -07:00
Ben Worline 7bdd6436ba move comment 2023-05-23 20:03:49 -07:00
Ben Worline 6f43ce3bfb checkpoint 2023-05-23 15:29:25 -07:00
alexander.akait 055737dc0c refactor(types): more 2023-05-21 23:31:30 +03:00
alexander.akait 4f6dc32d38 chore: improve types 2023-04-21 19:22:33 +03:00
Ivan Kopeykin 8c8a3a0a99 fix caching 2023-04-09 11:33:49 +03:00
Ivan Kopeykin 45754f45d0 rename some properties, add more test cases 2023-04-09 10:44:09 +03:00
Ivan Kopeykin 397ce0c84e add import tree shaking support 2023-04-09 00:23:15 +03:00
Tobias Koppers b095e8d138 remove arguments, replace whole expression 2022-03-08 08:02:54 +01:00
Ivan Kopeykin f9779f1d0c improve dependency 2022-03-04 11:39:51 +03:00
Mark Molinaro 0f22db981d Fix names of options to match the exported types 2021-11-06 00:01:21 +00:00
Tobias Koppers 4b5d1360d8 fix serialization and snapshots 2021-11-03 11:34:26 +01:00
Tobias Koppers d9c592738a refactor and add test cases
add `parser.exportPresence`, `parser.importExportPresence`, `parser.reeexportExportPresence` `"error" | "warn" | "auto" | false`
2021-11-02 18:29:47 +01:00
Sven Sauleau 6c50c81350 Revert "Revert "Merge pull request #12278 from xtuc/sven/import-assertions""
This reverts commit 61946b7c46.
2021-07-24 23:28:30 +01:00
Tobias Koppers 61946b7c46 Revert "Merge pull request #12278 from xtuc/sven/import-assertions"
This reverts commit df02bc6c0a, reversing
changes made to a6f341e243.
2021-07-16 21:54:21 +02:00
Tobias Koppers 7f22e4721f match on asserts
change Map to Record
improve test case
2021-07-16 13:17:20 +02:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 92fba2d346 fix json related tree shaking and caching problems
json with constructor property now caches correctly
json generation with object prototype property now works correctly
tree shaking json array when accessing length property now works correctly
fix incorrect call context when calling properties on imports from CommonJS modules

fixes #12615
2021-02-07 16:43:44 +01:00
Tobias Koppers a936d7b3a0 avoid unnecessary conditions 2021-01-27 13:37:34 +01:00
Tobias Koppers 21c08d56ec avoid allocation of meta info for dependencies when unused 2021-01-27 13:37:34 +01:00
Tobias Koppers 97b83161d9 move responsibility of exports info and connected modules hashing from Dependencies to Module
fixes a bug where modules are incorrectly cached when exports info of connected modules change
2021-01-24 21:36:36 +01:00