Skip to content

Commit

Permalink
feat(): support widget custom editor
Browse files Browse the repository at this point in the history
  • Loading branch information
SailorF committed Jul 31, 2024
1 parent b871737 commit 40eb559
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/build-next-bricks/src/scanBricks.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ export default async function scanBricks(packageDir) {
if (fullName.includes(".")) {
[editorNamespace, editorName] = fullName.split(".");

if (editorNamespace !== packageName) {
if (
editorNamespace !== packageName &&
packageName !== "widget-editors"
) {
throw new Error(
`Invalid editor: "${fullName}", expecting prefixed with the package name: "${packageName}"`
);
Expand Down

0 comments on commit 40eb559

Please sign in to comment.