AlgoWorld Docs
  • Overview
  • Swapper
    • Quick Start
      • Prerequisites
      • Setting up local development
      • Scripts
    • Architecture
      • Public Swaps
    • Directory structure
    • Env variables
    • Path Mapping
    • Testing
      • End to end tests
  • Explorer
    • Quick Start
    • Architecture
      • Gallery
      • City Packs
      • City Influence
Powered by GitBook
On this page

Was this helpful?

  1. Swapper

Path Mapping

TypeScript on algoworld-swapper repo is pre-configured with custom path mappings. To import components or files, use the @ prefix.

import { Button } from '@/components/Button';

// To import images or other files from the public folder
import avatar from '@/public/avatar.png';
PreviousEnv variablesNextTesting

Last updated 2 years ago

Was this helpful?