react build
This commit is contained in:
parent
348d576ff3
commit
b5914a3f12
2 changed files with 6 additions and 13 deletions
|
|
@ -14,7 +14,7 @@ export default defineConfig({
|
|||
lib: {
|
||||
entry: resolve(__dirname, 'src', 'index.js'),
|
||||
formats: ['es', 'cjs'],
|
||||
fileName: (ext) => `index.${ext}.js`,
|
||||
fileName: (ext) => ({ es: 'index.mjs', cjs: 'index.js' }[ext]),
|
||||
// for UMD name: 'GlobalName'
|
||||
},
|
||||
rollupOptions: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue