profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/antfu/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Anthony Fu antfu undefined https://antfu.me A ship in harbor is safe, but that is not what ships are built for.

antfu/broz 204

A simple, frameless browser for screenshots

antfu/100 136

My 100-day project of exploring design, compform, and new things.

antfu/antfu.me 113

My personal website

antfu/1990-script 94

Make your GitHub history back to 1990

antfu/awesome-cn-cafe-web 31

☕️ Web App for Awesome CN Café

antfu/cpwp 19

Chinese Programmer Wrong Pronunciation

antfu/codemirror-theme-vars 8

A customizable CodeMirror theme using CSS variables

antfu/bumpp 6

Interactive CLI that bumps your version numbers and more

antfu/bopomofo 5

Translate 漢字 to ㄅㄆㄇㄈ(注音)

push eventvueuse/vueuse

Nurettin Kaya

commit sha ea241ca80407447a3a3524fde123b1960f532664

chore: properly generate indexes.json on windows (#773)

view details

push time in a day

delete branch vueuse/vueuse

delete branch : chore/proper-index-path-on-windows

delete time in a day

push eventvitejs/vite

patak

commit sha 06eb57e2f56060ab18d09f0c17ae97daedb4cd56

chore: correct async modules test cases (#4991)

view details

push time in a day

PR merged vitejs/vite

chore: correct async modules test cases test

Description

The html playground has an inline plugin that I failed to account when added these test cases. As with other .html in this playground, there shouldn't be a doctype, head, etc. This doesn't change the validity of the test cases.


What is the purpose of this pull request? <!-- (put an "X" next to an item) -->

  • [ ] Bug fix
  • [ ] New Feature
  • [ ] Documentation update
  • [x] Other
+12 -28

0 comment

2 changed files

patak-js

pr closed time in a day

push eventantfu/unplugin-auto-import

Ivan Demchuk

commit sha 5df0e6746e9bd405b4b6d12805e94bf6e5c266bd

feat: add triggerRef to the composition api methods (#38) * Add triggerRef to composition-api methods * Update test

view details

push time in a day

PR merged antfu/unplugin-auto-import

feat: add triggerRef to the composition api methods

triggerRef is supported by composition-api: https://github.com/vuejs/composition-api/blob/07cad7236ad1201f409541c5073c8d4fd19c900e/src/reactivity/index.ts#L18

+2 -1

0 comment

2 changed files

Demivan

pr closed time in a day

PullRequestReviewEvent

push eventantfu/vite-plugin-inspect

userquin

commit sha 9acaab3515702367f4d14c00f7412d3dde6fd6c6

chore: deps and wording (#6) * fix: add missing `@vue/compiler-sfc` dev dependency * chore: wording on `virtual` check text: `virutal`

view details

push time in 2 days

push eventantfu/vite-plugin-inspect

Anthony Fu

commit sha ea9e561ba08a7e3977af7fa605bdc158dc61d534

chore: setup stackblitz config

view details

push time in 2 days

push eventantfu/vite-plugin-inspect

Anthony Fu

commit sha c970dc2562db0b4ff0b32bff319afc5fa3060db4

chore: update deps

view details

push time in 2 days

Pull request review commentantfu/vite-plugin-inspect

fix: windows not working

 function PluginInspect(options: Options = {}): Plugin {    const transformMap: Record<string, TransformInfo[]> = {}   const idMap: Record<string, string> = {}+  const windowsIdMap: Record<string, string> = {}++  function resolveArguments(transform: boolean, args: any[]) {

In this case, I think we could just have it as normalizeId(id: string)

userquin

comment created time in 3 days

Pull request review commentantfu/vite-plugin-inspect

fix: windows not working

 function PluginInspect(options: Options = {}): Plugin {    const transformMap: Record<string, TransformInfo[]> = {}   const idMap: Record<string, string> = {}+  const windowsIdMap: Record<string, string> = {}++  function resolveArguments(transform: boolean, args: any[]) {+    if (transform) {+      const code = args[0]+      const id = args[1]+      if (isWindows && id && id.startsWith(WindowResolveIdPrefix))+        return new Array<any>(code, windowsIdMap[id], ...args.slice(2))+    }+    else {+      const id = args[0]+      if (isWindows && id && id.startsWith(WindowResolveIdPrefix))+        return new Array<any>(windowsIdMap[id], ...args.slice(1))+    }++    return args+  }    function hijackPlugin(plugin: Plugin) {     if (plugin.transform) {       debug('hijack plugin transform', plugin.name)       const _transform = plugin.transform       plugin.transform = async function(this: any, ...args: any[]) {-        const code = args[0]-        const id = args[1]+        const resolvedArgs = resolveArguments(true, args)+        const code = resolvedArgs[0]+        const id = resolvedArgs[1]+         const start = Date.now()-        const _result = await _transform.apply(this, args as any)+        const _result = await _transform.apply(this, resolvedArgs as any)

I still don't think we should mutate the args passing to plugins.

userquin

comment created time in 3 days

Pull request review commentantfu/vite-plugin-inspect

fix: windows not working

   "dependencies": {     "debug": "^4.3.2",     "sirv": "^1.0.17",-    "ufo": "^0.7.9"+    "ufo": "^0.7.9",+    "vue": "^3.2.12"

Why is this?

userquin

comment created time in 3 days

PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent

pull request commentvitejs/vite

chore(deps): update dependency ws to v8

Guess we will need to adopt those changes. But not in hurry, open to contribution.

renovate[bot]

comment created time in 3 days

pull request commentvitejs/vite

feat: expose `searchForWorkspaceRoot` util

Sorry I don't currently have the bandwidth to write the docs, maybe later in another PR or contribution welcome.

antfu

comment created time in 3 days

push eventvitejs/vite

粒粒橙

commit sha 5491143be0b4214d2dab91076a85739d6d106481

fix(plugin-legacy): fix type errors (#4762)

view details

push time in 3 days

PR merged vitejs/vite

fix(plugin-legacy): fix type errors

<!-- Thank you for contributing! -->

Description

Fixed multiple typecheck errors from TypeScript.

Additional context

plugin-legacy/index.js l180: the return type is incomplete (and having a syntax error). plugin-legacy/index.js l547: polyfillChunk could be type RollupWatcher which doesn't have the output property.

<!-- e.g. is there anything you'd like reviewers to focus on? -->


What is the purpose of this pull request? <!-- (put an "X" next to an item) -->

  • [x] Bug fix
  • [ ] New Feature
  • [ ] Documentation update
  • [ ] Other

Before submitting the PR, please make sure you do the following

  • [x] Read the Contributing Guidelines.
  • [x] Read the Pull Request Guidelines and follow the Commit Convention.
  • [x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • [ ] Ideally, include relevant tests that fail without this PR but pass with it.
+4 -2

0 comment

1 changed file

llc1123

pr closed time in 3 days

PullRequestReviewEvent

Pull request review commentvitejs/vite

fix(plugin-legacy): fix type errors

 async function buildPolyfillChunk(       }     }   })-  const polyfillChunk = (Array.isArray(res) ? res[0] : res).output[0]
  const polyfillChunk = (Array.isArray(res) ? res[0] : res).output?.[0]
llc1123

comment created time in 3 days

PullRequestReviewEvent
PullRequestReviewEvent

delete branch antfu/vite-plugin-inspect

delete branch : revert-3-fix/windows

delete time in 3 days

push eventantfu/vite-plugin-inspect

Anthony Fu

commit sha 509d647a61386c2141207aa8766a1b05935d4fc4

revert: fix: plugin not working on windows (#4)

view details

push time in 3 days

PR merged antfu/vite-plugin-inspect

revert: fix: plugin not working on windows

Reverts antfu/vite-plugin-inspect#3

+3 -32

0 comment

1 changed file

antfu

pr closed time in 3 days