Skip to content

Commit 99a0727

Browse files
committed
Use path.join instead of string templates.
1 parent 3d3dfd9 commit 99a0727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const loadPlugin = config => new Promise((resolve, reject) => {
109109

110110
} else if (stats && stats.isFile() && config.layout.match(JAVASCRIPT_REGEX)) {
111111

112-
resolve(require(`${process.cwd()}/${config.layout}`));
112+
resolve(require(path.join(process.cwd(), config.layout)));
113113

114114
} else {
115115

0 commit comments

Comments
 (0)