@rws-framework/client 2.9.15 → 2.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/rws.webpack.config.js +0 -5
- package/src/client/config.ts +8 -0
- package/src/client.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rws-framework/client",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.18",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"docs": "typedoc --tsconfig ./tsconfig.json"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"tsc-watch": "^6.0.4",
|
|
95
95
|
"tslib": "^2.6.2",
|
|
96
96
|
"uglify-js": "^3.17.4",
|
|
97
|
-
"webpack": "^5.
|
|
97
|
+
"webpack": "^5.86.0",
|
|
98
98
|
"webpack-bundle-analyzer": "^4.10.1",
|
|
99
99
|
"webpack-cli": "^5.1.4",
|
|
100
100
|
"webpack-dev-server": "^4.15.1",
|
package/rws.webpack.config.js
CHANGED
|
@@ -5,7 +5,6 @@ const webpack = require('webpack');
|
|
|
5
5
|
const { rwsPath, RWSConfigBuilder } = require('@rws-framework/console');
|
|
6
6
|
|
|
7
7
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
8
|
-
const { ESBuildPlugin } = require('esbuild-loader');
|
|
9
8
|
|
|
10
9
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
11
10
|
|
|
@@ -81,10 +80,6 @@ const RWSWebpackWrapper = async (config) => {
|
|
|
81
80
|
resourceRegExp: /.*\.es6\.js$/,
|
|
82
81
|
contextRegExp: /node_modules/
|
|
83
82
|
}),
|
|
84
|
-
// new ESBuildPlugin({
|
|
85
|
-
// 'process.env._RWS_DEFAULTS': JSON.stringify(BuildConfigurator.exportDefaultConfig()),
|
|
86
|
-
// 'process.env._RWS_BUILD_OVERRIDE': JSON.stringify(BuildConfigurator.exportBuildConfig())
|
|
87
|
-
// })
|
|
88
83
|
];
|
|
89
84
|
|
|
90
85
|
const WEBPACK_AFTER_ACTIONS = config.actions || [];
|
package/src/client/config.ts
CHANGED
|
@@ -104,6 +104,10 @@ async function setup(this: RWSClientInstance, config: IRWSConfig = {}): Promise<
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
if(config?.user){
|
|
108
|
+
this.setUser(config.user);
|
|
109
|
+
}
|
|
110
|
+
|
|
107
111
|
if (this.appConfig.get('parted')) {
|
|
108
112
|
const componentParts = await this.loadPartedComponents();
|
|
109
113
|
|
|
@@ -127,6 +131,10 @@ async function start(this: RWSClientInstance, config: IRWSConfig = {}): Promise<
|
|
|
127
131
|
this.appConfig.mergeConfig(this.config);
|
|
128
132
|
}
|
|
129
133
|
|
|
134
|
+
if(!this.user && config?.user){
|
|
135
|
+
this.setUser(config.user);
|
|
136
|
+
}
|
|
137
|
+
|
|
130
138
|
if (this.config.user && !this.config.dontPushToSW) {
|
|
131
139
|
this.pushUserToServiceWorker(this.user);
|
|
132
140
|
}
|