blob: 8bdc023a1ec3fbdd638f43c05d1b22194a9b57e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import typescript from "@rollup/plugin-typescript"
import {lezer} from "@lezer/generator/rollup"
export default {
input: "src/index.ts",
external: id => id != "tslib" && !/^(\.?\/|\w:)/.test(id),
output: [
{file: "dist/index.cjs", format: "cjs"},
{dir: "./dist", format: "es"}
],
plugins: [lezer(), typescript()]
}
|