signal-polyfill
Version:
A polyfill for the TC39 Signal proposal.
17 lines (15 loc) • 383 B
text/typescript
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
const entry = join(dirname(fileURLToPath(import.meta.url)), './src/index.ts');
export default defineConfig({
plugins: [dts()],
build: {
lib: {
entry,
formats: ["es"],
fileName: "index"
}
}
});