mirror of
https://github.com/developit/microbundle.git
synced 2026-01-25 14:06:50 +00:00
Add JSX test
This commit is contained in:
parent
b38b8603b7
commit
fa91a2284c
@ -20,6 +20,24 @@ Build output to dist:
|
||||
295 B: demo.umd.js"
|
||||
`;
|
||||
|
||||
exports[`fixtures jsx 1`] = `
|
||||
"jsx
|
||||
dist
|
||||
jsx.js
|
||||
jsx.js.map
|
||||
jsx.m.js
|
||||
jsx.m.js.map
|
||||
jsx.umd.js
|
||||
jsx.umd.js.map
|
||||
index.js
|
||||
|
||||
|
||||
Build output to dist:
|
||||
211 B: jsx.js
|
||||
212 B: jsx.m.js
|
||||
283 B: jsx.umd.js"
|
||||
`;
|
||||
|
||||
exports[`fixtures ts-demo 1`] = `
|
||||
"ts-demo
|
||||
dist
|
||||
|
||||
12
test/fixtures/jsx/index.js
vendored
Normal file
12
test/fixtures/jsx/index.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
const h = (tag, props, ...children) => ({ tag, props, children });
|
||||
|
||||
export default class Foo {
|
||||
render() {
|
||||
return (
|
||||
<div id="app">
|
||||
<h1>Hello, World!</h1>
|
||||
<p>A JSX demo.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user