feat: implement build system and development workflow
- Add npm scripts for CSS/JS compilation (build:css, build:js, build) - Create PowerShell build automation script - Document development workflow in README - Add troubleshooting guide for build issues - Specify proper file structure and compilation process Supports Tailwind CSS v3.4.0 and esbuild bundling with source maps.
This commit is contained in:
22
node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js
generated
vendored
Normal file
22
node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default function getJSXPragmaInfo(options) {
|
||||
const [base, suffix] = splitPragma(options.jsxPragma || "React.createElement");
|
||||
const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || "React.Fragment");
|
||||
return {base, suffix, fragmentBase, fragmentSuffix};
|
||||
}
|
||||
|
||||
function splitPragma(pragma) {
|
||||
let dotIndex = pragma.indexOf(".");
|
||||
if (dotIndex === -1) {
|
||||
dotIndex = pragma.length;
|
||||
}
|
||||
return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];
|
||||
}
|
||||
Reference in New Issue
Block a user