tern icon indicating copy to clipboard operation
tern copied to clipboard

can't find definition for es6 named exports

Open littlehome-eugene opened this issue 6 years ago • 0 comments
trafficstars

When I use

export const var1 = 'a' or

export { var1 }

can't find using tern-find-definition

It works fine finding other type of exports. I'm using latest version of tern and emacs plugin (20181108.722 from melpa)

.tern-project

 {
     "libs": [
     ],
     "ecmaVersion": 6,
     "plugins": {
         "modules":{},
         "es_modules":{},
     "webpack": {
       "configPath": "./webpack.tern.config.js"
     }
   }
 }

webpack.tern.config.js

 var path = require('path')

 console.log(path.resolve('./momsite/static'))
 module.exports = {
     resolve: {
       extensions: ['.js', '.json', 'jsx'],
     root: [
       path.resolve(__dirname, './momsite/static'),
       path.resolve(__dirname, './node_modules'),

     ],

     },
 }


littlehome-eugene avatar Dec 21 '18 05:12 littlehome-eugene