mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Use Babel to transpile the client bundle to be compatible with old browsers (tested with iOS 9) (#4932)
This commit is contained in:
Generated
+1395
-33
File diff suppressed because it is too large
Load Diff
+5
-1
@@ -57,7 +57,10 @@
|
|||||||
"npm": "^6.4.1"
|
"npm": "^6.4.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/core": "^7.5.5",
|
||||||
|
"@babel/preset-env": "^7.5.5",
|
||||||
"async": "^0.9.2",
|
"async": "^0.9.2",
|
||||||
|
"babel-loader": "^8.0.6",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"bootevent": "0.0.1",
|
"bootevent": "0.0.1",
|
||||||
"braces": "^3.0.2",
|
"braces": "^3.0.2",
|
||||||
@@ -125,5 +128,6 @@
|
|||||||
"webpack-bundle-analyzer": "^3.4.1",
|
"webpack-bundle-analyzer": "^3.4.1",
|
||||||
"webpack-dev-middleware": "^3.7.0",
|
"webpack-dev-middleware": "^3.7.0",
|
||||||
"webpack-hot-middleware": "^2.25.0"
|
"webpack-hot-middleware": "^2.25.0"
|
||||||
}
|
},
|
||||||
|
"browserslist": "> 0.25%, not dead"
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-1
@@ -68,7 +68,15 @@ pluginArray.push(new MomentLocalesPlugin({
|
|||||||
],
|
],
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const rules = [{
|
const rules = [
|
||||||
|
{
|
||||||
|
test: /\.(js|jsx)$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
|
use: {
|
||||||
|
loader: "babel-loader"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
test: /\.(jpe?g|png|gif)$/i,
|
test: /\.(jpe?g|png|gif)$/i,
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
query: {
|
query: {
|
||||||
|
|||||||
Reference in New Issue
Block a user