- 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.
14 lines
428 B
JavaScript
14 lines
428 B
JavaScript
import { isScalar } from '../nodes/identity.js';
|
|
|
|
function mapIncludes(ctx, items, search) {
|
|
const { uniqueKeys } = ctx.options;
|
|
if (uniqueKeys === false)
|
|
return false;
|
|
const isEqual = typeof uniqueKeys === 'function'
|
|
? uniqueKeys
|
|
: (a, b) => a === b || (isScalar(a) && isScalar(b) && a.value === b.value);
|
|
return items.some(pair => isEqual(pair.key, search));
|
|
}
|
|
|
|
export { mapIncludes };
|