Skip to content

Commit

Permalink
fix(emmet, pug): browser stub missing create() function
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Oct 25, 2023
1 parent 641ca12 commit 3c7137d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/emmet/src/empty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import type { Service } from '@volar/language-service';

console.warn('volar-service-emmet: this module is not yet supported for web.');

export default (): Service => () => ({});
export function create(): Service {
return () => ({});
}

export default create;
6 changes: 5 additions & 1 deletion packages/pug/src/empty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import type { Service } from '@volar/language-service';

console.warn('volar-service-pug: this module is not yet supported for web.');

export default (): Service => () => ({});
export function create(): Service {
return () => ({});
}

export default create;

0 comments on commit 3c7137d

Please sign in to comment.