mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00
16 lines
309 B
JavaScript
16 lines
309 B
JavaScript
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;
|
|
}
|
|
};
|