Skip to content

Commit cf45676

Browse files
committed
build: update configuration
1 parent 9a35bd8 commit cf45676

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

rollup.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import typescript from '@rollup/plugin-typescript'
2+
import replace from '@rollup/plugin-replace'
23
import { readFileSync } from 'node:fs'
34
import { dirname } from 'node:path'
45

@@ -22,6 +23,9 @@ export default [
2223
exclude: ['**/__tests__/**'],
2324
tsconfig: './tsconfig.cjs.json',
2425
}),
26+
replace({
27+
__COREUI_VERSION__: `v${process.env.npm_package_version}`
28+
})
2529
],
2630
},
2731
{
@@ -40,6 +44,9 @@ export default [
4044
exclude: ['**/__tests__/**'],
4145
tsconfig: './tsconfig.esm.json',
4246
}),
47+
replace({
48+
__COREUI_VERSION__: `v${process.env.npm_package_version}`
49+
})
4350
],
4451
},
4552
{
@@ -57,6 +64,9 @@ export default [
5764
exclude: ['**/__tests__/**'],
5865
tsconfig: './tsconfig.umd.json',
5966
}),
67+
replace({
68+
__COREUI_VERSION__: `v${process.env.npm_package_version}`
69+
})
6070
],
6171
},
6272
]

0 commit comments

Comments
 (0)