Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

Use babel resolvers instead of 'absolute' imports #27

@jaeddy

Description

@jaeddy

Looking back to these comments in #22:

image

The @lib/environment import apparently gets interpreted (when trying to use babel-node to compile and execute an ES6+ formatted script) as a module/dependency:

Error: Cannot find module '@lib/environment'

It looks like we might be able to use babel-plugin-module-resolver to achieve similar aliasing benefits, but with more control and (hopefully) more flexibility for local testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions