Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the following Webpack Error:
WARNING in ./node_modules/fluent-ffmpeg/lib/options/misc.js 27:21-40
Critical dependency: the request of a dependency is an expression
  • Loading branch information
umens authored Oct 29, 2020
1 parent 1266709 commit 5debbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/options/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function(proto) {
} else {
try {
var modulePath = path.join(this.options.presets, preset);
var module = require(modulePath);
var module = require(`${modulePath}`);

if (typeof module.load === 'function') {
module.load(this);
Expand Down

0 comments on commit 5debbe2

Please sign in to comment.