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:
Christopher Allen
2022-06-14 22:37:58 +01:00
parent ac2d689618
commit 0bb74a3a64

3
tests/bootstrap.js vendored
View File

@@ -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`.