fix: fix worker is not defined in lib bundle, fixes #485

This commit is contained in:
Roman Hotsiy 2018-05-14 12:57:20 +03:00
parent 54937b68d5
commit 6f85cb195a
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -127,7 +127,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
new webpack.BannerPlugin(BANNER),
ignore(/js-yaml\/dumper\.js$/),
ignore(/json-schema-ref-parser\/lib\/dereference\.js/),
ignore(/^\.\/SearchWorker\.worker$/),
env.standalone ? ignore(/^\.\/SearchWorker\.worker$/) : ignore(/$non-existing^/),
],
});