This repo contains any codemods to help with migration of PlayCanvas specific code.
The codemods use jscodeshift and are intended to run with codemod or the codemod vscode extension.
In most cases you can run a codemod over a file using the following
npx codemod [codemod-name] -i "./your-file.js"
- esm-script - codemod for migrating older
pc.createScript()
scripts to their ESM equivalent.