From 6ce629c58f8be228c924a7d8e252de6c259f2a91 Mon Sep 17 00:00:00 2001 From: Florian Gareis Date: Thu, 20 May 2021 17:44:03 +0200 Subject: [PATCH] Change vue2 module system to commonjs Fixes production build issues with vue2 cli --- packages/vue2/vue2-vanilla/rollup.config.js | 4 ++-- packages/vue2/vue2/rollup.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vue2/vue2-vanilla/rollup.config.js b/packages/vue2/vue2-vanilla/rollup.config.js index 45abb6419..14d24b140 100644 --- a/packages/vue2/vue2-vanilla/rollup.config.js +++ b/packages/vue2/vue2-vanilla/rollup.config.js @@ -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 }, @@ -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, diff --git a/packages/vue2/vue2/rollup.config.js b/packages/vue2/vue2/rollup.config.js index a5a60168c..515c0d177 100644 --- a/packages/vue2/vue2/rollup.config.js +++ b/packages/vue2/vue2/rollup.config.js @@ -8,7 +8,7 @@ const buildFormats = [ input: 'src/index.ts', output: { file: 'lib/jsonforms-vue2.js', - format: 'esm', + format: 'commonjs', exports: 'named', sourcemap: true }, @@ -16,7 +16,7 @@ const buildFormats = [ plugins: [ typescript({ check: false, // types are incompatible with Vue3 - module: 'esnext', + module: 'commonjs', tsconfig: 'tsconfig.json', tsconfigOverride: { include: null,