diff --git a/.github/workflows/deploy-package.yml b/.github/workflows/deploy-package.yml index db813228e..72afdad09 100644 --- a/.github/workflows/deploy-package.yml +++ b/.github/workflows/deploy-package.yml @@ -2,9 +2,9 @@ name: Build Package Modeler on: pull_request: types: [opened, reopened, synchronize, edited, closed] - workflow_dispatch: + workflow_dispatch: jobs: run_deploy: name: Run Build PM4-workflow - uses: processmaker/processmaker/.github/workflows/deploy-pm4.yml@develop + uses: processmaker/processmaker/.github/workflows/deploy-pm4.yml@vite-js-repos secrets: inherit diff --git a/vite.config.js b/vite.config.js index 80c83bc31..4f3231c17 100644 --- a/vite.config.js +++ b/vite.config.js @@ -36,6 +36,7 @@ export default defineConfig({ }, build: { cssCodeSplit: false, + sourcemap: true, lib: { entry: resolve(__dirname, 'src/components/index.js'), name: libraryName, @@ -44,7 +45,7 @@ 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 @@ -52,6 +53,7 @@ export default defineConfig({ globals: { vue: 'Vue', moment: 'moment', + 'moment-timezone': 'moment-timezone', }, }, },