Skip to content

Commit 4bc4e63

Browse files
committed
2 parents db4ede2 + cd8e9f0 commit 4bc4e63

File tree

155 files changed

+472207
-404591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+472207
-404591
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ module.exports = {
5252
"no-fallthrough": "warn",
5353
//禁止直接调用eval()
5454
"no-eval": ["error", {"allowIndirect": true}],
55+
"no-prototype-builtins":"off",
56+
"no-useless-catch":"off",
5557
//Ensure imports point to a file/module that can be resolved
5658
"import/no-unresolved": [2, {commonjs: true, amd: true}],
5759
//Ensure named imports correspond to a named export in the remote file

build/webpack.config.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
test: /\.js/,
3434
loader: 'babel-loader',
3535
query: {
36-
presets: ['es2015']
36+
presets: ['@babel/preset-env']
3737
}
3838
});
3939

build/webpack.config.leaflet.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ module.exports = {
3939
exclude: /setImmediate|webgl-debug/,
4040
loader: 'babel-loader',
4141
options: {
42-
presets: ['es2015']
42+
presets: ['@babel/preset-env']
4343
}
4444
});
4545
//兼容es3相关配置
46-
moduleRules.push({
47-
test: /\.js$/,
48-
enforce: "post",
49-
loaders: ['es3ify-loader']
50-
});
46+
// moduleRules.push({
47+
// test: /\.js$/,
48+
// enforce: "post",
49+
// loaders: ['es3ify-loader']
50+
// });
5151
}
5252
moduleRules.push(configBase.module.rules.css);
5353
return moduleRules

build/webpack.config.mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
exclude: /node_modules[\/\\]proj4|classic|webgl-debug/,
4444
loader: 'babel-loader',
4545
options: {
46-
presets: ['es2015']
46+
presets: ['@babel/preset-env']
4747
}
4848
});
4949
}

build/webpack.config.openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
exclude: /classic | webgl-debug/,
4343
loader: 'babel-loader',
4444
options: {
45-
presets: ['env']
45+
presets: ['@babel/preset-env']
4646
}
4747
});
4848

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy