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

How do you import something different in tests vs release? #192

Open
jonathanpeppers opened this issue Jul 8, 2022 · 0 comments
Open

How do you import something different in tests vs release? #192

jonathanpeppers opened this issue Jul 8, 2022 · 0 comments

Comments

@jonathanpeppers
Copy link

Is your feature request related to a problem? Please describe.

In tests, we'd like to use:

import * as ort from 'onnxruntime-node';

But in the actual browser extension:

import * as ort from 'onnxruntime-web';

Is there a way to do this?

Describe the solution you'd like

Point me to a JavaScript / extension-cli example on how to do this?

Additional context

I have mostly a C#/.NET/Java background, so I really have no idea about JavaScript. Any suggestions will help a lot! Thanks!

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

No branches or pull requests

1 participant