flowjs / flow.js

A JavaScript library providing multiple simultaneous, stable, fault-tolerant and resumable/restartable file uploads via the HTML5 File API.
Other
2.96k stars 346 forks source link

Question: Is it possible to avoid long relative paths ? #345

Closed searleser97 closed 3 years ago

searleser97 commented 3 years ago

Could you point me on an example of how to configure flow.js so that I could just use the name of a file for imports instead of long relative paths ?. This implies that the name of my files in my entire working directory are unique.

example:

Directories

pages/components/foo.js
common/types/abc.js

Current import statements

import foo from "../../pages/components/foo"
import abc from "../common/types/abc"

Desired import statements

import foo from "foo"
import abc from "abc"
drzraf commented 3 years ago

I guess this refers to https://github.com/facebook/flow