feat: Modernize the visual card editor. (#2586)

This commit is contained in:
Dermot Duffy
2026-07-20 20:44:16 -07:00
committed by GitHub
parent e204ec183f
commit b6e1de5999
146 changed files with 8487 additions and 5992 deletions
+5 -2
View File
@@ -8,9 +8,11 @@ import typescript from '@rollup/plugin-typescript';
import gitInfo from 'rollup-plugin-git-info';
import serve from 'rollup-plugin-serve';
import styles from 'rollup-plugin-styler';
import svgo from 'rollup-plugin-svgo';
import { visualizer } from 'rollup-plugin-visualizer';
import { cleanDist } from './scripts/clean-dist-plugin.js';
import { svgPath } from './scripts/svg-path-plugin.js';
const watch = process.env.ROLLUP_WATCH === 'true' || process.env.ROLLUP_WATCH === '1';
const dev = watch || process.env.DEV === 'true' || process.env.DEV === '1';
@@ -35,6 +37,7 @@ const serveopts = {
* @type {import('rollup').RollupOptions['plugins']}
*/
const plugins = [
cleanDist(),
gitInfo.default(
// Limit git-info to the project's own package.json. Without this it also
// rewrites any dependency's imported package.json into ESM, which then breaks
@@ -54,7 +57,7 @@ const plugins = [
includePaths: ['./node_modules/'],
},
}),
svgo(),
svgPath(),
image({ exclude: '**/*.svg' }),
nodeResolve({
browser: true,