PlayBuild
An in-editor compiler, bundler and package manager for the PlayCanvas editor that adds support for ES Modules, JSX plus all the usual features of modern web tooling .
What this means?
With PlayBuild installed you can import and use modules in your code…
import config from './config'
import { utils } from '../utils/math'
import React from 'react'
External libraries
It also adds a dedicated package manager so you can install any 3rd party library from npm from the code editor…
What else?
PlayBuild is built around a compiler/bundler which concatenates and optionally minifies your projects code. This can result in faster start up times due to smaller files and less network overhead. It’ll also remove any dead code you don’t use to keep your builds as light as possible
Configurable
You can also configure the bundler depending on your needs. It features a many of the options found in WebPack and Esbuild such as minification and tree-shaking.
What about TypeScript?
Although you can use TypeScript in your PlayBuild projects and it will compile correctly, the code editor used in PlayCanvas is not (yet) configured to handle typescript files. See the docs for more information.