Commit graph

18 commits

Author SHA1 Message Date
Alex Dima
7462aef57b
Merge remote-tracking branch 'origin/main' into pr/k15a/147 2021-05-12 18:29:47 +02:00
Konstantin Pschera
3e40369a31 Use compiler.webpack if available
This will use compiler.webpack if it is available.
Otherwise, it will fall back to require webpack lazily.
This will make the plugin compatible with NextJS 10.

Closes https://github.com/microsoft/monaco-editor-webpack-plugin/issues/141
2021-05-07 17:27:49 +02:00
Sangmok Han
2469cdddc3 Add globalAPI option to expose the editor API through a global monaco object 2021-05-06 10:05:43 -07:00
Alexandru Dima
9b5e8d1910
Update dependencies 2021-01-29 01:04:14 +01:00
Alexandru Dima
6222e3fdb9
Add support for webpack 5 (fixes #124) 2020-12-24 15:11:04 +01:00
Alex Dima
07621e127b
Fixes microsoft/monaco-editor#2110 2020-09-18 22:50:26 +02:00
Alex Dima
2a73aeb3a6
Small tweaks 2020-09-18 21:23:26 +02:00
guxiang
577cfae1cf feat: custom language support and absolute entry fallback 2020-08-14 04:00:08 +08:00
Alex Dima
2ea08783c2
Fall back to looking in node_modules folder in cwd 2020-03-10 10:11:59 +01:00
lianghang
849d676919 fix: monaco path by cwd 2020-03-08 15:08:20 +08:00
Alex Brausewetter
88eef5d7d2
Fix invalid regex in getWorkerUrl
Fixes a typo introduced in #101 where the rendered regex was not escaped correctly.

```
$ npm run test
ERROR in ../node_modules/monaco-editor/esm/vs/editor/editor.api.js (include-loader!../node_modules/monaco-editor/esm/vs/editor/editor.api.js) 9:15
Module parse failed: Invalid regular expression: /^((http:)|(https:)|(file:)|(/: Unterminated group (9:15)
File was processed with these loaders:
 * ../out/loaders/include.js
You may need an additional loader to handle the result of these loaders.
|           var pathPrefix = typeof __webpack_public_path__ === 'string' ? __webpack_public_path__ : "";
|           var result = (pathPrefix ? stripTrailingSlash(pathPrefix) + '/' : '') + paths[label];
>           if (/^((http:)|(https:)|(file:)|(//))/.test(result)) {
|             var currentUrl = String(window.location);
|             var currentOrigin = currentUrl.substr(0, currentUrl.length - window.location.hash.length - window.location.search.length - window.location.pathname.length);
 @ ./index.js 2:0-77 4:0-13
```

Tested on local.
2020-02-28 14:36:16 +01:00
caohuilin
0625d2630b fix getWorkerUrl regex 2020-02-20 19:58:39 +08:00
Alex Dima
00036c08f3
Stronger typing for the options 2019-12-20 15:46:40 +01:00
Alex Dima
6a5c30039f
Also generate features.ts from the monaco-editor npm module 2019-12-20 15:20:48 +01:00
Alexandru Dima
802217b877
Fixes #42: Handle cross origin web workers automatically 2019-12-19 12:26:26 +01:00
Alexandru Dima
53f4ab5b0f
Remove unused fallback field 2019-12-18 17:52:10 +01:00
Alexandru Dima
33b130172d
Simplify code 2019-12-18 17:50:58 +01:00
Alexandru Dima
0bd24b523b
Convert to TypeScript 2019-12-18 17:42:47 +01:00