utopia-ui/rollup.config.js
2024-11-02 22:45:29 +01:00

39 lines
738 B
JavaScript

import postcss from 'rollup-plugin-postcss'
import typescript from 'rollup-plugin-typescript2'
export default {
input: 'src/index.tsx',
output: [
{
dir: 'dist/',
format: 'esm',
exports: 'named',
sourcemap: true,
strict: false,
},
],
plugins: [
postcss({
plugins: [],
}),
typescript(),
],
external: [
'react',
'react-dom',
'leaflet',
'react-leaflet',
'react-toastify',
'react-string-replace',
'react-toastify/dist/ReactToastify.css',
'tw-elements',
'react-router-dom',
'react-leaflet-cluster',
'@tanstack/react-query',
'tributejs',
'prop-types',
'leaflet/dist/leaflet.css',
'@heroicons/react/20/solid',
],
}