8000 GitHub - AnatoleLucet/Deema: A utility to resolve most non-vanilla JS import paths · GitHub
[go: up one dir, main page]

Skip to content
AnatoleLucetPublic

About

A utility to resolve most non-vanilla JS import paths

Resources

Stars

1 star

Watchers

2 watching

Forks

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

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0