cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
468 stars 250 forks source link

[Bug] babel.config.js Not effective #1346

Open 857128237 opened 1 week ago

857128237 commented 1 week ago

Describe the Bug

babel.config.js Not effective

Steps to Reproduce

There is static {this. frameRangeExtractor=/(\/frames \/| [&?] frameNumber=) ([^/&?] *)/i;} similar code in the (core、tools (dist/esm)) folder, which is not compatible with many browsers

The current behavior

Low version Safari browser, Android, iOS cannot run

The expected behavior

Packaging compatible with most browsers

OS

macOS 12.0.1

Node version

16.20.2

Browser

Safari 15.1

wayfarer3130 commented 2 days ago

Could you list the exact browsers where this doesn't work? There are a LOT of things in the newer CS3D which don't work in old browsers, including the webgl. This particular one isn't hard to fix, but I'd like a list of browsers it doesn't supprot before giving up on the functionality.