Skip to content

Commit 7372150

Browse files
authored
Merge pull request #3186 from rschristian/refactor/externalize-react-jsx-runtime
2 parents 9840eee + a835892 commit 7372150

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-google-maps-api/rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const output = (format) => {
1313
globals: {
1414
react: 'React',
1515
'react-dom': 'ReactDOM',
16+
'react/jsx-runtime': 'ReactJSXRuntime'
1617
},
1718
}
1819

@@ -28,7 +29,7 @@ const output = (format) => {
2829
export default [
2930
{
3031
plugins: [typescript(), nodeResolve(), commonjs()],
31-
external: ['react', 'react-dom'],
32+
external: ['react', 'react-dom', 'react/jsx-runtime'],
3233

3334
input: 'src/index.ts',
3435
output: [...output('cjs'), ...output('umd'), ...output('esm')],

0 commit comments

Comments
 (0)