Project build
This commit is contained in:
22
rollup.config.js
Normal file
22
rollup.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from "rollup"
|
||||
import ts from "rollup-plugin-ts"
|
||||
import pkg from "./package.json" assert { type: "json" }
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
input: "src/index.ts",
|
||||
|
||||
plugins: [ ts() ],
|
||||
|
||||
output: [
|
||||
{
|
||||
file: pkg.exports["."].import.default,
|
||||
format: "esm",
|
||||
},
|
||||
|
||||
{
|
||||
file: pkg.exports["."].require.default,
|
||||
format: "cjs",
|
||||
},
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user