Skip to content

Commit

Permalink
Fix fast refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
theninthsky committed Jun 19, 2022
1 parent 294cb48 commit 4697927
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = (_, { mode }) => {
devMiddleware: { stats: 'errors-warnings' }
},
cache: { type: 'filesystem' },
devtool: production ? undefined : 'source-map',
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
extensions: ['.ts', '.tsx', '.js', '.jsx']
Expand All @@ -35,7 +34,7 @@ module.exports = (_, { mode }) => {
loader: 'ts-loader',
options: {
getCustomTransformers: () => ({
before: production ? [ReactRefreshTypeScript()] : []
before: production ? [] : [ReactRefreshTypeScript()]
}),
transpileOnly: true
}
Expand Down

0 comments on commit 4697927

Please sign in to comment.