Skip to content

Commit

Permalink
add conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 13, 2022
1 parent 3251720 commit 2f760f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/adapter-cloudflare-workers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default function ({ config = 'wrangler.toml' } = {}) {

await esbuild.build({
platform: 'browser',
conditions: ['worker', 'browser'],
sourcemap: 'linked',
target: 'es2020',
entryPoints: [`${tmp}/entry.js`],
Expand Down
1 change: 1 addition & 0 deletions packages/adapter-cloudflare/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function () {

await esbuild.build({
platform: 'browser',
conditions: ['worker', 'browser'],
sourcemap: 'linked',
target: 'es2020',
entryPoints: [`${tmp}/_worker.js`],
Expand Down

0 comments on commit 2f760f6

Please sign in to comment.