Skip to content

Commit

Permalink
Change vue2 module system to commonjs
Browse files Browse the repository at this point in the history
Fixes production build issues with vue2 cli
  • Loading branch information
TheZoker authored and sdirix committed May 20, 2021
1 parent b30cb75 commit 6ce629c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/vue2/vue2-vanilla/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const buildFormats = [
input: 'src/index.ts',
output: {
file: 'lib/jsonforms-vue2-vanilla.js',
format: 'esm',
format: 'commonjs',
exports: 'named',
sourcemap: true
},
Expand All @@ -25,7 +25,7 @@ const buildFormats = [
plugins: [
typescript({
check: false, // types are incompatible with Vue3
module: 'esnext',
module: 'commonjs',
tsconfig: 'tsconfig.json',
tsconfigOverride: {
include: null,
Expand Down
4 changes: 2 additions & 2 deletions packages/vue2/vue2/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ const buildFormats = [
input: 'src/index.ts',
output: {
file: 'lib/jsonforms-vue2.js',
format: 'esm',
format: 'commonjs',
exports: 'named',
sourcemap: true
},
external: ['vue', '@vue/composition-api', '@jsonforms/core', 'lodash/maxBy'],
plugins: [
typescript({
check: false, // types are incompatible with Vue3
module: 'esnext',
module: 'commonjs',
tsconfig: 'tsconfig.json',
tsconfigOverride: {
include: null,
Expand Down

0 comments on commit 6ce629c

Please sign in to comment.