esbuild-plugin-http-fetch
example
code:sh
code:test.js
// test/index.js
let {outputFiles} = await build({
bundle: true,
jsxFactory: 'h',
write: false
})
console.log(outputFiles0.text) stop()
code:hello.jsx
// test/hello.jsx
let app = <h1>Hello, world!</h1>
let html = render(app)
console.log('expected: %s', '<h1>Hello, world!</h1>')
console.log('actual: %s', html)
CSS importも使えるのだろうか?
2021-07-06 05:50:36 成功した!
code:sh
code:test_css.ts
const {outputFiles} = await build({
bundle: true,
minify: true,
write: false,
});
console.log(outputFiles0.text); stop();