mirror of
https://github.com/danbulant/lezer-markdown-obsidian
synced 2026-05-19 04:18:46 +00:00
34 lines
703 B
JavaScript
34 lines
703 B
JavaScript
import typescript from "rollup-plugin-typescript2";
|
|
|
|
export default {
|
|
input: "./src/index.ts",
|
|
output: [
|
|
{
|
|
format: "cjs",
|
|
file: "./dist/index.cjs",
|
|
externalLiveBindings: false,
|
|
},
|
|
{
|
|
format: "es",
|
|
file: "./dist/index.js",
|
|
externalLiveBindings: false,
|
|
},
|
|
],
|
|
external: ["@lezer/common", "@lezer/markdown"],
|
|
plugins: [
|
|
typescript({
|
|
check: false,
|
|
tsconfigOverride: {
|
|
compilerOptions: {
|
|
lib: ["es5", "es6"],
|
|
sourceMap: true,
|
|
target: "es6",
|
|
strict: false,
|
|
declaration: true,
|
|
},
|
|
exclude: ["__tests__/*"],
|
|
},
|
|
include: ["src/*.ts"],
|
|
}),
|
|
],
|
|
};
|