diff --git a/studio-web/src/index.ts b/studio-web/src/index.ts index 65788a5..d51e81e 100644 --- a/studio-web/src/index.ts +++ b/studio-web/src/index.ts @@ -1 +1,2 @@ +export * from "./lib/canvas-provider.element"; export * from "./lib/viewer.element"; diff --git a/studio-web/vite.config.ts b/studio-web/vite.config.ts index 1e2e7f9..c983e7b 100644 --- a/studio-web/vite.config.ts +++ b/studio-web/vite.config.ts @@ -1,14 +1,18 @@ /// +import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; import { defineConfig } from "vite"; import dts from "vite-plugin-dts"; +import wasm from "vite-plugin-wasm"; +import topLevelAwait from "vite-plugin-top-level-await"; import * as path from "path"; -import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; export default defineConfig({ cacheDir: "../node_modules/.vite/studio-web", plugins: [ nxViteTsPaths(), + wasm(), + topLevelAwait(), dts({ entryRoot: "src", tsConfigFilePath: path.join(__dirname, "tsconfig.lib.json"), @@ -31,7 +35,7 @@ export default defineConfig({ fileName: "index", // Change this to the formats you want to support. // Don't forget to update your package.json as well. - formats: ["es", "cjs"], + formats: ["es"], }, rollupOptions: { // External packages that should not be bundled into your library.