Skip to content

Commit

Permalink
fix(typo): hasDefaultExport -> rewriteDefault (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubugeeei committed Apr 21, 2024
1 parent 5ae36bc commit 149f13b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/online-book/src/10-minimum-example/090-minimum-sfc.md
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ import { parse } from '@babel/parser'
import MagicString from 'magic-string'
// .
// .
export function hasDefaultExport(input: string): boolean {
export function rewriteDefault(input: string, as: string): string {
// .
// .
const s = new MagicString(input)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ import { parse } from '@babel/parser'
import MagicString from 'magic-string'
// .
// .
export function hasDefaultExport(input: string): boolean {
export function rewriteDefault(input: string, as: string): string {
// .
// .
const s = new MagicString(input)
Expand Down

0 comments on commit 149f13b

Please sign in to comment.