Skip to content

Commit

Permalink
Merge pull request #1 from matteo-cristino/fix/local_testing
Browse files Browse the repository at this point in the history
fix: using local grammar package now works as using package published over npm
  • Loading branch information
puria authored Sep 2, 2024
2 parents 9242ed1 + bcde058 commit eb38c1a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
import { nodeResolve } from "@rollup/plugin-node-resolve"
import { nodeResolve } from "@rollup/plugin-node-resolve";

export default {
input: "./editor.mjs",
output: {
file: "./editor.bundle.js",
format: "iife"
format: "iife",
},
plugins: [nodeResolve()]
}
plugins: [
nodeResolve({
dedupe: [
"@codemirror/state",
"@codemirror/language",
"@lezer/highlight",
"@lezer/lr",
"@codemirror/autocomplete",
],
}),
],
};

0 comments on commit eb38c1a

Please sign in to comment.