Last active
May 9, 2021 15:00
-
-
Save fivethreeo/c6bc4ef536681d712913069f7ffe967e to your computer and use it in GitHub Desktop.
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
// razzle.config.js | |
'use strict'; | |
module.exports = { | |
modifyWebpackOptions({ | |
options: { | |
webpackOptions, // the modified options that was used to configure webpack/ webpack loaders and plugins | |
} | |
}) { | |
webpackOptions.babelRule.include = webpackOptions.babelRule.include.concat([ | |
/grommet/ | |
]); | |
webpackOptions.notNodeExternalResMatch = (request, context) => { | |
return /grommet/.test(request) | |
}; | |
return webpackOptions; | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment