Skip to content

Commit d7d6b97

Browse files
committed
try fix potential react bundling issue
1 parent c0290a9 commit d7d6b97

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linn-it/linn-form-components-library",
3-
"version": "31.0.0",
3+
"version": "31.1.0-alpha",
44
"private": false,
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",

rollup.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ export default {
1313
{ file: pkg.main, format: 'cjs', sourcemap: true },
1414
{ file: pkg.module, format: 'es', sourcemap: true }
1515
],
16+
external: id =>
17+
['react', 'react-dom', 'react/jsx-runtime', 'react-is'].some(
18+
pkg => id === pkg || id.startsWith(pkg + '/')
19+
),
1620
plugins: [
1721
peerDepsExternal(),
1822
json(),

0 commit comments

Comments
 (0)