1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 04:11:39 +02:00

Add back support for IE 11

This commit is contained in:
Johann-S
2019-03-16 16:10:23 +02:00
committed by XhmikosR
parent f7c1b1e683
commit 08679ac0b5
10 changed files with 214 additions and 106 deletions

View File

@@ -31,7 +31,6 @@ const bsPlugins = {
Data: path.resolve(__dirname, '../js/src/dom/data.js'),
EventHandler: path.resolve(__dirname, '../js/src/dom/eventHandler.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/selectorEngine.js'),
Alert: path.resolve(__dirname, '../js/src/alert.js'),
Button: path.resolve(__dirname, '../js/src/button.js'),
@@ -69,7 +68,8 @@ function getConfigByPluginKey(pluginKey) {
if (
pluginKey === 'Data' ||
pluginKey === 'Manipulator' ||
pluginKey === 'Polyfill' ||
pluginKey === 'EventHandler' ||
pluginKey === 'SelectorEngine' ||
pluginKey === 'Util' ||
pluginKey === 'Sanitizer'
) {
@@ -79,17 +79,6 @@ function getConfigByPluginKey(pluginKey) {
}
}
if (pluginKey === 'EventHandler' || pluginKey === 'SelectorEngine') {
return {
external: [
bsPlugins.Polyfill
],
globals: {
[bsPlugins.Polyfill]: 'Polyfill'
}
}
}
if (pluginKey === 'Alert' || pluginKey === 'Tab') {
return defaultPluginConfig
}
@@ -161,7 +150,6 @@ function build(plugin) {
'Data',
'EventHandler',
'Manipulator',
'Polyfill',
'SelectorEngine'
]