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/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'],