Skip to content

Use Vite asset imports for SciChart wasm files in the Vite template #282

@kahojyun

Description

@kahojyun

Hi, small suggestion for the Vite template:

Could it use Vite asset imports for the SciChart wasm files instead of vite-plugin-static-copy?

Example:

import { SciChartSurface } from "scichart";
import wasmUrl from "scichart/_wasm/scichart2d.wasm?url";
import wasmNoSimdUrl from "scichart/_wasm/scichart2d-nosimd.wasm?url";

SciChartSurface.configure({
  wasmUrl,
  wasmNoSimdUrl,
});

This feels a bit more Vite-native and avoids extra plugin/config setup.

I tested this locally in the react-vite template and npm run build completed successfully, with the SciChart wasm files emitted into dist/assets.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions