mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 00:21:09 -07:00
fix(ide): polyfill import.meta.url for cjs build (#7279)
This commit is contained in:
@@ -43,6 +43,12 @@ async function main() {
|
||||
outfile: 'dist/extension.cjs',
|
||||
external: ['vscode'],
|
||||
logLevel: 'silent',
|
||||
banner: {
|
||||
js: `const import_meta = { url: require('url').pathToFileURL(__filename).href };`,
|
||||
},
|
||||
define: {
|
||||
'import.meta.url': 'import_meta.url',
|
||||
},
|
||||
plugins: [
|
||||
/* add to the end of plugins array */
|
||||
esbuildProblemMatcherPlugin,
|
||||
|
||||
Reference in New Issue
Block a user