diff --git a/src/utils/resolvePaths.js b/src/utils/resolvePaths.js index 5aa2b74..566d578 100644 --- a/src/utils/resolvePaths.js +++ b/src/utils/resolvePaths.js @@ -4,7 +4,7 @@ const resolveURL = isBrowser ? require('resolve-url') : s => s; // eslint-disabl module.exports = (options) => { const opts = { ...options }; ['corePath', 'workerPath', 'langPath'].forEach((key) => { - if (typeof options[key] !== 'undefined') { + if (options[key]) { opts[key] = resolveURL(opts[key]); } });