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,