{"library":"ifdef-loader","type":"library","category":null,"description":"Webpack loader that adds conditional compilation directives (`#if`, `#elif`, `#else`, `#endif`) inside JavaScript or TypeScript comments, processed at build time. Current stable version is 2.3.2 (last released on npm), with no fixed release cadence; the project appears to be in maintenance mode with infrequent updates. Key differentiators: directives are written inside triple-slash comments so they don't interfere with normal parsing or linters; supports nested conditions, arbitrary JS expressions, and an uncomment-prefix feature to hide syntactically invalid code in comments. Comparable to `preprocessor-loader` or manual environment-based code stripping.","language":"javascript","status":"maintenance","version":"2.3.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ifdef-loader","imports":["import ifdefLoader from 'ifdef-loader';","use: [{ loader: 'ifdef-loader', options: { DEBUG: true, version: 3 } }]","const q = require('querystring').encode({ DEBUG: true }); 'ifdef-loader?' + q"]},{"cmd":"yarn add ifdef-loader","imports":[]},{"cmd":"pnpm add ifdef-loader","imports":[]}],"homepage":null,"github":"https://github.com/nippur72/ifdef-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ifdef-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ifdef-loader/compatibility"}}