sublime-import-helper
sublime-import-helper copied to clipboard
Work with absolute path resolution
In my webpack.config.js I have:
resolve: {
extensions: ['.js', '.jsx'],
alias: {
'@': __dirname + '/resources/js',
},
},
So I can import modules via:
import { something } from '@/utils'
Is there a setting for sublime-import-helper that I can set that will respect this name resolution. Currently, when I insert import it uses relative paths
sublime-import-helper supports paths maps from tsconfig.json, read more here
https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping