diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2026-01-04 22:15:20 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2026-01-04 22:15:20 -0800 |
| commit | 686c6f90d7a3c2bc0f8b89619c5d91ee8fb320e4 (patch) | |
| tree | 4813432a71edb425fe453316e3e07f637690a0b1 /rollup.config.js | |
| download | codemirror-lang-tabloid-686c6f90d7a3c2bc0f8b89619c5d91ee8fb320e4.tar.gz codemirror-lang-tabloid-686c6f90d7a3c2bc0f8b89619c5d91ee8fb320e4.zip | |
Add tabloid language support
Diffstat (limited to 'rollup.config.js')
| -rw-r--r-- | rollup.config.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 0000000..8bdc023 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,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()] +} |
