问题标签 [swc-compiler]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
16 浏览

reactjs - 下一个 js 加载 SWC 失败

我无法在终端中使用 yarn dev,请帮助我摆脱这个错误。 SWC 错误

0 投票
0 回答
74 浏览

node.js - How to setup SWC compiler

I'm using SWC for the first time and I'm not able to compile my ts files into normal js files.

When I run my command :

I got the error :

Here is my.swcrc I have generated with the SWC Playground

My goal is to :

  • Take my ts files from my ./src dir
  • Compile and output it in a dist dir with source maps enabled