UNPKG

lbundle

Version:

Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries

10 lines (7 loc) 286 B
import path from 'path'; const isJsx = (pkg)=>{ if (pkg.source && path.extname(pkg.source).includes('sx')) return true; return !!pkg.dependencies?.react || !!pkg.devDependencies?.react || !!pkg.peerDependencies?.react; }; export { isJsx }; //# sourceMappingURL=is-jsx.mjs.map