refactor: use esbuild instead of vite (#2672)

(cherry picked from commit acda594cba)
This commit is contained in:
Himself65
2023-06-02 21:22:09 +08:00
committed by Alex Yang
parent 3676d6c3f0
commit 7e989ae8cb
13 changed files with 111 additions and 80 deletions
+11
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();