feat: fixes #523. Remove the default export from plugins
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { default as HomePagePlugin } from '@backstage/plugin-home-page';
|
||||
import { default as WelcomePlugin } from '@backstage/plugin-welcome';
|
||||
import { default as LighthousePlugin } from '@backstage/plugin-lighthouse';
|
||||
import { plugin as HomePagePlugin } from '@backstage/plugin-home-page';
|
||||
import { plugin as WelcomePlugin } from '@backstage/plugin-welcome';
|
||||
import { plugin as LighthousePlugin } from '@backstage/plugin-lighthouse';
|
||||
export { HomePagePlugin, WelcomePlugin, LighthousePlugin };
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { default } from './plugin';
|
||||
export { plugin } from './plugin';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { createPlugin } from '@backstage/core';
|
||||
import HomePage from 'components/HomePage';
|
||||
|
||||
export default createPlugin({
|
||||
export const plugin = createPlugin({
|
||||
id: 'home-page',
|
||||
register({ router }) {
|
||||
router.registerRoute('/home', HomePage);
|
||||
|
||||
@@ -14,5 +14,5 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { default } from './plugin';
|
||||
export { plugin } from './plugin';
|
||||
export * from './api';
|
||||
|
||||
@@ -19,7 +19,7 @@ import AuditList from './components/AuditList';
|
||||
import AuditView from './components/AuditView';
|
||||
import CreateAudit from './components/CreateAudit';
|
||||
|
||||
export default createPlugin({
|
||||
export const plugin = createPlugin({
|
||||
id: 'lighthouse',
|
||||
register({ router }) {
|
||||
router.registerRoute('/lighthouse', AuditList);
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { default } from './plugin';
|
||||
export { plugin } from './plugin';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { createPlugin } from '@backstage/core';
|
||||
import WelcomePage from 'components/WelcomePage';
|
||||
|
||||
export default createPlugin({
|
||||
export const plugin = createPlugin({
|
||||
id: 'welcome',
|
||||
register({ router, featureFlags }) {
|
||||
router.registerRoute('/', WelcomePage);
|
||||
|
||||
Reference in New Issue
Block a user