agora-toolchain 3.10.2 → 3.11.0-rc.2
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
CHANGED
package/presets/webpack.base.js
CHANGED
|
@@ -47,7 +47,7 @@ module.exports = {
|
|
|
47
47
|
extensions: ['.ts', '.js', '.tsx'],
|
|
48
48
|
},
|
|
49
49
|
externals: {
|
|
50
|
-
'
|
|
50
|
+
'shengwang-electron-sdk': 'commonjs2 shengwang-electron-sdk',
|
|
51
51
|
electron: 'commonjs2 electron',
|
|
52
52
|
winston: 'commonjs2 winston',
|
|
53
53
|
'node:fs': 'commonjs2 node:fs',
|
package/presets/webpack.dev.js
CHANGED
|
@@ -131,7 +131,7 @@ module.exports = createConfig = ({ entry, port = 3000, analyze }) => {
|
|
|
131
131
|
path.join(`${process.cwd()}`.replace('\\', '\\\\'), 'node_modules'),
|
|
132
132
|
);
|
|
133
133
|
|
|
134
|
-
// add cwd to node path, so that we can require
|
|
134
|
+
// add cwd to node path, so that we can require shengwang-electron-sdk from cwd
|
|
135
135
|
codeAppendPlugins.push(
|
|
136
136
|
new AppendCodePlugin({
|
|
137
137
|
code: `
|
package/presets/webpack.karma.js
CHANGED
|
@@ -4,7 +4,7 @@ const { AppendCodePlugin } = require('../webpack-plugins/append-code-plugin');
|
|
|
4
4
|
const baseConfig = require('./webpack.base');
|
|
5
5
|
|
|
6
6
|
module.exports = createConfig = () => {
|
|
7
|
-
// add cwd to node path, so that we can require
|
|
7
|
+
// add cwd to node path, so that we can require shengwang-electron-sdk from cwd
|
|
8
8
|
|
|
9
9
|
const normalizedNodeModulePath = JSON.stringify(
|
|
10
10
|
path.join(`${process.cwd()}`.replace('\\', '\\\\'), 'node_modules'),
|
|
@@ -84,7 +84,7 @@ function getFilesConfig() {
|
|
|
84
84
|
if (cpp) {
|
|
85
85
|
// Native Bundle 模式:排除不需要的文件
|
|
86
86
|
return [
|
|
87
|
-
'!**/node_modules/
|
|
87
|
+
'!**/node_modules/shengwang-electron-sdk/**/*',
|
|
88
88
|
'!**/artifactory_deps/**/*',
|
|
89
89
|
'!**/mac-release/**/*',
|
|
90
90
|
'!**/node_modules/fcr-ui-scene/release/**/*',
|
|
@@ -135,7 +135,7 @@ const options = {
|
|
|
135
135
|
extraMetadata: {
|
|
136
136
|
bundleType: cpp ? 'NATIVE_BUNDLE' : 'JS_BUNDLE',
|
|
137
137
|
},
|
|
138
|
-
asarUnpack: ['node_modules/
|
|
138
|
+
asarUnpack: ['node_modules/shengwang-electron-sdk'],
|
|
139
139
|
directories: {
|
|
140
140
|
output: resolveCwd('release'),
|
|
141
141
|
buildResources: resolveCwd('installer/resources'),
|