Skip to content

Commit 4059690

Browse files
committed
build: update configuration
1 parent 7e0eae2 commit 4059690

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import commonjs from '@rollup/plugin-commonjs'
22
import typescript from '@rollup/plugin-typescript'
3-
import external from 'rollup-plugin-peer-deps-external'
43
import resolve from '@rollup/plugin-node-resolve'
54
import vue from 'rollup-plugin-vue'
65
import { readFileSync } from 'node:fs'
76

87
const pkg = JSON.parse(readFileSync(new URL('package.json', import.meta.url)))
98

109
const plugins = [
11-
external(),
1210
resolve({
1311
dedupe: ['vue'],
1412
extensions: ['.js', '.ts', '.json', '.vue'],
@@ -32,6 +30,7 @@ export default [
3230
exports: 'named',
3331
sourcemap: true,
3432
},
33+
external: ['@coreui/chartjs', 'chart.js', 'vue'],
3534
plugins: [...plugins, vue()],
3635
},
3736
// SSR build.
@@ -43,6 +42,7 @@ export default [
4342
exports: 'named',
4443
sourcemap: true,
4544
},
45+
external: ['@coreui/chartjs', 'chart.js', 'vue'],
4646
plugins: [...plugins, vue({ template: { optimizeSSR: true } })],
4747
},
4848
]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy