mirror of
https://github.com/simonw/datasette.git
synced 2026-07-13 19:14:35 +02:00
cm-editor-6.0.1.{js,bundle.js} -> cm-editor.{js,bundle.js}; new
npm run build:codemirror replaces the documented rollup one-liner.
Cache busting already handled by the static() template helper's
?_hash= content hash.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
import terser from "@rollup/plugin-terser";
|
|
|
|
export default {
|
|
input: "datasette/static/cm-editor.js",
|
|
output: {
|
|
file: "datasette/static/cm-editor.bundle.js",
|
|
format: "iife",
|
|
name: "cm",
|
|
},
|
|
plugins: [nodeResolve(), terser()],
|
|
};
|