the module system used to drive the cocos engine and project scripts.
we use node version 18.x
install the dependency
npm install
fetch the source code of systemjs and compile the systemjs extras.
npm run init
build module system
const { build } = require('@cocos/module-system');
const { join } = require('path');
(async function () {
await build({
out: join(__dirname, './system.bundle.js'),
sourceMap: false,
minify: false,
platform: 'windows'
});
})();