I'm using Webpack to bundle my JavaScript application. I saw a developer during a talk that had a line similar to this:
var foo = require('@/foo/bar');
OR
import '@/foo/bar';
What does the @ symbol mean in this case? A co-worker thought that it might be a shortcut to node_modules, and it's extremely difficult to get good search results for this type of question due to ambiguity.
The @
character has no special meaning in Webpack unless you configure it so. I suppose, it was a private npm module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With