diff options
| author | XhmikosR <[email protected]> | 2021-01-14 00:35:57 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-14 00:35:57 +0200 |
| commit | 157a27d43d7d785292ca527936ac2932615dea1e (patch) | |
| tree | 4127b31ca97825f24b6822992f935b65ebec4361 /build | |
| parent | 1b46601ce8461fbafc5c33d7b9030ea0ad306671 (diff) | |
| download | bootstrap-157a27d43d7d785292ca527936ac2932615dea1e.tar.xz bootstrap-157a27d43d7d785292ca527936ac2932615dea1e.zip | |
build-plugins: build Base component too (#32313)
Diffstat (limited to 'build')
| -rw-r--r-- | build/build-plugins.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/build-plugins.js b/build/build-plugins.js index 80a010a7f..d1930b855 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -29,6 +29,7 @@ const bsPlugins = { Manipulator: path.resolve(__dirname, '../js/src/dom/manipulator.js'), SelectorEngine: path.resolve(__dirname, '../js/src/dom/selector-engine.js'), Alert: path.resolve(__dirname, '../js/src/alert.js'), + Base: path.resolve(__dirname, '../js/src/base-component.js'), Button: path.resolve(__dirname, '../js/src/button.js'), Carousel: path.resolve(__dirname, '../js/src/carousel.js'), Collapse: path.resolve(__dirname, '../js/src/collapse.js'), @@ -44,11 +45,13 @@ const bsPlugins = { const defaultPluginConfig = { external: [ bsPlugins.Data, + bsPlugins.Base, bsPlugins.EventHandler, bsPlugins.SelectorEngine ], globals: { [bsPlugins.Data]: 'Data', + [bsPlugins.Base]: 'Base', [bsPlugins.EventHandler]: 'EventHandler', [bsPlugins.SelectorEngine]: 'SelectorEngine' } @@ -73,6 +76,7 @@ const getConfigByPluginKey = pluginKey => { } if ( + pluginKey === 'Base' || pluginKey === 'Button' || pluginKey === 'Carousel' || pluginKey === 'Collapse' || @@ -112,11 +116,13 @@ const getConfigByPluginKey = pluginKey => { return { external: [ bsPlugins.Data, + bsPlugins.Base, bsPlugins.EventHandler, bsPlugins.Manipulator ], globals: { [bsPlugins.Data]: 'Data', + [bsPlugins.Base]: 'Base', [bsPlugins.EventHandler]: 'EventHandler', [bsPlugins.Manipulator]: 'Manipulator' } |
