Skip to content

Instantly share code, notes, and snippets.

@vschoener
Last active August 12, 2020 14:37
Show Gist options
  • Save vschoener/c7817cb10b0a5f98d82c570a859c6fea to your computer and use it in GitHub Desktop.
Save vschoener/c7817cb10b0a5f98d82c570a859c6fea to your computer and use it in GitHub Desktop.
medium say-bye-to-relative-path
import { GoogleService } from '@src/services/google.service';
import { AwsService } from '@services/aws.service';
import { AwsService as AWS } from '@/services/aws.service';
new AwsService().log('aws service using @services/aws.service');
new GoogleService().call('google service using @src/services/google.service');
new AWS().log('aws service alias using @/services/aws.service');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment