2024-11-05 10:36:39 +00:00
|
|
|
import typescript from "@rollup/plugin-typescript"
|
2022-01-05 04:47:23 +00:00
|
|
|
import { lezer } from "@lezer/generator/rollup"
|
2021-11-09 19:46:08 +00:00
|
|
|
|
|
|
|
|
export default {
|
2021-11-10 09:01:00 +00:00
|
|
|
input: "src/index.js",
|
2022-01-05 04:47:23 +00:00
|
|
|
external: (id) => id != "tslib" && !/^(\.?\/|\w:)/.test(id),
|
2021-11-09 19:46:08 +00:00
|
|
|
output: [
|
2022-01-05 04:47:23 +00:00
|
|
|
{ file: "dist/index.cjs", format: "cjs" },
|
|
|
|
|
{ dir: "./dist", format: "es" },
|
2021-11-09 19:46:08 +00:00
|
|
|
],
|
2024-11-05 10:36:39 +00:00
|
|
|
plugins: [
|
|
|
|
|
lezer(),
|
|
|
|
|
typescript({
|
|
|
|
|
tsconfig: "./tsconfig.json"
|
|
|
|
|
})
|
|
|
|
|
],
|
2021-11-09 19:46:08 +00:00
|
|
|
}
|