Skip to content

Commit

Permalink
Use classic mode for jsx runtime for meta build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed May 18, 2024
1 parent aa82f57 commit 4f72093
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const wwwMappings = {
'prismjs/components/prism-swift': 'prism-swift',
'prismjs/components/prism-typescript': 'prism-typescript',
'react-dom': 'ReactDOMComet',
'react/jsx-runtime': 'jsx-runtime',
};

/**
Expand Down Expand Up @@ -193,7 +192,7 @@ async function build(name, inputFile, outputPath, outputFile, isProd, format) {
tsconfig: path.resolve('./tsconfig.build.json'),
},
],
['@babel/preset-react', {runtime: 'automatic'}],
['@babel/preset-react', {runtime: isWWW ? 'classic' : 'automatic'}],
],
}),
{
Expand Down

0 comments on commit 4f72093

Please sign in to comment.