Refactor remote script loading code
This commit is contained in:
@@ -3,5 +3,5 @@ const { log } = require('../utils/log');
|
||||
module.exports = ({ corePath }) => new Promise((resolve) => {
|
||||
log('info', `fetch ffmpeg.wasm-core script from ${corePath}`);
|
||||
// eslint-disable-next-line import/no-dynamic-require
|
||||
resolve(require(corePath));
|
||||
resolve({ createFFmpegCore: require(corePath) });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user