ts-loader
ts-loader copied to clipboard
Conditional Imports
@jbrantly
I was wondering if we can have a conditional imports
if(isDebugMode) { import('./a'); }
I created an example for how to do this: https://github.com/jbrantly/ts-loader/tree/master/test/conditionalRequire
@jbrantly the Example is using the "require"
I was wondering if it is possible to import a module inside the 'if condition'
require is how you import a module. That example does import a module.