Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Blacklist dist/ from devserver
Browse files Browse the repository at this point in the history
Summary:
Having previously run `yarn build` can otherwise
cause your devserver to stop working.

Caveat: If you have a Flipper checkout and it's called neither `sonar` nor `flipper`, you're still screwed.

Reviewed By: danielbuechele

Differential Revision: D14364984

fbshipit-source-id: 1652c94a95b1dcb6d34bb9040a9cd4cd70c6df55
  • Loading branch information
passy authored and facebook-github-bot committed Mar 7, 2019
1 parent e2eab5b commit 31c240b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/start-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ function startMetroServer(app) {
'index.js',
),
},
resolver: {
blacklistRE: /\/(sonar|flipper)\/dist\//,
},
watch: true,
}).then(metroBundlerServer => {
app.use(metroBundlerServer.processRequest.bind(metroBundlerServer));
Expand Down

0 comments on commit 31c240b

Please sign in to comment.