mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 07:01:28 +00:00
13 lines
335 B
JavaScript
13 lines
335 B
JavaScript
import typescript from "rollup-plugin-ts"
|
|
import { lezer } from "@lezer/generator/rollup"
|
|
|
|
export default {
|
|
input: "src/index.js",
|
|
external: (id) => id != "tslib" && !/^(\.?\/|\w:)/.test(id),
|
|
output: [
|
|
{ file: "dist/index.cjs", format: "cjs" },
|
|
{ dir: "./dist", format: "es" },
|
|
],
|
|
plugins: [lezer(), typescript()],
|
|
}
|