give higher priority for modules in frontend 💅

this fixes a bug where it would not be possible to extend styled-components from UI because they would require a different instance of styled-components
This commit is contained in:
Sérgio Ramos 2017-02-08 22:28:58 +00:00 committed by Sérgio Ramos
parent 572d44230c
commit 31e004781f

View File

@ -9,9 +9,9 @@ const FRONTEND = process.env.NODE_ENV === 'production'
module.exports = { module.exports = {
ROOT, ROOT,
MODULES: [ MODULES: [
'node_modules',
path.join(FRONTEND, 'node_modules'), path.join(FRONTEND, 'node_modules'),
path.join(UI, 'node_modules'), path.join(UI, 'node_modules'),
'node_modules'
], ],
FRONTEND: path.join(FRONTEND, 'src'), FRONTEND: path.join(FRONTEND, 'src'),
UI: process.env.NODE_ENV === 'production' UI: process.env.NODE_ENV === 'production'