Require js ruins code navigation

前端 未结 2 704
刺人心
刺人心 2021-02-05 07:54

require.js states the way of defining objects inside modules with define([requiremens], object) as best way.

So every page, or other js file, w

2条回答
  •  难免孤独
    2021-02-05 08:54

    It's a known issue, please star/vote.

    From the issue description:

    The dojo library switched to AMD's format define() for loading modules instead of dojo.require(). Previously I was able to use Ctrl+B on dojo.require('path.to.someJs') to jump to the declaration. This does not work on the new format define(['path/to/someJs]', ...).

    As PyCharm, WebStorm, PhpStorm and IntelliJ IDEA share the same JavaScript plug-in, this issue also applies to the product that you are using. You will continue to observe the described problem until this bug is fixed. Sorry for the inconvenience.

提交回复
热议问题