InsightSoftwareConsortium / craco-itk

A plugin for craco to use itk.js with create-react-app.
Apache License 2.0
3 stars 2 forks source link

Plugin for itk-wasm #21

Open Guzzler opened 2 years ago

Guzzler commented 2 years ago

This seems to not be working with the new version of itk-wasm and gives some issues. Would it be possible to update the configuration to support that as well?

Guzzler commented 2 years ago

This would be nice to have as well as support for webpack 5 configuration of the same.

pd-lb commented 9 months ago

@thewtex we're also interested in this. Can you at least provide some hints on how to migrate? What should be done with PolyDataIOs, for example?

https://github.com/InsightSoftwareConsortium/craco-itk/blob/master/index.js#L23-L26

thewtex commented 9 months ago

Hi,

As noted in the migration guide, the PolyDataIOs are no longer supported. This may be enough to get you going with the current configuration.

In itk-wasm we can working towards the case where:

A. No extra configuration is required out-of-the box.

B. To vendor WebAssembly assets, the process will be,

  1. Copy the assets with something like the WebPack Copy plugin.
  2. At runtime (instead of the old build-time configuration), call the function setPipelinesBaseUrl.

This has been a long time in the making, but the benefits are worth it. DICOM functionality has been migrated, in progress are the image-io, and the mesh-io will follow.