antfu-collective / vitesse-webext

⚡️ WebExtension Vite Starter Template
MIT License
2.93k stars 225 forks source link

branch: refactor/mv3 use tsx #112

Closed xlzy520 closed 1 year ago

xlzy520 commented 1 year ago

Describe the bug

image image image

Reproduction

file path:vitesse-webext/src/popup/Popup.vue

update script lang

<script setup lang="tsx">
import { storageDemo } from '~/logic/storage'

function openOptionsPage() {
  browser.runtime.openOptionsPage()
}
</script>

System Info

System:
    OS: macOS 11.7.1
    CPU: (8) arm64 Apple M1
    Memory: 103.06 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.14.0 - /usr/local/bin/node
    Yarn: 1.22.5 - ~/.yarn/bin/yarn
    npm: 8.3.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 108.0.5359.124
    Edge: 103.0.1264.71
    Firefox: 106.0
    Safari: 14.1.2

Used Package Manager

pnpm

Validations

xlzy520 commented 1 year ago
image
xlzy520 commented 1 year ago

我先用h函数进行处理jsx绕过了

tmkx commented 1 year ago

the main branch should have solve this issue. you can reopen it if not, thanks! :)