I was configuring webpack, and I saw something I am very confused about and cannot figure out.
x = {
test: /\\.css$/
}
console.log(x);
console.log(JSON.stringify(x));
I just don't understand how '/\.css$/' is a valid value, why is it not in quotes? Can someone tell me what is going on here? I suspect it is not a json thing but a javascript thing.. but can someone enlighten me?
Thanks