forked from e621ng/e621ng
[JS] Try to fully target older browsers
This commit is contained in:
parent
4240f5a648
commit
088a6a2740
@ -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))];
|
||||
|
@ -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') && [
|
||||
|
@ -16,9 +16,13 @@ const customConfig = {
|
||||
output: {
|
||||
library: ["Danbooru"]
|
||||
},
|
||||
optimization: {
|
||||
runtimeChunk: false
|
||||
},
|
||||
externals: {
|
||||
jquery: "jQuery"
|
||||
}
|
||||
},
|
||||
target: ['web', 'es5']
|
||||
}
|
||||
|
||||
module.exports = merge(vueConfig, webpackConfig, customConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user