Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bindgen): Default to itk-wasm package asset configuration #738

Merged

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Jan 27, 2023

At runtime, we use in order of preference:

  1. Package asset configuration
  2. itk-wasm asset configuration
  3. jsDeliver

let pipelineWorkerUrl: string | URL | null = `https://cdn.jsdelivr.net/npm/itk-compress-stringify@${packageJson.version}/dist/web-workers/pipeline.worker.js`

let pipelineWorkerUrl: string | URL | null | undefined
let defaultPipelineWorkerUrl: string | URL | null = `https://cdn.jsdelivr.net/npm/itk-compress-stringify@${packageJson.version}/dist/web-workers/pipeline.worker.js`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const if not going to modify? Also, doesn't need to have the extra union types.

At runtime, we use in order of preference:

1. Package asset configuration
2. itk-wasm asset configuration
3. jsDeliver
@thewtex thewtex force-pushed the compress-stringify-init branch from 06a7146 to 3341ca0 Compare January 27, 2023 18:49
@thewtex thewtex merged commit cfa7ada into InsightSoftwareConsortium:main Jan 31, 2023
@thewtex thewtex deleted the compress-stringify-init branch January 31, 2023 01:36
@github-actions
Copy link

🎉 This PR is included in version 1.0.0-b.66 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants