Skip to content

Commit

Permalink
fix for PlayCanvas engine sourcemaps in the examples browser (#5447)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellthompson committed Jun 29, 2023
1 parent 212bfaa commit 5d0f402
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 1 deletion.
87 changes: 87 additions & 0 deletions examples/package-lock.json

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

1 change: 1 addition & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"react-router-dom": "^5.2.0",
"resize-observer-polyfill": "^1.5.1",
"rollup": "^2.74.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"serve": "^13.0.2",
Expand Down
3 changes: 2 additions & 1 deletion examples/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import replace from '@rollup/plugin-replace';
import typescript from 'rollup-plugin-typescript2';
import { terser } from 'rollup-plugin-terser';
import alias from '@rollup/plugin-alias';
import sourcemaps from 'rollup-plugin-sourcemaps';
import date from 'date-and-time';
import path from 'path';
import fs from 'fs';
Expand Down Expand Up @@ -117,7 +118,6 @@ const builds = [
]
},
{
// use glob in the input
input: 'src/iframe/index.mjs',
output: {
name: 'bundle',
Expand All @@ -144,6 +144,7 @@ const builds = [
typescript({
tsconfig: 'tsconfig.json'
}),
process.env.NODE_ENV === 'development' ? sourcemaps() : null,
timestamp()
]
},
Expand Down

0 comments on commit 5d0f402

Please sign in to comment.