Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2019-07-09 11:19:00 +0300
committerJohann-S <johann.servoire@gmail.com>2019-07-10 11:40:52 +0300
commit92c45a19a5b41aec1c2d4f95274052f924ee46bf (patch)
treefe833058d6c5824682669ddad9c2dc76bffcd444 /build/build-plugins.js
parentfdbc63fb3f892de7b4f32c7236329a761977625d (diff)
separate file for our polyfills to have lighter plugins
Diffstat (limited to 'build/build-plugins.js')
-rw-r--r--build/build-plugins.js9
1 files changed, 7 insertions, 2 deletions
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'
]