mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-07-02 18:46:45 +08:00
chore: bundle rollup config as CJS
Allows us to get rid of some rollup@3 magic.
This commit is contained in:

committed by
Nico Rehwaldt

parent
c13e7266c9
commit
c6b4a72337
@ -13,7 +13,7 @@ import {
|
||||
|
||||
import path from 'path';
|
||||
|
||||
const pkg = importPkg();
|
||||
import pkg from './package.json';
|
||||
|
||||
const outputDir = 'dist';
|
||||
|
||||
@ -140,7 +140,3 @@ function processTemplate(str, args) {
|
||||
return replacement;
|
||||
});
|
||||
}
|
||||
|
||||
function importPkg() {
|
||||
return JSON.parse(readFileSync('./package.json', { encoding:'utf8' }));
|
||||
}
|
@ -34,7 +34,7 @@ cp('./assets/bpmn-js.css', dest + '/assets');
|
||||
console.log('building pre-packaged distributions');
|
||||
|
||||
try {
|
||||
exec('rollup', [ '-c' ], {
|
||||
exec('rollup', [ '-c', '--bundleConfigAsCjs' ], {
|
||||
stdio: 'inherit'
|
||||
});
|
||||
} catch (e) {
|
||||
|
Reference in New Issue
Block a user