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) {
|
Post.update_tag_count = function(event) {
|
||||||
let string = "0 tags";
|
let string = "0 tags";
|
||||||
let count = 0;
|
let count = 0;
|
||||||
|
let count2 = 0;
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
let tags = [...new Set($(event.target).val().match(/\S+/g))];
|
let tags = [...new Set($(event.target).val().match(/\S+/g))];
|
||||||
|
@ -25,7 +25,7 @@ module.exports = function (api) {
|
|||||||
useBuiltIns: 'entry',
|
useBuiltIns: 'entry',
|
||||||
corejs: '3.8',
|
corejs: '3.8',
|
||||||
modules: 'auto',
|
modules: 'auto',
|
||||||
bugfixes: true,
|
forceAllTransforms: true,
|
||||||
exclude: ['transform-typeof-symbol']
|
exclude: ['transform-typeof-symbol']
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -42,7 +42,6 @@ module.exports = function (api) {
|
|||||||
]
|
]
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
plugins: [
|
plugins: [
|
||||||
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
||||||
['@babel/plugin-transform-runtime', { helpers: false }],
|
['@babel/plugin-transform-runtime', { helpers: false }],
|
||||||
isProductionEnv &&
|
isProductionEnv &&
|
||||||
moduleExists('babel-plugin-transform-react-remove-prop-types') && [
|
moduleExists('babel-plugin-transform-react-remove-prop-types') && [
|
||||||
|
@ -16,9 +16,13 @@ const customConfig = {
|
|||||||
output: {
|
output: {
|
||||||
library: ["Danbooru"]
|
library: ["Danbooru"]
|
||||||
},
|
},
|
||||||
|
optimization: {
|
||||||
|
runtimeChunk: false
|
||||||
|
},
|
||||||
externals: {
|
externals: {
|
||||||
jquery: "jQuery"
|
jquery: "jQuery"
|
||||||
}
|
},
|
||||||
|
target: ['web', 'es5']
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = merge(vueConfig, webpackConfig, customConfig)
|
module.exports = merge(vueConfig, webpackConfig, customConfig)
|
||||||
|
Loading…
Reference in New Issue
Block a user