-
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a69dc6
commit c4d2849
Showing
3 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
const path = require('path') | ||
const resolveFrom = require('resolve-from') | ||
const path = require("path"); | ||
const resolveFrom = require("resolve-from"); | ||
|
||
const fixLinkedDependencies = config => { | ||
const fixLinkedDependencies = (config) => { | ||
config.resolve = { | ||
...config.resolve, | ||
alias: { | ||
...config.resolve.alias, | ||
react$: resolveFrom(path.resolve('node_modules'), 'react'), | ||
'react-dom$': resolveFrom(path.resolve('node_modules'), 'react-dom'), | ||
react$: resolveFrom(path.resolve("node_modules"), "react"), | ||
"react-dom$": resolveFrom(path.resolve("node_modules"), "react-dom"), | ||
}, | ||
} | ||
return config | ||
} | ||
}; | ||
return config; | ||
}; | ||
|
||
const includeSrcDirectory = config => { | ||
const includeSrcDirectory = (config) => { | ||
config.resolve = { | ||
...config.resolve, | ||
modules: [path.resolve('src'), ...config.resolve.modules], | ||
} | ||
return config | ||
} | ||
modules: [path.resolve("src"), ...config.resolve.modules], | ||
}; | ||
return config; | ||
}; | ||
|
||
module.exports = [ | ||
['use-babel-config', '.babelrc'], | ||
['use-eslint-config', '.eslintrc'], | ||
["use-babel-config", ".babelrc"], | ||
["use-eslint-config", ".eslintrc"], | ||
fixLinkedDependencies, | ||
// includeSrcDirectory, | ||
] | ||
]; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters