Skip to content

Commit

Permalink
fix: fix sourcemaps in render-time errors (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenle authored Apr 10, 2024
1 parent 25d092c commit e05026c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-mangos-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blinkk/root': patch
---

fix: fix sourcemaps in render-time errors
2 changes: 2 additions & 0 deletions packages/root/bin/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
const require = createRequire(import.meta.url);
const packageJson = require(path.join(__dirname, '../package.json'));

require('source-map-support').install();

async function main(argv) {
const cli = new CliRunner('root.js', packageJson.version);
await cli.run(argv);
Expand Down
1 change: 1 addition & 0 deletions packages/root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"micromatch": "4.0.5",
"sass": "1.69.3",
"sirv": "2.0.3",
"source-map-support": "0.5.21",
"tiny-glob": "0.2.9",
"vite": "5.0.8"
},
Expand Down
15 changes: 9 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit e05026c

Please sign in to comment.