-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
  • 47
  • 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
  • 18,491
  • 19
  • 86
  • 179
flyingCode
  • 132
  • 2
  • 10