mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-21 22:50:51 +00:00
18 lines
397 B
JavaScript
18 lines
397 B
JavaScript
import typescript from "@rollup/plugin-typescript"
|
|
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({
|
|
tsconfig: "./tsconfig.json"
|
|
})
|
|
],
|
|
}
|