Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new alias option #10

Merged
merged 1 commit into from
Jan 14, 2024
Merged

feat: add new alias option #10

merged 1 commit into from
Jan 14, 2024

Conversation

ivodolenc
Copy link
Member

Type of Change

  • New feature

Request Description

Adds new alias option.

alias

  • Type: true
  • Default: undefined

Specifies global path alias support.

If true, it enables import prefixes:

  • @/*
  • ~/*
// Imports module from './src/utils/index.js'
import { module } from '@/utils/index.js'

// or

// Imports module from './src/utils/index.js'
import { module } from '~/utils/index.js'

@ivodolenc ivodolenc added the feat New feature label Jan 14, 2024
@ivodolenc ivodolenc merged commit fe59706 into main Jan 14, 2024
@ivodolenc ivodolenc deleted the feat/alias branch January 14, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant