refactor: use esbuild instead of vite (#2672)

This commit is contained in:
Himself65
2023-06-02 21:22:09 +08:00
committed by GitHub
parent 94d20f1bdc
commit acda594cba
13 changed files with 111 additions and 80 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env node
import { context } from 'esbuild';
import { definePluginServerConfig } from './utils.mjs';
const plugin = await context({
...definePluginServerConfig('bookmark-block'),
external: ['cheerio', 'electron'],
});
await plugin.watch();