mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
24 lines
436 B
TypeScript
24 lines
436 B
TypeScript
// @jsx: react-jsx,react-jsxdev
|
|
// @strict: true
|
|
// @module: commonjs
|
|
// @filename: preact.tsx
|
|
/// <reference path="/.lib/react16.d.ts" />
|
|
/* @jsxImportSource preact */
|
|
const a = <>
|
|
<p></p>
|
|
text
|
|
<div className="foo"></div>
|
|
</>
|
|
|
|
export {};
|
|
// @filename: react.tsx
|
|
/// <reference path="/.lib/react16.d.ts" />
|
|
/* @jsxImportSource react */
|
|
import "./preact";
|
|
const a = <>
|
|
<p></p>
|
|
text
|
|
<div className="foo"></div>
|
|
</>
|
|
|
|
export {}; |