magic-akari

Results 41 issues of magic-akari

本仓库作为我探索前端开发的一个重要实验场。同时具有实用性,至少我自己是这个工具的长期用户。 在此之前,已经验证了接近无脚手架的开发环境。 本仓库中,React 作为全局依赖,且几乎没有第三方依赖,这是为了规避 ESM 的路径解析问题。 时至今日,import-map 作为一个可能的解。但是总体来说这个困境没什么变化。 --- 在此之后,此仓库将会用于探索工具链的使用。 - 此仓库中有部分依赖 TS 独有的特性,会造成迁移困难,如 const enum。会逐渐移除这些特性,并开启 isolatedModules 选项。 - 使用 vite (待定)等现代化工具改善开发体验。makefile 等脚本将会被移除,Dockerfile 也没有继续保留的意义。 - 引入 SWC 作为编译器。可能使用 Rollup/Webpack 叠加...

enhancement

### Describe the bug I don't think the `typeAnnotation` should be attached on pat. ## 1. VarDeclarator The typeAnnotation should always be attached on the VarDeclarator, not the pat. ```TypeScript...

C-bug

**Description:** SystemJS is totally different from CJS/AMD/UMD and I can't define a getter on exports because it uses the `export()` function. But I can use the same trick of class...

### Describe the bug Some comments are output in the wrong place. ### Input code ```typescript /* 1 */ export /* 2 */ const /* 3 */ foo /* 4...

C-bug

### Describe the bug class should not be hoisted. ### Input code ```typescript const foo = 1; export default class { foo = foo } ``` ### Config ```json {...

C-bug

[Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=7b452e98ea7f752f85de334c168129de) I'm not sure if it's a bug or a design. I expect it to print consistent results in both cases. (`Config { point: Point { x: MyInt(0), y: MyInt(1)...

# Bug Report _Originally posted by @clhiker in https://github.com/swc-project/swc/issues/5433_ ### 🔎 Search Terms - generators - JSON.stringify - enumerable ### 🕗 Version & Regression Information - This is a crash...

Needs Investigation
Fix Available

swc use TypeScript Similar function to reexport module. The function details of swc are a little different from tsc. To avoid naming conflicts, different names are used by swc. The...

## Summary - fix #2958 ## Test Plan

L-TypeScript
A-parser
PR: on hold