Skip to content

Commit 1a4848e

Browse files
committed
resolve esbuild warning
1 parent bd98b4e commit 1a4848e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildTsPlugin.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { analyzeMetafile } from 'esbuild'
55
const result = await buildTsPlugin('typescript', undefined, undefined, {
66
minify: !process.argv.includes('--watch'),
77
metafile: true,
8+
define: {
9+
'import.meta': 'null',
10+
},
811
banner: {
912
js: 'let ts, tsFull;',
1013
// js: 'const log = (...args) => console.log(...args.map(a => JSON.stringify(a)))',

0 commit comments

Comments
 (0)