Skip to content

A utility to resolve most non-vanilla JS import paths

License

Notifications You must be signed in to change notification settings

AnatoleLucet/Deema

Repository files navigation

Deema

"Deema" stands for "deus-ex-machina" since it can resolve anything.

A utility to resolve most non-vanilla JS import paths

Usage

// tsconfig.json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": { "@/*": ["./*"] }
  }
}
import { generateResolver } from "deema";

const resolve = generateResolver("/my/root/path");

resolve("src/component/main.ts", "@/shared/sum"); // "../shared/sum"

This repo is more of an experiment for now. We'll see if its concept become viable.

About

A utility to resolve most non-vanilla JS import paths

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •