ff6b75027b
## Feature Enable import assertion syntax parsing for ecmascript/typescript. Since webpack has already supported it, enable import assertion parsing and leave them to webpack to handle #### Upgration * tooling: `@swc/core`, `@swc/cli`, prettier to support importAssertion related flags * typescript related: `typescript` >= 4.5 * babel related: `@babel/plugin-syntax-import-assertions` * lint parser: `@typescript-eslint/parser` Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
5 lines
103 B
TypeScript
5 lines
103 B
TypeScript
import data from '../data' assert { type: 'json' }
|
|
|
|
export default function Ts() {
|
|
return data.foo
|
|
}
|