Closed vieron closed 8 years ago
If we can use imports?config=>{foo:true}, using imports?config=>{foo:true,bar:false} should also work. The inner comma is interpreted as a different value for the imports-loader and the result is invalid and unexpected JS code:
imports?config=>{foo:true}
imports?config=>{foo:true,bar:false}
var config = {foo:true; var bar:false}
Any workaround for this?
Technically you need to urlencode it: imports?config=>{foo:true%2Cbar:false}
imports?config=>{foo:true%2Cbar:false}
I ended with imports?config=>require('shims')
imports?config=>require('shims')
If we can use
imports?config=>{foo:true}
, usingimports?config=>{foo:true,bar:false}
should also work. The inner comma is interpreted as a different value for the imports-loader and the result is invalid and unexpected JS code:Any workaround for this?