diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/build-plugins.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/build-plugins.js b/build/build-plugins.js index 6d9cdb3324..1f44a3b856 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -125,17 +125,17 @@ const getConfigByPluginKey = pluginKey => { } } -const utilObjects = [ +const utilObjects = new Set([ 'Util', 'Sanitizer' -] +]) -const domObjects = [ +const domObjects = new Set([ 'Data', 'EventHandler', 'Manipulator', 'SelectorEngine' -] +]) const build = async plugin => { console.log(`Building ${plugin} plugin...`) @@ -144,11 +144,11 @@ const build = async plugin => { const pluginFilename = path.basename(bsPlugins[plugin]) let pluginPath = rootPath - if (utilObjects.includes(plugin)) { + if (utilObjects.has(plugin)) { pluginPath = `${rootPath}/util/` } - if (domObjects.includes(plugin)) { + if (domObjects.has(plugin)) { pluginPath = `${rootPath}/dom/` } |