|
| 1 | +//// [tests/cases/compiler/jsxRuntimePragma.ts] //// |
| 2 | + |
| 3 | +=== one.tsx === |
| 4 | +/// <reference path="react16.d.ts" /> |
| 5 | +/* @jsxRuntime classic */ |
| 6 | +import * as React from "react"; |
| 7 | +>React : Symbol(React, Decl(one.tsx, 2, 6)) |
| 8 | + |
| 9 | +export const HelloWorld = () => <h1>Hello world</h1>; |
| 10 | +>HelloWorld : Symbol(HelloWorld, Decl(one.tsx, 3, 12)) |
| 11 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 12 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 13 | + |
| 14 | +export const frag = <><div></div></>; |
| 15 | +>frag : Symbol(frag, Decl(one.tsx, 4, 12)) |
| 16 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 17 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 18 | + |
| 19 | +export const selfClosing = <img src="./image.png" />; |
| 20 | +>selfClosing : Symbol(selfClosing, Decl(one.tsx, 5, 12)) |
| 21 | +>img : Symbol(JSX.IntrinsicElements.img, Decl(react16.d.ts, 2569, 114)) |
| 22 | +>src : Symbol(src, Decl(one.tsx, 5, 31)) |
| 23 | + |
| 24 | +=== two.tsx === |
| 25 | +/// <reference path="react16.d.ts" /> |
| 26 | +/* @jsxRuntime automatic */ |
| 27 | +export const HelloWorld = () => <h1>Hello world</h1>; |
| 28 | +>HelloWorld : Symbol(HelloWorld, Decl(two.tsx, 2, 12)) |
| 29 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 30 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 31 | + |
| 32 | +export const frag = <><div></div></>; |
| 33 | +>frag : Symbol(frag, Decl(two.tsx, 3, 12)) |
| 34 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 35 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 36 | + |
| 37 | +export const selfClosing = <img src="./image.png" />; |
| 38 | +>selfClosing : Symbol(selfClosing, Decl(two.tsx, 4, 12)) |
| 39 | +>img : Symbol(JSX.IntrinsicElements.img, Decl(react16.d.ts, 2569, 114)) |
| 40 | +>src : Symbol(src, Decl(two.tsx, 4, 31)) |
| 41 | + |
| 42 | +=== three.tsx === |
| 43 | +/// <reference path="react16.d.ts" /> |
| 44 | +/* @jsxRuntime classic */ |
| 45 | +/* @jsxRuntime automatic */ |
| 46 | +export const HelloWorld = () => <h1>Hello world</h1>; |
| 47 | +>HelloWorld : Symbol(HelloWorld, Decl(three.tsx, 3, 12)) |
| 48 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 49 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 50 | + |
| 51 | +export const frag = <><div></div></>; |
| 52 | +>frag : Symbol(frag, Decl(three.tsx, 4, 12)) |
| 53 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 54 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 55 | + |
| 56 | +export const selfClosing = <img src="./image.png" />; |
| 57 | +>selfClosing : Symbol(selfClosing, Decl(three.tsx, 5, 12)) |
| 58 | +>img : Symbol(JSX.IntrinsicElements.img, Decl(react16.d.ts, 2569, 114)) |
| 59 | +>src : Symbol(src, Decl(three.tsx, 5, 31)) |
| 60 | + |
| 61 | +=== four.tsx === |
| 62 | +/// <reference path="react16.d.ts" /> |
| 63 | +/* @jsxRuntime automatic */ |
| 64 | +/* @jsxRuntime classic */ |
| 65 | +import * as React from "react"; |
| 66 | +>React : Symbol(React, Decl(four.tsx, 3, 6)) |
| 67 | + |
| 68 | +export const HelloWorld = () => <h1>Hello world</h1>; |
| 69 | +>HelloWorld : Symbol(HelloWorld, Decl(four.tsx, 4, 12)) |
| 70 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 71 | +>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2556, 106)) |
| 72 | + |
| 73 | +export const frag = <><div></div></>; |
| 74 | +>frag : Symbol(frag, Decl(four.tsx, 5, 12)) |
| 75 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 76 | +>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) |
| 77 | + |
| 78 | +export const selfClosing = <img src="./image.png" />; |
| 79 | +>selfClosing : Symbol(selfClosing, Decl(four.tsx, 6, 12)) |
| 80 | +>img : Symbol(JSX.IntrinsicElements.img, Decl(react16.d.ts, 2569, 114)) |
| 81 | +>src : Symbol(src, Decl(four.tsx, 6, 31)) |
| 82 | + |
| 83 | +=== index.ts === |
| 84 | +export * as one from "./one.js"; |
| 85 | +>one : Symbol(one, Decl(index.ts, 0, 6)) |
| 86 | + |
| 87 | +export * as two from "./two.js"; |
| 88 | +>two : Symbol(two, Decl(index.ts, 1, 6)) |
| 89 | + |
| 90 | +export * as three from "./three.js"; |
| 91 | +>three : Symbol(three, Decl(index.ts, 2, 6)) |
| 92 | + |
| 93 | +export * as four from "./four.js"; |
| 94 | +>four : Symbol(four, Decl(index.ts, 3, 6)) |
| 95 | + |
0 commit comments