feat: update package.json and rollup.config.js to include jotai and enhance bundling configuration

This commit is contained in:
Marco Beretta 2025-07-18 22:38:24 +02:00
parent 412948e025
commit 103af99879
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
4 changed files with 105 additions and 32 deletions

View file

@ -21,6 +21,8 @@ const plugins = [
}),
resolve({
extensions: ['.js', '.jsx', '.ts', '.tsx'],
browser: true,
preferBuiltins: false,
}),
replace({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
@ -65,7 +67,11 @@ export default {
exports: 'named',
},
],
external: [...Object.keys(pkg.peerDependencies || {}), 'react/jsx-runtime'],
external: [
...Object.keys(pkg.peerDependencies || {}),
'react/jsx-runtime',
'react/jsx-dev-runtime',
],
preserveSymlinks: true,
plugins,
onwarn(warning, warn) {