mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
extended external dependencies
This commit is contained in:
parent
58e1b12121
commit
fd3da848ba
@ -2,6 +2,7 @@ import path from 'path'
|
|||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
|
|
||||||
import alias from '@rollup/plugin-alias'
|
import alias from '@rollup/plugin-alias'
|
||||||
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import typescript from '@rollup/plugin-typescript'
|
import typescript from '@rollup/plugin-typescript'
|
||||||
import { dts } from 'rollup-plugin-dts'
|
import { dts } from 'rollup-plugin-dts'
|
||||||
import postcss from 'rollup-plugin-postcss'
|
import postcss from 'rollup-plugin-postcss'
|
||||||
@ -20,14 +21,19 @@ export default [
|
|||||||
{
|
{
|
||||||
file: 'dist/index.esm.js',
|
file: 'dist/index.esm.js',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: 'dist/index.cjs',
|
file: 'dist/index.cjs',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
aliasConfig,
|
aliasConfig,
|
||||||
|
resolve({
|
||||||
|
extensions: ['.ts', '.tsx'],
|
||||||
|
}),
|
||||||
postcss({
|
postcss({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
}),
|
}),
|
||||||
@ -65,12 +71,22 @@ export default [
|
|||||||
'react-image-crop/dist/ReactCrop.css',
|
'react-image-crop/dist/ReactCrop.css',
|
||||||
'react-colorful',
|
'react-colorful',
|
||||||
'leaflet.locatecontrol/dist/L.Control.Locate.css',
|
'leaflet.locatecontrol/dist/L.Control.Locate.css',
|
||||||
|
'yet-another-react-lightbox',
|
||||||
|
'react-photo-album',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: 'src/index.tsx',
|
input: 'src/index.tsx',
|
||||||
output: [{ file: 'dist/index.d.ts', format: 'es' }],
|
output: [{ file: 'dist/index.d.ts', format: 'es' }],
|
||||||
plugins: [aliasConfig, dts()],
|
plugins: [
|
||||||
external: [/\.css$/],
|
aliasConfig,
|
||||||
|
dts({
|
||||||
|
respectExternal: true,
|
||||||
|
compilerOptions: {
|
||||||
|
skipLibCheck: true,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: [/\.css$/, /\.d\.ts$/], // ✅ `.d.ts` als extern behandeln
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user