@cocos/module-system
TypeScript icon, indicating that this package has built-in type declarations

0.0.19 • Public • Published

@cocos/module-system

the module system used to drive the cocos engine and project scripts.

Setup the Develepment environment

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

How to use @cocos/module-system

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'
    });
})();

Readme

Keywords

none

Package Sidebar

Install

npm i @cocos/module-system

Weekly Downloads

5

Version

0.0.19

License

ISC

Unpacked Size

113 kB

Total Files

55

Last publish

Collaborators

  • cocos-creator
  • pp_pro
  • shrinktofit
  • devhacker520