Skip to content

Commit

Permalink
Merge pull request #1769 from finos/fix-debug-again
Browse files Browse the repository at this point in the history
Fix `--debug` flag for real this time
  • Loading branch information
texodus authored Mar 16, 2022
2 parents f439f26 + e710a16 commit 58c0c0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/blocks/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const replacements = {
"perspective-viewer-datagrid@latest/dist/cdn/perspective-viewer-datagrid.js",
"perspective-viewer-d3fc/dist/cdn/perspective-viewer-d3fc.js":
"perspective-viewer-d3fc@latest/dist/cdn/perspective-viewer-d3fc.js",
"perspective-workspace/dist/cdn/perspective-workspace.js":
"perspective-workspace@latest/dist/cdn/perspective-workspace.js",
};

execute`mkdir -p dist`;
Expand Down
3 changes: 2 additions & 1 deletion rust/perspective-viewer/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ async function build_all() {

// Generate wasm-bindgen bindings
const wasm_bindgen_debug = process.env.PSP_DEBUG ? "--debug" : "";
const UNOPT_PATH = `build/wasm32-unknown-unknown/release/perspective_viewer.wasm`;
const profile_dir = process.env.PSP_DEBUG ? "debug" : "release";
const UNOPT_PATH = `build/wasm32-unknown-unknown/${profile_dir}/perspective_viewer.wasm`;
execSync(
`wasm-bindgen ${UNOPT_PATH} ${wasm_bindgen_debug} --out-dir dist/pkg --typescript --target web`,
INHERIT
Expand Down

0 comments on commit 58c0c0d

Please sign in to comment.