Apps inside Canva
Development guides
Designing your app
Bundling apps
How to generate a JavaScript bundle for an app.
When you're ready to submit an app for review, you need to upload the app to the Developer Portal(opens in a new tab or window) as a standalone JavaScript bundle. The starter kit includes a build script that handles this for you.
How to generate a bundle
-
Navigate into the starter kit:
cd canva-apps-sdk-starter-kitBASH -
Run the following command:
canva apps buildBASHAn
app.jsfile will appear in thedistdirectory.
How to upload a bundle
- Log in to the Developer Portal.
- Navigate to an app via the Your apps(opens in a new tab or window) page.
- Go to Inside Canva > Code upload and, under App source, select JavaScript bundle.
- Upload the
app.jsfile.
Known limitations
- Canva doesn't support code-splitting, so all code and dependencies must be bundled in a single file. (You can still organize your code into separate files.
@canva/app-scriptstakes care of the bundling for you.) - The size of the app bundle must not exceed 5 MB.