fix: recognize globally registered components
This commit is contained in:
@@ -71,6 +71,13 @@ test("compiler-native reactive elements do not require application imports", ()
|
||||
expect(() => compileWrnArtifacts(page, 5)).not.toThrow();
|
||||
});
|
||||
|
||||
test("globally registered plugin components do not require source imports", () => {
|
||||
const { root, page } = fixture();
|
||||
writeFileSync(page, "page Home { view { <SignIn /> } }");
|
||||
setCompileImportOptions(root, { mode: "explicit", globalComponents: ["SignIn"] });
|
||||
expect(() => compileWrnArtifacts(page, 6)).not.toThrow();
|
||||
});
|
||||
|
||||
test("component examples in comments do not require imports", () => {
|
||||
const { root, page } = fixture();
|
||||
writeFileSync(
|
||||
|
||||
Reference in New Issue
Block a user