Initial Commit
This commit is contained in:
44
packages/media/audio/audio-controllers/vite.config.ts
Normal file
44
packages/media/audio/audio-controllers/vite.config.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { defineConfig } from "vite";
|
||||
import dts from "vite-plugin-dts";
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
cacheDir: "../../../node_modules/.vite/packages/audio-controllers",
|
||||
plugins: [
|
||||
dts({
|
||||
entryRoot: "src",
|
||||
tsconfigPath: "./tsconfig.lib.json",
|
||||
insertTypesEntry: true,
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
outDir: "./dist",
|
||||
emptyOutDir: true,
|
||||
reportCompressedSize: true,
|
||||
sourcemap: true,
|
||||
lib: {
|
||||
entry: {
|
||||
index: "src/index.ts",
|
||||
"base/index": "src/base/index.ts",
|
||||
"sequencer/index": "src/sequencer/index.ts",
|
||||
"arpeggiator/index": "src/arpeggiator/index.ts",
|
||||
"learn/index": "src/learn/index.ts",
|
||||
"binding/index": "src/binding/index.ts",
|
||||
"plugins/kontrol-s88/index": "src/plugins/kontrol-s88/index.ts",
|
||||
"plugins/maschine/index": "src/plugins/maschine/index.ts",
|
||||
"plugins/traktor-s4/index": "src/plugins/traktor-s4/index.ts",
|
||||
"error-codes/index": "src/error-codes/index.ts",
|
||||
},
|
||||
formats: ["es"],
|
||||
},
|
||||
rollupOptions: {
|
||||
treeshake: true,
|
||||
output: {
|
||||
preserveModules: true,
|
||||
preserveModulesRoot: "src",
|
||||
entryFileNames: "[name].js",
|
||||
},
|
||||
external: [/^@suaveplan\//, /^@opentelemetry\//, "tslib", "zod"],
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user