Skip to content

Commit

Permalink
fix: dayjs plugin incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed May 17, 2022
1 parent 7c84858 commit 32de1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/generateCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const generateCode = (plugins: string[] = []) => {
return ['', `import ${dayjs} from "dayjs"`]
.concat(
plugins?.map((plugin) => {
return `import ${plugin} from "dayjs/esm/plugin/${plugin}";`
return `import ${plugin} from "dayjs/plugin/${plugin}";`
}))
.concat(
plugins?.map(plugin => `${dayjs}.extend(${plugin});`))
Expand Down

0 comments on commit 32de1b8

Please sign in to comment.