[JS] Try to fully target older browsers

This commit is contained in:
Kira 2021-09-30 02:26:05 -07:00
parent 4240f5a648
commit 088a6a2740
3 changed files with 7 additions and 3 deletions

View File

@ -966,6 +966,7 @@ Post.disapprove = function(post_id, reason, should_reload) {
Post.update_tag_count = function(event) {
let string = "0 tags";
let count = 0;
let count2 = 0;
if (event) {
let tags = [...new Set($(event.target).val().match(/\S+/g))];

View File

@ -25,7 +25,7 @@ module.exports = function (api) {
useBuiltIns: 'entry',
corejs: '3.8',
modules: 'auto',
bugfixes: true,
forceAllTransforms: true,
exclude: ['transform-typeof-symbol']
}
],
@ -42,7 +42,6 @@ module.exports = function (api) {
]
].filter(Boolean),
plugins: [
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-transform-runtime', { helpers: false }],
isProductionEnv &&
moduleExists('babel-plugin-transform-react-remove-prop-types') && [

View File

@ -16,9 +16,13 @@ const customConfig = {
output: {
library: ["Danbooru"]
},
optimization: {
runtimeChunk: false
},
externals: {
jquery: "jQuery"
}
},
target: ['web', 'es5']
}
module.exports = merge(vueConfig, webpackConfig, customConfig)