mantou132 / gem

💎 Lightweight WebApp development library using custom elements
https://gemjs.org
MIT License
19 stars 2 forks source link

Add swc plugin #118

Open mantou132 opened 10 months ago

mantou132 commented 10 months ago

名字 swc-plugin-gem,有独立配置文件,也供 vscode plugin 作为命令使用

mantou132 commented 6 months ago

eslint/prettier plugin? support bundless:

mantou132 commented 6 months ago

必须配置 HTTP 缓存。

static assets prefetch:

import src from 'xxxx.png?preload'
import src from 'xxxx.png?url'
Promise.allSettled([
  fetch('/src '),
])

如果需要等待资源,则使用:

import src from 'xxxx.png?await-preload'
import src from 'xxxx.png?url'
await Promise.allSettled([
  fetch('/src').then(e => e.arrayBuffer()),
])