mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
chore: comments #132
This commit is contained in:
parent
eab6977e0a
commit
09d531f40c
@ -24,6 +24,14 @@ export default defineConfig({
|
|||||||
// ESM format string
|
// ESM format string
|
||||||
'electron-store': 'export default require("electron-store");',
|
'electron-store': 'export default require("electron-store");',
|
||||||
// Use lib2esm() to easy to convert ESM
|
// Use lib2esm() to easy to convert ESM
|
||||||
|
// Equivalent to
|
||||||
|
/**
|
||||||
|
* sqlite3: () => `
|
||||||
|
* const _M_ = require('sqlite3');
|
||||||
|
* const _D_ = _M_.default || _M_;
|
||||||
|
* export { _D_ as default }
|
||||||
|
* `
|
||||||
|
*/
|
||||||
sqlite3: lib2esm('sqlite3', { format: 'cjs' }),
|
sqlite3: lib2esm('sqlite3', { format: 'cjs' }),
|
||||||
serialport: lib2esm(
|
serialport: lib2esm(
|
||||||
// CJS lib name
|
// CJS lib name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user