mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-23 16:54:10 +02:00
Update build.js
This commit is contained in:
@@ -18,6 +18,9 @@ const options = {
|
|||||||
platform: 'node',
|
platform: 'node',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
sourcemap: false,
|
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: [
|
external: [
|
||||||
'*.node',
|
'*.node',
|
||||||
'*.html',
|
'*.html',
|
||||||
|
|||||||
Reference in New Issue
Block a user