fix: recognize globally registered components
This commit is contained in:
@@ -367,6 +367,12 @@ export async function startServer(opts: ServeOptions): Promise<RunningServer> {
|
||||
externalRoutes: pluginContributions.routes,
|
||||
middlewareFiles: pluginContributions.middleware,
|
||||
});
|
||||
// UI and plugin components are intentionally registered application-wide;
|
||||
// using them without a source import is not an implicit-import diagnostic.
|
||||
setCompileImportOptions(appRoot, {
|
||||
...importConfig,
|
||||
globalComponents: router.components.map((component) => component.name),
|
||||
});
|
||||
const styleEntry = opts.styleEntry ?? null;
|
||||
|
||||
const devToolbarConfig = resolveDevToolbarConfig(mode, opts.devToolbar);
|
||||
|
||||
Reference in New Issue
Block a user