Commit graph

26 commits

Author SHA1 Message Date
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
Alex Dima
ca9e6a49ed Fixes #52 2018-11-23 12:53:39 +01:00
Alexandru Dima
1bd93df64b
Merge pull request #37 from nicoabie/exclude-features
Feature exclude
2018-09-20 10:45:00 +02:00
Chris Dakin
66254d1e60 Fix handlebars language loader
Handlebars shares a worker with html in the same way that
javascript/typescript and css/less/scss share workers. However, the
handlebars/html association was missing from the createLoaderRules
function. This was causing a bad network request when the language was
set to handlebars in the monaco-editor due to trying to load an
undefined web worker.

This change associates the handlebars and html workerPaths to prevent
these issues.
2018-09-18 11:31:26 -05:00
Alex Walter
afb9f52b7c
Remove untranspiled ES2015 from final output 2018-09-17 19:18:08 -07:00
Nicolás Andrés Gallinal
97fa344ed9 Add ability to exclude certain default features by prefixing them with an exclamation mark 2018-09-13 10:05:55 -03:00
Jiabin Peng
68cb00d20f
fix rule test for windows user 2018-09-06 18:42:09 +08:00
佛肚
cb473c82aa Absolute Path will be broken when npm in symlink mode(cnpm) 2018-08-30 20:48:19 +08:00
Alex Dima
ca5e6abbe0 Do not create file:/// protocol fallback for web workers 2018-08-11 00:32:26 +02:00
Alex Dima
f86321e052 Align languages with upcoming editor release 2018-08-10 16:42:30 +02:00
Alex Dima
e605ab21ef Fixes #26 2018-08-10 15:26:55 +02:00
Alex Dima
92ea8b5d76 Fix regular expressions on Windows (Fixes #3) 2018-07-03 12:31:25 +02:00
Alex Dima
ebe8c27add Fixes #21 2018-07-03 11:50:26 +02:00
Tim Kendrick
c20f6dd6aa Fix worker output path in loader rules 2018-06-12 16:34:28 +01:00
Dmitriy Lyner
fa97cf3a83 nvm string syntax. oops 2018-05-31 14:29:24 -06:00
Dmitriy Lyner
7a8774bafd an extra \ snuck in compared to origina ldeleted function 2018-05-31 14:28:50 -06:00
Dmitriy Lyner
29bed5adbd rename parameter string to str purely to prevent confusion 2018-05-31 14:27:14 -06:00
Dmitriy Lyner
b6b4422ab4 remove console log and condense return into 1 line 2018-05-31 11:19:50 -06:00
Dmitriy Lyner
f7a3a213f6 per timkenrick's feedback. Slight modification in that the outer function (MonacoEnvironment iife) is run at build time while the getWorkerUrl function is run at runtime so we must move the logic for accessing window.__webpack_public_path__ inside. 2018-05-31 11:14:33 -06:00
Dmitriy Lyner
87f68ff7af base case 2018-05-30 15:10:07 -06:00
Dmitriy Lyner
44bfaed10e this is more inline with webpack https://webpack.js.org/concepts/output/\#advanced 2018-05-30 13:32:54 -06:00
Dmitriy Lyner
f1ea23c229 fix logic. It's more lines of code but safer. 2018-05-30 11:07:22 -06:00
Dmitriy Lyner
083face122 Take <base href=..> into account 2018-05-30 10:15:11 -06:00
Alex Dima
2639244ae8 Fix path lookup 2018-04-11 09:57:59 +02:00
Alex Dima
118c0d5783 Improve README, webpack consumption 2018-04-09 16:53:49 +02:00
Tim Kendrick
7c18d303e6 Add webpack loader plugin 2018-04-09 16:36:25 +02:00