ifdef-loader
ifdef-loader copied to clipboard
Webpack loader for JavaScript/TypeScript conditional compilation.
The `ts-loader` config should include the `onlyCompileBundledFiles: true` option. Otherwise, files that are required to be pre-processed to be valid and are currently not imported might produce ghost errors. Adding...
I have a `.js` file with an entry that looks like this: ``` { text: 'link text', /// #if CONDITION url: 'url/if/true' /// #else url: 'url/if/false /// #endif } ```...
Hi, I am trying out ifdef-loader with react-app-rewired. Below are the contents of my config-overrides.js file ` module.exports = function override(config, env) { console.log('override!'); const opts = { PRODUCTION:false, DEBUG:...
Found the repo here: https://stackoverflow.com/questions/28572380/conditional-build-based-on-environment-using-webpack Didn't realize options was where variables were defined, thought it automatically picked it up from definePlugin. Thanks!
These are my options: ```js const opts = { "ifdef-verbose": true, "ifdef-triple-slash": true }; ``` In some .js file I have: ```js /// #if STATS console.log('stats defined'); /// #else console.log('stats...
Hi, Instead of ts-loader, I have use ngtools/webpack which compile and perform AoT. does ifdef-loader work with ngtools/webpack? cheers, Khoa
Updating dependencies to the latest versions