Convert easy entrypoints files to Typescript (#30102)
This commit is contained in:
parent
4f4b77920e
commit
36909065b5
8 changed files with 32 additions and 13 deletions
15
app/javascript/entrypoints/application.ts
Normal file
15
app/javascript/entrypoints/application.ts
Normal file
|
@ -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);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue