mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
fix(tests): Prevent spurious transpilation warnings
For some reason when the debug module loader encounters ES modules it starts to complain about being unable to transpile some ES202x features in other (non-ESM) modules, even though it doesn't normally try to transpile those. Since uncompressed-mode testing is almost exclusively on modern browsers we don't care about transpiling these features, so suppress the warnings instead.
This commit is contained in:
3
tests/bootstrap.js
vendored
3
tests/bootstrap.js
vendored
@@ -122,6 +122,9 @@
|
||||
document.write(
|
||||
'<script src="' + options.root + '/closure/goog/base.js"></script>');
|
||||
|
||||
// Prevent spurious transpilation warnings.
|
||||
document.write('<script>goog.TRANSPILE = "never";</script>');
|
||||
|
||||
// Load dependency graph info from the specified deps files -
|
||||
// typically just build/deps.js. To update deps after changing
|
||||
// any module's goog.requires / imports, run `npm run build:deps`.
|
||||
|
||||
Reference in New Issue
Block a user