Open Irinova opened 1 month ago
Rollup has the option external
to exclude files or dependencies from the bundle: https://rollupjs.org/configuration-options/#external
You can use something like this:
rollupOptions: {
external: ['react'],
output: {
globals: {
react: 'React',
},
},
},
I need only native web-components without react libs in build file. Is it possible to do that? My Vite config:
index.jsx: