You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Meh
import config from '../../../../../../../config';
// Awesome!
import config from '@cuteapp/config';
// or maybe even relatively from a specified root
import config from 'config';
According to this, babel supports this, so it seems we should be able to support it here as well.
Would it be possible to just add an adjacent configuration to my .neutrinorc.js as a workaround for the time being?
The text was updated successfully, but these errors were encountered:
It would be nice to support this, but I don't know what the necessary tsconfig would be (baseUrl isn't for aliases like @cuteapp in your example; it's for specifying the root when using absolute paths)
If you find a configuration which works, I'd be happy to add support for it to the library. I seem to remember that tsc's ability to alias imports is pretty lacking though (I was investigating it for #6, which never got implemented due to these limitations, but maybe things have changed in the last year-and-a-bit)
If you want to try some stuff you can always set custom tsconfig like this:
consttypescript=require('neutrinojs-typescript');module.exports={use: [typescript({tsconfig: {compilerOptions: {/* arbitrary tsconfig here */},}}),],};
According to this, babel supports this, so it seems we should be able to support it here as well.
Would it be possible to just add an adjacent configuration to my
.neutrinorc.js
as a workaround for the time being?The text was updated successfully, but these errors were encountered: