diff options
Diffstat (limited to 'app/javascript/entrypoints/application.ts')
-rw-r--r-- | app/javascript/entrypoints/application.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/javascript/entrypoints/application.ts b/app/javascript/entrypoints/application.ts new file mode 100644 index 00000000000..1087b1c4cb5 --- /dev/null +++ b/app/javascript/entrypoints/application.ts @@ -0,0 +1,15 @@ +import './public-path'; +import main from 'mastodon/main'; + +import { start } from '../mastodon/common'; +import { loadLocale } from '../mastodon/locales'; +import { loadPolyfills } from '../mastodon/polyfills'; + +start(); + +loadPolyfills() + .then(loadLocale) + .then(main) + .catch((e: unknown) => { + console.error(e); + }); |