Convert from Webpack to Vite (#34450)
Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
parent
a5a2c6dc7e
commit
c4f47adb49
100 changed files with 2031 additions and 7424 deletions
9
app/javascript/mastodon/common.ts
Normal file
9
app/javascript/mastodon/common.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
export function start() {
|
||||
try {
|
||||
Rails.start();
|
||||
} catch {
|
||||
// If called twice
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue