mirror of
https://github.com/penpot/penpot.git
synced 2025-06-30 19:36:58 +02:00
✨ Import text-editor code into the repository
This commit is contained in:
parent
68397edd4d
commit
04a0d867b0
65 changed files with 11112 additions and 7 deletions
46
frontend/text-editor/vite.config.js
Normal file
46
frontend/text-editor/vite.config.js
Normal file
|
@ -0,0 +1,46 @@
|
|||
import { resolve } from "node:path";
|
||||
import { defineConfig } from "vite";
|
||||
import { coverageConfigDefaults } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": resolve("."),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
minify: false,
|
||||
sourcemap: true,
|
||||
lib: {
|
||||
entry: "editor/TextEditor.js",
|
||||
name: "TextEditor",
|
||||
fileName: "TextEditor",
|
||||
formats: ["es"],
|
||||
},
|
||||
terserOptions: {
|
||||
compress: true,
|
||||
mangle: true,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
coverage: {
|
||||
enabled: true,
|
||||
exclude: ["main.js", "**/scripts/**", ...coverageConfigDefaults.exclude],
|
||||
},
|
||||
poolOptions: {
|
||||
threads: {
|
||||
singleThread: true,
|
||||
},
|
||||
},
|
||||
environmentOptions: {
|
||||
jsdom: {
|
||||
resources: "usable",
|
||||
},
|
||||
},
|
||||
browser: {
|
||||
name: "chromium",
|
||||
provider: "playwright",
|
||||
},
|
||||
exclude: ["main.js", "**/scripts/**", "**/node_modules/**", "**/dist/**"],
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue