DEV: Pass static scripts through Ember CLI (#17373)

All files under `app/assets/javascripts/scripts` will be run through babel, given sourcemaps, and output under `/assets/{name}.js`. This is another step towards removing our sprockets dependence.
This commit is contained in:
David Taylor
2022-07-08 10:13:46 +01:00
committed by GitHub
parent 9dab97de70
commit a084680f1d
13 changed files with 42 additions and 8 deletions

View File

@ -0,0 +1,12 @@
if (!window.WeakMap || !window.Promise || typeof globalThis === "undefined") {
window.unsupportedBrowser = true;
} else {
// Some implementations of `WeakMap.prototype.has` do not accept false
// values and Ember's `isClassicDecorator` sometimes does that (it only
// checks for `null` and `undefined`).
try {
new WeakMap().has(0);
} catch (err) {
window.unsupportedBrowser = true;
}
}