update build due to changes in webpack and react-intl

This commit is contained in:
or-else
2021-01-11 16:21:26 -08:00
parent 396b23ee88
commit 924459f84b
12 changed files with 1060 additions and 18414 deletions
-5
View File
@@ -1,9 +1,4 @@
{
"presets": ["@babel/preset-react", "@babel/preset-env"],
"comments": false,
"plugins": [
["react-intl", {
"messagesDir": "./src/i18n/"
}]
]
}
+1 -1
View File
@@ -24,7 +24,7 @@
<link rel="stylesheet" href="css/base.min.css" />
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/react@17.0.1/umd/react.production.min.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/react-dom@17.0.1/umd/react-dom.production.min.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/react-intl@5.10.9/dist/react-intl.min.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/react-intl@5.10.14/dist/react-intl.min.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/firebase@7.24.0/firebase-app.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/firebase@7.24.0/firebase-messaging.js"></script>
</head>
+1038 -494
View File
File diff suppressed because it is too large Load Diff
+8 -9
View File
@@ -1,7 +1,7 @@
{
"name": "tinode-webapp",
"description": "Tinode messenger for the web",
"version": "0.16.9",
"version": "0.16.10",
"repository": {
"type": "git",
"url": "https://github.com/tinode/example-react-js.git"
@@ -60,22 +60,21 @@
"firebase": "^7.24.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-intl": "^5.10.9",
"tinode-sdk": "^0.16.9"
"react-intl": "^5.10.14",
"tinode-sdk": "^0.16.10"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@formatjs/cli": "^3.0.1",
"babel-loader": "^8.2.2",
"babel-plugin-react-intl": "^8.2.22",
"browserslist": "^4.16.0",
"browserslist": "^4.16.1",
"copy-webpack-plugin": "^6.4.1",
"cssnano": "^4.1.10",
"postcss": "^8.2.1",
"postcss": "^8.2.4",
"postcss-cli": "^8.3.1",
"terser-webpack-plugin": "^5.0.3",
"webpack": "^5.11.0",
"webpack-cli": "^4.3.0"
"webpack": "^5.13.0",
"webpack-cli": "^4.3.1"
}
}
+1 -1
View File
@@ -1,3 +1,3 @@
// This is a generated file. Don't edit.
export const PACKAGE_VERSION = "0.16.9";
export const PACKAGE_VERSION = "0.16.10";
+1 -10322
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -7576
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+6 -2
View File
@@ -13,7 +13,7 @@ module.exports = (env, argv) => {
rules: [
{
test: /\.jsx?$/,
loaders: [
use: [
'babel-loader',
],
exclude: /node_modules/,
@@ -26,14 +26,17 @@ module.exports = (env, argv) => {
publicPath: '/umd/'
},
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
sourceMap: true,
terserOptions: {
ecma: undefined,
warnings: false,
parse: {},
compress: {},
format: {
comments: false,
},
mangle: true, // Note `mangle.properties` is `false` by default.
module: false,
output: null,
@@ -44,6 +47,7 @@ module.exports = (env, argv) => {
keep_fnames: false,
safari10: false,
},
extractComments: false,
})
]
},