ignore case for worker exclusion

This commit is contained in:
Luke "Jared" Bennett 2017-07-21 12:17:17 +01:00
parent dbafcc062d
commit 2169b9a7d0
No known key found for this signature in database
GPG key ID: 402ED51FB5D306C2

View file

@ -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' +