ignore case for worker exclusion
This commit is contained in:
parent
dbafcc062d
commit
2169b9a7d0
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ var config = {
|
|||
from: path.join(ROOT_PATH, `node_modules/monaco-editor/${IS_PRODUCTION ? 'min' : 'dev'}/vs`),
|
||||
to: 'monaco-editor/vs',
|
||||
transform: function(content, path) {
|
||||
if (/\.js$/.test(path) && !/worker/.test(path)) {
|
||||
if (/\.js$/.test(path) && !/worker/i.test(path)) {
|
||||
return (
|
||||
'(function(){\n' +
|
||||
'var define = this.define, require = this.require;\n' +
|
||||
|
|
Loading…
Reference in a new issue