初始化项目,添加 favicon.ico、screenshot.png 等静态资源文件,以及 Vue、TailwindCSS 等依赖项。配置了 Vite 和 PostCSS,并生成了基本的项目结构。
23 lines
589 B
JavaScript
23 lines
589 B
JavaScript
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getJSXPragmaInfo(options) {
|
|
const [base, suffix] = splitPragma(options.jsxPragma || "React.createElement");
|
|
const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || "React.Fragment");
|
|
return {base, suffix, fragmentBase, fragmentSuffix};
|
|
} exports.default = getJSXPragmaInfo;
|
|
|
|
function splitPragma(pragma) {
|
|
let dotIndex = pragma.indexOf(".");
|
|
if (dotIndex === -1) {
|
|
dotIndex = pragma.length;
|
|
}
|
|
return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];
|
|
}
|