Update build.js
This commit is contained in:
parent
83cdef298b
commit
c770a1746d
|
|
@ -18,6 +18,9 @@ const options = {
|
|||
platform: 'node',
|
||||
format: 'esm',
|
||||
sourcemap: false,
|
||||
banner: {
|
||||
js: 'import { createRequire as topLevelCreateRequire } from "module"; import ___url___ from "url"; const require = topLevelCreateRequire(import.meta.url); const __filename = ___url___.fileURLToPath(import.meta.url); const __dirname = ___url___.fileURLToPath(new URL(".", import.meta.url));',
|
||||
},
|
||||
external: [
|
||||
'*.node',
|
||||
'*.html',
|
||||
|
|
|
|||
Loading…
Reference in New Issue