test: use vitest instead of jest
This commit is contained in:
parent
7d953d5a50
commit
bb6d22d14a
12 changed files with 530 additions and 2288 deletions
|
@ -2,11 +2,12 @@
|
|||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import copy from "@guanghechen/rollup-plugin-copy";
|
||||
import livereload from "rollup-plugin-livereload";
|
||||
import styles from "rollup-plugin-styles";
|
||||
import { swc } from "rollup-plugin-swc3";
|
||||
|
||||
import copy from "@guanghechen/rollup-plugin-copy";
|
||||
|
||||
import { distDirectory, name, sourceDirectory } from "./tools/const.js";
|
||||
import { convertJSONToPack } from "./tools/json-pack-tools.js";
|
||||
|
||||
|
@ -41,9 +42,8 @@ const config = {
|
|||
},
|
||||
plugins: [
|
||||
swc({
|
||||
minify: isProduction,
|
||||
jsc: {
|
||||
minify: {
|
||||
minify: isProduction && {
|
||||
sourceMap: true,
|
||||
mangle: {
|
||||
keepClassNames: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue