💻
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
const _ = {} satisfies any;
Configuration file name
No response
Configuration
No response
Current and expected behavior
Current Behavior
Error is output: Missing semicolon. (1:12);
Expected Behavior
Code is output like below:
"use strict";
const _ = {};
Environment
N/A
Possible solution
No response
Additional context
The satisfies operator is part of the TypeScript 4.9 beta that is to be released soon. Please add support for it within the transformer.
💻
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
Current Behavior
Error is output:
Missing semicolon. (1:12);Expected Behavior
Code is output like below:
Environment
N/A
Possible solution
No response
Additional context
The
satisfiesoperator is part of the TypeScript 4.9 beta that is to be released soon. Please add support for it within the transformer.