Commit e2dec459 authored by Tino Goratsch's avatar Tino Goratsch

add a polyfill to make the transpiled JS files actually work in old browsers

parent a7beb59a
{
"presets": [
"@babel/preset-env",
["minify", {
"builtIns": false
}]
[
"@babel/preset-env",
{
"corejs": 3,
"useBuiltIns": "entry"
}
],
[
"minify",
{
"builtIns": false
}
]
]
}
......@@ -18,6 +18,12 @@ class Libraries
* @var array
*/
protected $libraries = [
'polyfill' => [
'enabled' => true,
'enabled_for_ajax' => false,
'dependencies' => [],
'js' => 'polyfill.min.js',
],
'ajax-form' => [
'enabled' => true,
'enabled_for_ajax' => false,
......
This diff is collapsed.
......@@ -15,6 +15,7 @@ module.exports = (gulp) => {
paths = [
{
'src': [
nodeBasePath + '/@babel/polyfill/dist/polyfill.min.js',
nodeBasePath + '/@fancyapps/fancybox/dist/jquery.fancybox.min.js',
nodeBasePath + '/jquery/dist/jquery.min.js',
nodeBasePath + '/bootbox/dist/bootbox.all.min.js',
......
......@@ -73,6 +73,7 @@
</div>
</footer>
</div>
<script defer src="{$ROOT_DIR}ACP3/Modules/ACP3/System/Resources/Assets/js/polyfill.min.js"></script>
<script defer src="{$ROOT_DIR}ACP3/Modules/ACP3/System/Resources/Assets/js/jquery.min.js"></script>
<script defer src="{$ROOT_DIR}ACP3/Modules/ACP3/System/Resources/Assets/js/bootstrap.min.js"></script>
<script defer src="{$DESIGN_PATH}Assets/js/language-switcher.min.js"></script>
......
......@@ -673,6 +673,22 @@
"regexpu-core": "^4.5.4"
}
},
"@babel/polyfill": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.4.3.tgz",
"integrity": "sha512-rkv8WIvJshA5Ev8iNMGgz5WZkRtgtiPexiT7w5qevGTuT7ZBfM3de9ox1y9JR5/OXb/sWGBbWlHNa7vQKqku3Q==",
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.2"
},
"dependencies": {
"core-js": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz",
"integrity": "sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A=="
}
}
},
"@babel/preset-env": {
"version": "7.4.4",
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.4.4.tgz",
......@@ -2042,8 +2058,7 @@
"core-js": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.0.1.tgz",
"integrity": "sha512-sco40rF+2KlE0ROMvydjkrVMMG1vYilP2ALoRXcYR4obqbYIuV3Bg+51GEDW+HF8n7NRA+iaA4qD0nD9lo9mew==",
"dev": true
"integrity": "sha512-sco40rF+2KlE0ROMvydjkrVMMG1vYilP2ALoRXcYR4obqbYIuV3Bg+51GEDW+HF8n7NRA+iaA4qD0nD9lo9mew=="
},
"core-js-compat": {
"version": "3.0.1",
......@@ -6498,6 +6513,11 @@
"regenerate": "^1.4.0"
}
},
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
},
"regenerator-transform": {
"version": "0.13.4",
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.13.4.tgz",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment