Fix studio-web build errors

This commit is contained in:
Danny McGee
2023-12-08 00:36:27 -05:00
parent 38a4141641
commit 2131eec891
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -1 +1,2 @@
export * from "./lib/canvas-provider.element";
export * from "./lib/viewer.element";
+6 -2
View File
@@ -1,14 +1,18 @@
/// <reference types='vitest' />
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.