Convert from Webpack to Vite (#34450)
Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user