-1

was wondering what is the significance of “@“ in the import.

For example: Import Container from “@core/material...”

Is it a pathing thing? Like ../ or ./?

Malyz
  • 37
  • 2

1 Answers1

-1

the @ will search through the node_modules rather than having to do something like ../../../../core/material

so the @ points to the root of the project rather than the current directory.

This thread explains it further: What does the @ symbol do in javascript imports?

Charlie Fish
  • 15,550
  • 16
  • 72
  • 158
flyingCode
  • 102
  • 2
  • 10