DEV Community

Discussion on: Adding URL Search Parameters to Imports!

Collapse
 
gabrielrurbina profile image
Gabriel Urbina

There is limited support for this, add this into your tsconfig.json,

{
    "compilerOptions": {
        "paths": {
            "./somedir/*?q=hello": [
                "./somedir/*"
            ]
        }
    }
}
Enter fullscreen mode Exit fullscreen mode

Have a look at path-mapping