sublime-import-helper icon indicating copy to clipboard operation
sublime-import-helper copied to clipboard

Work with absolute path resolution

Open selvinkuik opened this issue 3 years ago • 1 comments

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

selvinkuik avatar Jan 31 '22 12:01 selvinkuik

sublime-import-helper supports paths maps from tsconfig.json, read more here https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping

unlight avatar Jan 31 '22 18:01 unlight