Skip to content

Commit

Permalink
This module gets prodded by react fast refresh, causing unwanted fail…
Browse files Browse the repository at this point in the history
…ures
  • Loading branch information
benmerckx committed May 24, 2022
1 parent 2c66824 commit 74a57d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/cli/src/static/server/client.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// This is a commonjs file so bundlers cannot statically analyze exports
// We could alternatively generate every possible export name

function fail() {
throw new Error(`This should not be called in client bundle`)
}

module.exports = new Proxy(fail, {get: fail})
module.exports = {}

0 comments on commit 74a57d2

Please sign in to comment.