mirror of
https://github.com/foambubble/foam.git
synced 2026-01-08 05:34:09 -05:00
Define global in web extension build (fixes #1523)
This commit is contained in:
@@ -25,6 +25,9 @@ const config = {
|
||||
platform: 'browser',
|
||||
format: 'cjs',
|
||||
outfile: `out/bundles/extension-web.js`,
|
||||
define: {
|
||||
global: 'globalThis',
|
||||
},
|
||||
plugins: [
|
||||
polyfillPlugin.polyfillNode({
|
||||
// Options (optional)
|
||||
@@ -64,7 +67,7 @@ async function main() {
|
||||
...config[platform],
|
||||
entryPoints: ['src/extension.ts'],
|
||||
bundle: true,
|
||||
minify: production,
|
||||
minify: false, //production,
|
||||
sourcemap: !production,
|
||||
sourcesContent: false,
|
||||
external: ['vscode'],
|
||||
|
||||
Reference in New Issue
Block a user