Browse Source

Update integrate-esm.md

Alexandru Dima 7 năm trước cách đây
mục cha
commit
5c2a695a7a
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      docs/integrate-esm.md

+ 2 - 1
docs/integrate-esm.md

@@ -104,6 +104,7 @@ module.exports = {
     "ts.worker": 'monaco-editor/esm/vs/language/typescript/ts.worker',
   },
   output: {
+    globalObject: 'self',
     filename: '[name].bundle.js',
     path: path.resolve(__dirname, 'dist')
   },
@@ -117,7 +118,7 @@ module.exports = {
     // Ignore require() calls in vs/language/typescript/lib/typescriptServices.js
     new webpack.IgnorePlugin(
       /^((fs)|(path)|(os)|(crypto)|(source-map-support))$/,
-      /vs\/language\/typescript\/lib/
+      /vs(\/|\\)language(\/|\\)typescript(\/|\\)lib/
     )
   ]
 };