-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fd3f20
commit a4cec52
Showing
3 changed files
with
102 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Import Vite libraries | ||
import { defineConfig } from "vite"; | ||
|
||
// Import resolve from Rollup (you may not need this since Vite has built-in module resolution) | ||
import resolve from "@rollup/plugin-node-resolve"; | ||
|
||
// Export Vite configuration | ||
export default defineConfig({ | ||
build: { | ||
rollupOptions: { | ||
input: "codemirror.js", | ||
output: { | ||
// dir: "../../target/slintdocs/_static/cm6.bundle.js", | ||
format: "iife", | ||
entryFileNames: "cm6.bundle.js", | ||
}, | ||
external: [ | ||
"https://snapshots.slint.dev/master/wasm-interpreter/slint_wasm_interpreter.js", | ||
], | ||
}, | ||
outDir: "../../target/slintdocs/_static", | ||
}, | ||
}); |
Oops, something went wrong.