Skip to content

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

@jonathanpeppers

Description

@jonathanpeppers

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions