From: Johann-S Date: Tue, 9 Jul 2019 08:19:00 +0000 (+0200) Subject: separate file for our polyfills to have lighter plugins X-Git-Tag: v5.0.0-alpha1~1037 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92c45a19a5b41aec1c2d4f95274052f924ee46bf;p=thirdparty%2Fbootstrap.git separate file for our polyfills to have lighter plugins --- diff --git a/build/build-plugins.js b/build/build-plugins.js index 33574b8888..3d570cd369 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -31,6 +31,7 @@ const bsPlugins = { Data: path.resolve(__dirname, '../js/src/dom/data.js'), EventHandler: path.resolve(__dirname, '../js/src/dom/event-handler.js'), Manipulator: path.resolve(__dirname, '../js/src/dom/manipulator.js'), + Polyfill: path.resolve(__dirname, '../js/src/dom/polyfill.js'), SelectorEngine: path.resolve(__dirname, '../js/src/dom/selector-engine.js'), Alert: path.resolve(__dirname, '../js/src/alert.js'), Button: path.resolve(__dirname, '../js/src/button.js'), @@ -69,13 +70,16 @@ function getConfigByPluginKey(pluginKey) { pluginKey === 'Data' || pluginKey === 'Manipulator' || pluginKey === 'EventHandler' || + pluginKey === 'Polyfill' || pluginKey === 'SelectorEngine' || pluginKey === 'Util' || pluginKey === 'Sanitizer' ) { return { - external: [], - globals: {} + external: [bsPlugins.Polyfill], + globals: { + [bsPlugins.Polyfill]: 'Polyfill' + } } } @@ -144,6 +148,7 @@ const domObjects = [ 'Data', 'EventHandler', 'Manipulator', + 'Polyfill', 'SelectorEngine' ]