Skip to content

Commit 6835f60

Browse files
committed
path.resolve does joining too so path.join is redundant
1 parent 932c221 commit 6835f60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = (env, argv) => {
2424
// Resolve the directories for the react-sdk and js-sdk for later use. We resolve these early so we
2525
// don't have to call them over and over. We also resolve to the package.json instead of the src
2626
// directory so we don't have to rely on a index.js or similar file existing.
27-
const reactSdkSrcDir = path.resolve(path.join(require.resolve("matrix-react-sdk/package.json"), '..', 'src'));
28-
const jsSdkSrcDir = path.resolve(path.join(require.resolve("matrix-js-sdk/package.json"), '..', 'src'));
27+
const reactSdkSrcDir = path.resolve(require.resolve("matrix-react-sdk/package.json"), '..', 'src');
28+
const jsSdkSrcDir = path.resolve(require.resolve("matrix-js-sdk/package.json"), '..', 'src');
2929

3030
return {
3131
...development,

0 commit comments

Comments
 (0)