Fixed chunk naming and removed unessesery any casts
parent
a40b73dc28
commit
a52584a4fa
|
@ -458,11 +458,14 @@ class JavascriptInput implements AbstractInput {
|
|||
audio_constrains.groupId = group_id;
|
||||
|
||||
audio_constrains.echoCancellation = true;
|
||||
/* may supported */ (audio_constrains as any).autoGainControl = true;
|
||||
/* may supported */ (audio_constrains as any).noiseSuppression = true;
|
||||
audio_constrains.autoGainControl = true;
|
||||
audio_constrains.noiseSuppression = true;
|
||||
/* disabled because most the time we get a OverconstrainedError */ //audio_constrains.sampleSize = {min: 420, max: 960 * 10, ideal: 960};
|
||||
|
||||
const stream = await media_function({audio: audio_constrains, video: undefined});
|
||||
const stream = await media_function({
|
||||
audio: audio_constrains,
|
||||
video: undefined
|
||||
});
|
||||
if(!_queried_permissioned) query_devices(); /* we now got permissions, requery devices */
|
||||
return stream;
|
||||
} catch(error) {
|
||||
|
|
|
@ -124,10 +124,13 @@ export const config = (target: "web" | "client") => { return {
|
|||
] as any[],
|
||||
output: {
|
||||
filename: (chunkData) => {
|
||||
console.log(chunkData.chunk.name);
|
||||
if(chunkData.chunk.name === "loader")
|
||||
return "loader.js";
|
||||
return isDevelopment ? '[name].js' : '[contenthash].js';
|
||||
|
||||
return '[name].js';
|
||||
},
|
||||
chunkFilename: "[name].js",
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
publicPath: "js/"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue