mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
separate file for our polyfills to have lighter plugins
This commit is contained in:
parent
fdbc63fb3f
commit
92c45a19a5
@ -31,6 +31,7 @@ const bsPlugins = {
|
|||||||
Data: path.resolve(__dirname, '../js/src/dom/data.js'),
|
Data: path.resolve(__dirname, '../js/src/dom/data.js'),
|
||||||
EventHandler: path.resolve(__dirname, '../js/src/dom/event-handler.js'),
|
EventHandler: path.resolve(__dirname, '../js/src/dom/event-handler.js'),
|
||||||
Manipulator: path.resolve(__dirname, '../js/src/dom/manipulator.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'),
|
SelectorEngine: path.resolve(__dirname, '../js/src/dom/selector-engine.js'),
|
||||||
Alert: path.resolve(__dirname, '../js/src/alert.js'),
|
Alert: path.resolve(__dirname, '../js/src/alert.js'),
|
||||||
Button: path.resolve(__dirname, '../js/src/button.js'),
|
Button: path.resolve(__dirname, '../js/src/button.js'),
|
||||||
@ -69,13 +70,16 @@ function getConfigByPluginKey(pluginKey) {
|
|||||||
pluginKey === 'Data' ||
|
pluginKey === 'Data' ||
|
||||||
pluginKey === 'Manipulator' ||
|
pluginKey === 'Manipulator' ||
|
||||||
pluginKey === 'EventHandler' ||
|
pluginKey === 'EventHandler' ||
|
||||||
|
pluginKey === 'Polyfill' ||
|
||||||
pluginKey === 'SelectorEngine' ||
|
pluginKey === 'SelectorEngine' ||
|
||||||
pluginKey === 'Util' ||
|
pluginKey === 'Util' ||
|
||||||
pluginKey === 'Sanitizer'
|
pluginKey === 'Sanitizer'
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
external: [],
|
external: [bsPlugins.Polyfill],
|
||||||
globals: {}
|
globals: {
|
||||||
|
[bsPlugins.Polyfill]: 'Polyfill'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,6 +148,7 @@ const domObjects = [
|
|||||||
'Data',
|
'Data',
|
||||||
'EventHandler',
|
'EventHandler',
|
||||||
'Manipulator',
|
'Manipulator',
|
||||||
|
'Polyfill',
|
||||||
'SelectorEngine'
|
'SelectorEngine'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user