Commit graph

144 commits

Author SHA1 Message Date
guxiang
577cfae1cf feat: custom language support and absolute entry fallback 2020-08-14 04:00:08 +08:00
Alexandru Dima
0c36fc7eb7
Merge pull request #105 from KevLeong/fix/monaco_path
fix: monaco path by cwd
2020-03-10 10:13:09 +01: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
Alexandru Dima
8cd0490d1e
Merge pull request #102 from xoob/patch-1
Fix invalid regex in getWorkerUrl
2020-03-02 14:53:23 +01: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
Alexandru Dima
9548c68804
Merge pull request #101 from caohuilin/fix-worker-url
Fix getWorkerUrl Regex
2020-02-21 00:00:46 +01:00
caohuilin
0625d2630b fix getWorkerUrl regex 2020-02-20 19:58:39 +08:00
Alex Dima
8617e98da3
1.9.0 2020-02-13 10:06:47 +01:00
Alex Dima
9251a98a55
Update version matrix 2020-02-13 10:06:35 +01:00
Alex Dima
67177e284b
Fix #98: ^ works on minor, so use explicit minor versions 2020-02-13 10:05:46 +01:00
Alex Dima
88e57802f2
Update deps, add version matrix 2020-02-11 08:43:20 +01:00
Alexandru Dima
8805903bf0
1.8.2 2020-01-06 16:15:57 +01:00
Alexandru Dima
77c3f5bcb3
Adopt latest editor version (new restructuredtext language) 2020-01-06 16:15:45 +01:00
Alexandru Dima
de7d5bb2d6
Prefer https 2020-01-06 16:14:11 +01:00
Alexandru Dima
7bde413e17
Fixes #90: Add rule for .ttf file 2020-01-06 13:58:53 +01:00
Alex Dima
b665c1b566
1.8.1 2019-12-21 15:19:55 +01:00
Alex Dima
7eda0d0948
Fixes #89 2019-12-21 15:18:14 +01:00
Alex Dima
25ac8dca69
1.8.0 2019-12-20 22:05:01 +01:00
Alex Dima
eaacb00bb4
Handle .ttf 2019-12-20 22:04:54 +01:00
Alex Dima
98a8d5a06a
Update to latest monaco-editor-core 2019-12-20 21:54:56 +01:00
Alex Dima
4ec9d1e432
Also generate README default values 2019-12-20 15:56:59 +01:00
Alex Dima
00036c08f3
Stronger typing for the options 2019-12-20 15:46:40 +01:00
Alex Dima
bad4bcfe35
Minor tweaks 2019-12-20 15:32:02 +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
10a995c595
Add import editor script 2019-12-19 17:24:19 +01:00
Alexandru Dima
f94e9a43f3
Reduce peerDependency requirement 2019-12-19 16:43:38 +01:00
Alexandru Dima
1caefef64b
Update deps 2019-12-19 16:42:52 +01:00
Alexandru Dima
802217b877
Fixes #42: Handle cross origin web workers automatically 2019-12-19 12:26:26 +01:00
Alexandru Dima
f6223d69e6
Remove worker:undefined 2019-12-19 10:41:50 +01:00
Alexandru Dima
78aceedb37
Add bot integration 2019-12-19 10:23:19 +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
Alexandru Dima
e032f77fb9
Add support for dynamic filenames (#83)
Add support for dynamic filenames
2019-12-18 12:36:02 +01:00
Alexandru Dima
d71d21ec6f
Merge remote-tracking branch 'origin/master' into pr/jimmydief/83 2019-12-18 12:35:07 +01:00
Alexandru Dima
dfa3f22cc6
Add support for plugin-specific public path (#81)
Add support for plugin-specific public path
2019-12-18 12:21:17 +01:00
Alexandru Dima
da92d8fcc8
Merge remote-tracking branch 'origin/master' into pr/jimmydief/81 2019-12-18 12:20:22 +01:00
Alexandru Dima
e76c7068a0
Merge pull request #74 from nikeee/master
Add loader-utils and make @types/webpack a dev dependency
2019-12-18 12:14:46 +01:00
Alexandru Dima
8aa2205ff3
Simplify code since alias is no longer used 2019-12-18 12:09:59 +01:00
Alexandru Dima
5c82c65ae8
Remove more undefined fields 2019-12-18 11:53:07 +01:00
Alexandru Dima
f9a577ee8b
Remove unused field 2019-12-18 11:51:47 +01:00
Alexandru Dima
06d7cfe314
Merge remote-tracking branch 'origin/master' into pr/rkrasiuk/67 2019-12-18 10:53:08 +01:00
Alexandru Dima
491bd2a849
Merge pull request #62 from domoritz/patch-1
Bump to 0.16
2019-12-18 10:51:37 +01:00
Alexandru Dima
f6a2196885
Fix __webpack_public_path__ within getWorkerUrl method (#63)
Fix __webpack_public_path__ within getWorkerUrl method
2019-12-18 09:44:10 +01:00
James Diefenderfer
5e3cec5520
add explicit loader-utils dependency 2019-11-21 13:45:12 -08:00
James Diefenderfer
3bab84bf28
add support for dynamic filenames
Add support for custom filename template for worker scripts.
2019-11-21 13:44:50 -08:00
James Diefenderfer
e7551d3bf9
reference free variable 2019-11-15 12:53:28 -08:00
James Diefenderfer
c9c13e7b55
add support for plugin-specific public path
Override the public path from which files generated by this plugin will be served. This wins out over Webpack's dynamic runtime path and can be useful to avoid attempting to load workers cross-origin when using a CDN for other static resources.
2019-11-15 12:47:26 -08:00
Niklas Mollenhauer
f397fae745
npm audit fix 2019-10-08 21:59:05 +02:00