mirror of
https://github.com/flarum/core.git
synced 2025-08-06 00:17:31 +02:00
Rework extension bootstrapping
System JS modules don't execute when they're registered, so we need to import them explicitly. While we're at it, we may as well make the locale bootstrapper a module too.
This commit is contained in:
8
stubs/extension/js/bootstrap.js
vendored
8
stubs/extension/js/bootstrap.js
vendored
@@ -1,8 +0,0 @@
|
||||
import { extend, override } from 'flarum/extension-utils';
|
||||
import app from 'flarum/app';
|
||||
|
||||
app.initializers.add('{{name}}', function() {
|
||||
|
||||
// @todo
|
||||
|
||||
});
|
4
stubs/extension/js/src/main.js
Normal file
4
stubs/extension/js/src/main.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import { extend } from 'flarum/extend';
|
||||
import app from 'flarum/app';
|
||||
|
||||
// TODO
|
Reference in New Issue
Block a user