Commit Graph

15 Commits (577cfae1cf9817de90e94ecd476ed9e9237bf1bf)

Author SHA1 Message Date
guxiang 577cfae1cf feat: custom language support and absolute entry fallback 5 years ago
Alex Dima 2ea08783c2
Fall back to looking in node_modules folder in cwd 5 years ago
lianghang 849d676919 fix: monaco path by cwd 5 years ago
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.
5 years ago
caohuilin 0625d2630b fix getWorkerUrl regex 5 years ago
Alexandru Dima 77c3f5bcb3
Adopt latest editor version (new restructuredtext language) 5 years ago
Alex Dima 98a8d5a06a
Update to latest monaco-editor-core 5 years ago
Alex Dima 00036c08f3
Stronger typing for the options 5 years ago
Alex Dima 6a5c30039f
Also generate features.ts from the monaco-editor npm module 5 years ago
Alexandru Dima 10a995c595
Add import editor script 5 years ago
Alexandru Dima 802217b877
Fixes #42: Handle cross origin web workers automatically 5 years ago
Alexandru Dima f6223d69e6
Remove worker:undefined 5 years ago
Alexandru Dima 53f4ab5b0f
Remove unused fallback field 5 years ago
Alexandru Dima 33b130172d
Simplify code 5 years ago
Alexandru Dima 0bd24b523b
Convert to TypeScript 5 years ago