Skip to content

Commit

Permalink
copy .map file for mesher in dev for better dx
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Dec 3, 2024
1 parent 0b8eaa4 commit cf7c466
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const appConfig = defineConfig({
if (fs.existsSync('./prismarine-viewer/dist/mesher.js') && dev) {
// copy mesher
fs.copyFileSync('./prismarine-viewer/dist/mesher.js', './dist/mesher.js')
fs.copyFileSync('./prismarine-viewer/dist/mesher.js.map', './dist/mesher.js.map')
} else if (!dev) {
await execAsync('pnpm run build-mesher')
}
Expand Down

0 comments on commit cf7c466

Please sign in to comment.