speaker-calibration 2.2.211 → 2.2.213
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/dist/example/listener.html +2 -2
- package/dist/listener.js +3459 -0
- package/dist/main.js +3436 -1223
- package/package.json +9 -4
- package/{dist/example → src/listener-app}/listener.js +6 -5
- package/src/peer-connection/listener.js +16 -14
- package/src/peer-connection/speaker.js +5 -4
- package/src/tasks/combination/combination.js +269 -140
- package/webpack.config.js +27 -0
package/webpack.config.js
CHANGED
|
@@ -4,6 +4,7 @@ const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
|
|
|
4
4
|
const config = {
|
|
5
5
|
entry: {
|
|
6
6
|
main: './src/main.js',
|
|
7
|
+
listener: './src/listener-app/listener.js',
|
|
7
8
|
},
|
|
8
9
|
output: {
|
|
9
10
|
path: path.resolve(__dirname, 'dist'),
|
|
@@ -15,6 +16,32 @@ const config = {
|
|
|
15
16
|
},
|
|
16
17
|
module: {
|
|
17
18
|
rules: [
|
|
19
|
+
{
|
|
20
|
+
// If you have .mjs files, use test: /\.m?js$/,
|
|
21
|
+
test: /\.js$/,
|
|
22
|
+
exclude: /node_modules/,
|
|
23
|
+
use: {
|
|
24
|
+
loader: 'babel-loader',
|
|
25
|
+
options: {
|
|
26
|
+
// You can also move this config into a separate .babelrc or babel.config.js file
|
|
27
|
+
presets: [
|
|
28
|
+
[
|
|
29
|
+
'@babel/preset-env',
|
|
30
|
+
{
|
|
31
|
+
// Adjust your target browsers as needed
|
|
32
|
+
targets: {
|
|
33
|
+
ios: '12',
|
|
34
|
+
},
|
|
35
|
+
// This config tells Babel to automatically include necessary polyfills
|
|
36
|
+
// for features you use, referencing core-js where needed
|
|
37
|
+
useBuiltIns: 'usage',
|
|
38
|
+
corejs: '3',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
18
45
|
{
|
|
19
46
|
test: /\.css$/,
|
|
20
47
|
use: ['style-loader', 'css-loader'],
|