What does the @ symbol do in javascript imports?

For example:

import Component from '@/components/component'

In the code I’m looking at it behaves like ../ going up one level in the directory relative to the file path, but I’d like to know more generally what it does. Unfortunately I can’t find any documentation online due to the symbol searching problem.

8 Answers
8

Leave a Comment