1.0.0 • Published 2 years ago

@puerts/commonjs v1.0.0

Weekly downloads
-
License
BSD-3 Clause
Repository
-
Last release
2 years ago

PuerTS CommonJS support

  • add require support for JsEnv. Just like what 1.4.0-rc.0 do.
  • 为JsEnv添加global.require,就像1.4.0-rc.0以前的版本一样。
  • this require would call PuerTS's Loader to loadJS
  • 该require会回调PuerTS的Loader进行JS加载。
  • this repo would include the old D.ts for require style development
  • 本仓库同时附带上global.require以及csharppuerts模块的d.ts

Installation | 安装方式

  1. via openupm | 通过openupm
openupm add com.tencent.puerts.commonjs
  1. via PackageMananger in Unity | 通过内置upm
  • use add from git in UnityPackageManager | 在Unity PackageManager处添加该git url:
https://github.com/puerts/puerts-commonjs.git?path=/upm
  • Or use add from disk and select upm directory after cloning this project | 或者clone下本项目后添加项目upm目录为package
  1. install manually | 手动复制安装