Turbopack: Implement regex support for matching webpack loaders (#78733)
Inspired by https://x.com/wSokra/status/1907794635914612777, this allows you to declare a ‘marker’ in place of a glob, allowing you to express more conditions than simply just a glob pattern. To start, this allows us to implement regexes. For example, to match either `.svg` or `.svgr` files, use this `next.config.ts`:
```
const nextConfig: NextConfig = {
turbopack: {
rules: {
'#svg': {
as: '*.js',
loaders: ['@svgr/webpack'],
}
},
conditions: {
'#svg': {
path: /\.svgr?$/,
}
}
}
};
```