I’m using es6 imports for client-side code because it’s now supported out of the box in Chrome. I used the env preset to transform RxJS for Chrome >= 61:
"browsers": ["Chrome >= 61"]
However, all the requires, eg:
were transformed to import statements with source values that don’t have a .js extension, eg:
Chrome wants them to have the .js:
I’d like to know which plugin from the env preset is actually doing that transform so that I can investigate its options but I can’t work it out. Does anyone know?