mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-05-18 15:47:09 +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';
|
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' }));
|
|
||||||
}
|
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user