mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
path.resolve does joining too so path.join is redundant
This commit is contained in:
parent
8c103b50af
commit
d4e46108c4
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ module.exports = (env, argv) => {
|
||||||
// Resolve the directories for the react-sdk and js-sdk for later use. We resolve these early so we
|
// Resolve the directories for the react-sdk and js-sdk for later use. We resolve these early so we
|
||||||
// don't have to call them over and over. We also resolve to the package.json instead of the src
|
// don't have to call them over and over. We also resolve to the package.json instead of the src
|
||||||
// directory so we don't have to rely on a index.js or similar file existing.
|
// directory so we don't have to rely on a index.js or similar file existing.
|
||||||
const reactSdkSrcDir = path.resolve(path.join(require.resolve("matrix-react-sdk/package.json"), '..', 'src'));
|
const reactSdkSrcDir = path.resolve(require.resolve("matrix-react-sdk/package.json"), '..', 'src');
|
||||||
const jsSdkSrcDir = path.resolve(path.join(require.resolve("matrix-js-sdk/package.json"), '..', 'src'));
|
const jsSdkSrcDir = path.resolve(require.resolve("matrix-js-sdk/package.json"), '..', 'src');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...development,
|
...development,
|
||||||
|
|
Loading…
Reference in a new issue