Skip to content

Commit 5b94b74

Browse files
authored
test(babel): externalize react/jsx-runtime to supress warning (#16)
1 parent d9a6950 commit 5b94b74

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/babel/src/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ async function buildWithVite(
752752
async function build(filename: string, code: string, options: PluginOptions): Promise<OutputChunk> {
753753
const bundle = await rolldown({
754754
input: filename,
755+
external: [/^react\/jsx-runtime$/],
755756
plugins: [
756757
{
757758
name: 'virtual',

0 commit comments

Comments
 (0)