mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -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',
|
outfile: 'dist/extension.cjs',
|
||||||
external: ['vscode'],
|
external: ['vscode'],
|
||||||
logLevel: 'silent',
|
logLevel: 'silent',
|
||||||
|
banner: {
|
||||||
|
js: `const import_meta = { url: require('url').pathToFileURL(__filename).href };`,
|
||||||
|
},
|
||||||
|
define: {
|
||||||
|
'import.meta.url': 'import_meta.url',
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
/* add to the end of plugins array */
|
/* add to the end of plugins array */
|
||||||
esbuildProblemMatcherPlugin,
|
esbuildProblemMatcherPlugin,
|
||||||
|
|||||||
Reference in New Issue
Block a user