-
Notifications
You must be signed in to change notification settings - Fork 598
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
Unable to import from library #367
Comments
The code is modularised using this intro.js file. It should work with RequireJS. |
UP! |
Ok, it's maybe time to use es6 |
While waiting for an es6 update, I think I have a quick fix. You can use the webpack exports-loader to package dwv in a way you can import it. // eslint-disable-next-line import/no-webpack-loader-syntax
import dwv from 'exports-loader?dwv!dwv'; The comment line disables the default linting error preventing the use of webpack loaders. I tried it in a react environment, I hope it works in others... This solves the import error, I'll try to create a dwv-react viewer to check if there could be others... |
A dwv-react viewer is a bit tricky... It needs to import the appgui file which is not 'importable' as it is. Not sure what's the best way to go forward... |
I created an issue for this (#399). Please comment there if you need. |
I am unable to import with front end libraries such as React/Vue
Is it possible for you to incorporate RequireJS and/or Browserify which will enable Client side use?
The text was updated successfully, but these errors were encountered: