Skip to content

Commit

Permalink
[docs] Resolve .tsx first
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 22, 2020
1 parent 45c750f commit d1e4686
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/next.config.js
Expand Up @@ -84,6 +84,14 @@ module.exports = {
return {
...config,
plugins,
resolve: {
...config.resolve,
// resolve .tsx first
extensions: [
'.tsx',
...config.resolve.extensions.filter((extension) => extension !== '.tsx'),
],
},
node: {
fs: 'empty',
},
Expand Down

0 comments on commit d1e4686

Please sign in to comment.