feat!: move to esm and drop support for vue 2.6

This commit is contained in:
Justineo
2024-06-29 00:31:57 +08:00
committed by GU Yiling
parent 861674352b
commit 27c79b9012
20 changed files with 866 additions and 728 deletions

15
scripts/rollup.mjs Normal file
View File

@ -0,0 +1,15 @@
const EMPTY_FILE_ID = "__rollup_empty__";
/** @type {import('rollup').Plugin} */
export const ignoreCss = {
name: "ignore-css",
resolveId(source) {
if (source.endsWith(".css")) {
return EMPTY_FILE_ID;
}
return null;
},
load(id) {
return id === EMPTY_FILE_ID ? "" : null;
}
};