feat: add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter
All checks were successful
Build Docker Images for Pull Request / build (pull_request) Successful in 15m20s

This commit is contained in:
2025-02-19 21:56:14 +01:00
parent 84479c786a
commit d5e88732f9
18 changed files with 9700 additions and 40 deletions

View File

@@ -0,0 +1,32 @@
const path = require('path');
const { EnvironmentPlugin } = require('webpack');
module.exports = (env) => {
const url = env.URL || 'http://localhost';
return {
entry: '../background.js',
target: 'web',
mode: 'production',
module: {
rules: [
{
test: /\.js?$/,
use: 'babel-loader',
exclude: /node_modules/,
},
],
},
resolve: { extensions: ['.tsx', '.ts', '.js'] },
output: {
filename: 'background.bundle.js',
path: path.resolve(__dirname, '../'),
publicPath: '',
},
plugins: [
new EnvironmentPlugin({
WEBRTC_INTERNALS_EXPORTER_URL: url,
}),
],
};
};