Skip to content

Commit

Permalink
Added sourcemaps and externals
Browse files Browse the repository at this point in the history
  • Loading branch information
josechirivella committed Aug 15, 2023
1 parent 86b77d9 commit b68b0c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default defineConfig({
},
build: {
cssCodeSplit: false,
sourcemap: true,
lib: {
entry: resolve(__dirname, 'src/components/index.js'),
name: libraryName,
Expand All @@ -44,14 +45,15 @@ export default defineConfig({
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
external: ['vue', 'moment', '@processmaker'],
external: ['vue', 'moment', 'moment-timezone', '@processmaker'],
output: {
exports: 'named',
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: 'Vue',
moment: 'moment',
'moment-timezone': 'moment-timezone',
},
},
},
Expand Down

0 comments on commit b68b0c5

Please sign in to comment.