Call vm.convertToPackagedRuntime if it exists

In the future, the VM may use this to apply certain optimizations that it can't normally apply due to the editor
This commit is contained in:
Thomas Weber committed 2022-02-12 16:07:20 -06:00
1 parent 239010c7f5
commit 8bb2620320
1 file changed
+3
+3
View File
@@ -313,6 +313,9 @@ class Scaffolding extends EventTarget {
this.vm.on('PROJECT_RUN_STOP', () => this.dispatchEvent(new Event('PROJECT_RUN_STOP')));
// TurboWarp-specific VM extensions
if (this.vm.convertToPackagedRuntime) {
this.vm.convertToPackagedRuntime();
}
if (this.vm.setStageSize) {
this.vm.setStageSize(this.width, this.height);
}