Skip to content

Commit

Permalink
build: fix top-level await issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jan 18, 2024
1 parent bf2c9a1 commit 5caf29e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wet-pandas-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zazuko/env-bundle": minor
---

Exclude `@rdfjs/serializer-jsonld-ext` from bundle due to top-level await in `ky-universal`
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/env-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"prepack": "npm run build",
"build": "esbuild env.ts --bundle --platform=node --format=cjs --sourcemap=external --outfile=env.js"
"build": "esbuild env.ts --bundle --platform=node --format=cjs --sourcemap=external --outfile=env.js --external:@rdfjs/serializer-jsonld-ext"
},
"files": [
"**/*.js",
Expand Down

0 comments on commit 5caf29e

Please sign in to comment.