Skip to content

Commit

Permalink
feat(UI): Adding sourcemaps for cloudfare builds (#12612)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakethvarma397 authored Feb 14, 2025
1 parent 74926b5 commit 12df3e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion datahub-web-react/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ task yarnLintFix(type: YarnTask, dependsOn: [yarnInstall, yarnGenerate]) {
}

task yarnBuild(type: YarnTask, dependsOn: [yarnInstall, yarnGenerate]) {
args = ['run', 'build']
args = ['run', project.hasProperty('sourcemap') ? 'buildWithSourceMap' :'build']

outputs.cacheIf { true }
inputs.files(
Expand Down
1 change: 1 addition & 0 deletions datahub-web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"start": "yarn run generate && vite",
"ec2-dev": "yarn run generate && CI=true vite",
"build": "yarn run generate && CI=false NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' vite build",
"buildWithSourceMap": "yarn run generate && CI=false NODE_OPTIONS='--max-old-space-size=8192 --openssl-legacy-provider' vite build --sourcemap",
"test": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' vitest",
"test-coverage": "yarn test run --coverage",
"generate": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' graphql-codegen --config codegen.yml",
Expand Down

0 comments on commit 12df3e7

Please sign in to comment.