Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be60eb5

Browse files
clodalkoskimas
authored andcommitted
Suppresses the warning of a dependency based on an expression when bundling objection with webpack
1 parent 73d0dd7 commit be60eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/resolveModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function requireUsingModelPaths(modelRef, modelPaths) {
5454
function requireModel(modelPath) {
5555
const Model = getModel();
5656

57-
let mod = require(path.resolve(modelPath));
57+
let mod = require(`${path.resolve(modelPath)}`);
5858
let modelClass = null;
5959

6060
if (isSubclassOf(mod, Model)) {

0 commit comments

Comments
 (0)