-
Faced with a problem on redux-toolkit cimpilation in runtime (chromium 50):
> Uncaught SyntaxError: Unexpected token ?
on line:
```js
const contextMap = gT[ContextKey] ?? (gT[ContextKey] =…
-
### How are you using Babel?
@babel/cli
### Input code
```ts
import * as import1 = from './file1.ts';
const import2 = await import('./file2.ts');
```
### Configuration file name
.bab…
-
### Describe the feature
after migrating jest from babel to swc we found that now our unit tests have to specify an `__esModule: true` when mocking a module that has a default export.
example:
`…
-
Hi,
The babel-preset-react-app package is using @babel/plugin-proposal-private-property-in-object without declaring it in its dependencies. This can cause builds to fail if the package is not prese…
-
vue-cli 3.0.1 depends`preset-es2015`,
Recommend `preset-env`
-
### 💻
- [X] Would you like to work on a fix?
### How are you using Babel?
Programmatic API (`babel.transform`, `babel.parse`)
### Input code
```js
import './component';
jest.mock('.…
-
**关键词**:TS 项目迁移
在 JavaScript 项目迁移到 TypeScript 的过程中确实会出现大量 JS 和 TS 文件共存的情况。要配置项目以使它们兼容并顺利运行,你需要进行以下设置:
### 1. 初始化 TypeScript 配置
首先,创建`tsconfig.json`文件来配置 TypeScript 编译选项。可以通过运行`npx tsc --init`来自动生成一…
-
- [TypeScript and Babel 7(MSDN)](https://blogs.msdn.microsoft.com/typescript/2018/08/27/typescript-and-babel-7/)
- [Babel7 or TypeScript(ts-jest)](https://kulshekhar.github.io/ts-jest/user/babel7-or-…
-
- Option `typescript` is unused by the majority I believe
- `typescript` parsing can be bypassed by `parserOpts.plugin = ['typescript']`, you can see an example here: https://github.com/lxsmnsyc/soli…
-
Hi, can this be used purely with babel-loader? Since with Babel 7.x the preset "@babel/typescript", ts-loader does not seem to be needed anymore, but "babel-plugin-import" seems to not support babel 7…