chore: bundle rollup config as CJS

Allows us to get rid of some rollup@3 magic.
This commit is contained in:
Nico Rehwaldt
2023-03-23 08:37:52 +01:00
committed by Nico Rehwaldt
parent c13e7266c9
commit c6b4a72337
2 changed files with 2 additions and 6 deletions

View File

@ -13,7 +13,7 @@ import {
import path from 'path'; import path from 'path';
const pkg = importPkg(); import pkg from './package.json';
const outputDir = 'dist'; const outputDir = 'dist';
@ -140,7 +140,3 @@ function processTemplate(str, args) {
return replacement; return replacement;
}); });
} }
function importPkg() {
return JSON.parse(readFileSync('./package.json', { encoding:'utf8' }));
}

View File

@ -34,7 +34,7 @@ cp('./assets/bpmn-js.css', dest + '/assets');
console.log('building pre-packaged distributions'); console.log('building pre-packaged distributions');
try { try {
exec('rollup', [ '-c' ], { exec('rollup', [ '-c', '--bundleConfigAsCjs' ], {
stdio: 'inherit' stdio: 'inherit'
}); });
} catch (e) { } catch (e) {