Check that scratch-render and scratch-vm are using the right versions

This commit is contained in:
Thomas Weber committed 2020-08-02 17:07:52 -05:00
1 parent 5ee3b6a75d
commit 0fb35e5cfb
4 files changed
+23 -4

No files matched your search

+1 -2
View File
@@ -1,5 +1,4 @@
// must be first for progress bar to work
import './tw-hacky-progress-bar';
import './tw-imports';
import ReactDOM from 'react-dom';
import React from 'react';
+1 -2
View File
@@ -1,5 +1,4 @@
// must be first for progress bar to work
import './tw-hacky-progress-bar';
import './tw-imports';
import ReactDOM from 'react-dom';
import React from 'react';
+4
View File
@@ -0,0 +1,4 @@
// this should be the first file imported by all entry points
// the order of these imports does matter
import './tw-hacky-progress-bar/index.js';
import './tw-self-check/index.js';
+17
View File
@@ -0,0 +1,17 @@
// Check our dependencies to make sure we are using the TurboWarp versions forks.
// This is a development tool -- users should never see these messages.
/* eslint-disable */
import VirtualMachine from 'scratch-vm';
import RenderWebGL from 'scratch-render';
if (!VirtualMachine.isTurboWarp) {
alert('The installed scratch-vm is not the TurboWarp fork.');
console.error('The installed scratch-vm is not the TurboWarp fork.');
}
if (!RenderWebGL.isTurboWarp) {
alert('The installed scratch-render is not the TurboWarp fork.');
console.error('The installed scratch-render is not the TurboWarp fork.');
}