OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to stop visual studio DO NOT add 'require' header for my javascript file?

  • Thread starter Thread starter dexiang
  • Start date Start date
D

dexiang

Guest
When I write js code in visual studio, sometimes stange 'require' headers was added to the header of my js file, I don't know whether it was done by visual studio or resharper(this is the only extension I installed). Does anyone knows how to stop this?

the content of the header like this:

Code:
const { every } = require("core-js/library/fn/dict");

<p>When I write js code in visual studio, sometimes stange 'require' headers was added to the header of my js file, I don't know whether it was done by visual studio or resharper(this is the only extension I installed).
Does anyone knows how to stop this?</p>
<p>the content of the header like this:</p>
<pre><code>const { every } = require("core-js/library/fn/dict");
</code></pre>
 
Top