강동윤
03f9b93f58
Fix bundler ( #1247 )
...
swc_bundler:
- Handle indirect wrapped es modules. (denoland/deno#8597 , denoland/deno#8625 )
- Respect `export { foo }`. (denoland/deno#8626 )
swc_ecma_parser:
- Allow `??=`, `||=`, `??=` in non-ts modules. (denoland/deno#8627 )
swc_ecma_transforms:
- Make `hygiene` check if a variable with expanded name exists. (denoland/deno#8620 )
- Handle `??=` correctly.
2020-12-09 14:23:44 +09:00
강동윤
547846310d
Fix bundler ( #1246 )
...
swc_bundler:
- Reduce level of logging.
- Handle export specifiers without alias. (denoland/deno#8573 )
- Handle normal initialization while reordering statements. (denoland/deno#8574 )
- Handle top level `await`s in wrapped modules. (denoland/deno#8584 )
- Add benchmark for the bundler.
2020-12-02 22:48:35 +09:00
강동윤
19cbdc34ff
Fix bundler ( #1245 )
...
swc_bundler:
- Handle `default` while merging reexports. (https://github.com/denoland/deno/issues/8211#issuecomment-736498065 )
2020-12-02 14:51:54 +09:00
강동윤
ea6beaa06d
Fix bundler ( #1242 )
...
swc_ecma_codegen:
- Fix codegen of unicode escapes. (denoland/deno#8541 )
swc_bundler:
- Allow importing a module multiple time. (denoland/deno#8530 )
2020-11-30 18:21:34 +09:00
강동윤
8ca3d1160d
Fix bundler ( #1234 )
...
swc_bundler:
- Handle dependencies of circular modules in wrapped modules. (#1214 )
- Handle `export * from './file.ts'` properly. (denoland/deno#8481 )
- Fix deglobbing. (denoland/deno#8486 )
2020-11-27 19:37:22 +09:00
강동윤
4294b5e7ba
bundler: Fix issues ( #1212 )
...
swc_bundler:
- Bundler rework. (denoland/deno#6802)
- Reexports are not transitive. (denoland/deno#8246)
- Dependencies of module with circular dependency. (denoland/deno#8302)
- Order of injection between import vs export. (denoland/deno#8302)
- `export *` in wrapped modules. (denoland/deno#8308, denoland/deno#8399)
- `export { a as b }` in wrapped modules.
- Fix denoland/deno#8314.
- Fix denoland/deno#8325.
- Fix denoland/deno#8344.
- Make deno test verify exported names.
- Handle `export * from './foo'`.
swc_ecma_parser:
- Don't panic on private name in interface (Closes #1211 )
swc_ecma_transforms:
- dce: Prevent infinite loop
- Faster constant propagation pass.
2020-11-19 20:42:56 +09:00
강동윤
c6cfa9d73f
Fix bundler: stack overflow and circular imports ( #1205 )
...
swc_bundler:
- Fix infinte loop (denoland/deno#8224 )
- Fix order of merging with circular imports. (Fixes denoland/deno#8246 )
- Fix detection of circular imports.
- Fix logic of lca calculation.
- Fix sorting algorithm.
2020-11-06 18:42:04 +09:00
강동윤
0a5e23f97c
bundler: Handle swc helpers ( #1199 )
...
swc_bundler:
- Handle helpers from `swc_ecma_transforms`.
swc_ecma_transforms:
- dce: Remove unused self-referential functions.
2020-11-05 09:53:18 +09:00
Nayeem Rahman
3cdb62bfd8
bundler: Improve hook for import.meta ( #1195 )
...
Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
2020-11-02 15:22:21 +09:00
강동윤
ce6ded1dee
Fix bundler: luxon.js ( #1196 )
...
swc_bundler:
- Determine order of merging based on dependency graph. (denoland/deno#8211 )
2020-11-02 14:55:28 +09:00
강동윤
bae0eda8bd
Fix bundler ( #1194 )
...
swc_bundler:
- Remove wrong assertion. (denoland/deno#8148 )
- Remove wrong variables created on reexports. (denoland/deno#8188 )
swc_ecma_transforms:
- inlining: Treat usage as an argument as writes. (denoland/deno#8180 )
- inlining: Visit rhs of `||` and `&&`. (denoland/deno#8189 )
2020-10-30 14:49:02 +09:00
강동윤
626c881c98
bundler: Fix ordering ( #1171 )
2020-10-16 22:26:18 +09:00
강동윤
41d1738b82
bundler: Make output deterministic ( #1166 )
...
swc_bundler:
- Make output deterministic
2020-10-16 18:02:42 +09:00
강동윤
ad7cb6544d
bundler: Handle computed accesses correctly ( #1159 )
...
swc_bundler:
- Handle computed accesses to imports correctly.
- Make planning deterministic.
- Prefer exports over imports while planning.
- Fix https://deno.land/x/oak@v6.3.1/examples/server.ts
2020-10-14 23:28:38 +09:00
강동윤
6f006208ac
bundler: Fix bugs ( #1154 )
...
swc_bundler:
- Fix importing from transitive dependencies with aliases.
- Fix stack overflow while computing plan for modules with cyclic dependencies.
- Handle `export *` for function / class properly. (#1155 )
2020-10-10 18:32:31 +09:00
강동윤
9879fa59c8
bundler: fix bugs ( #1105 )
...
swc_bundler:
- Correct lca for circular dependencies.
- Handle namespaced imports. (#1109 )
- Handle namespaced reexports. (#1110 )
- Handle shorthand properly. (#1111 )
- Implement `import.meta` (#1115 )
- Handle reexport mixed with imports correctly. (#1116 )
- Handle export default decls in computed-key modules.
- Remove all export * from. output. (#1118 )
- Handle export of class or function declaration in a computed module properly. (#1119 )
swc_ecma_transforms:
- Do not rename class members. (#1117 )
2020-10-02 11:07:40 +09:00