benmerckx / genes

Generates split ES6 modules and Typescript definitions from Haxe modules.
43 stars 8 forks source link

problem with jsrequire and relative path. #58

Open francescoagati opened 2 years ago

francescoagati commented 2 years ago

hello, how can import a relative path with genes? for example i have create a project and in this file haxe https://github.com/francescoagati/test-genes-dts2hx/blob/main/src/subora/Subora.hx

genes create this file https://github.com/francescoagati/test-genes-dts2hx/blob/main/subora/Subora.js

where there is an import of View1 (import * as View1 from "./views/view1") generate with dts2hx (https://github.com/francescoagati/test-genes-dts2hx/blob/main/externs/views/View1.hx) that create this jsqrequire (@:jsRequire("./views/view1"))

there is a mode with genes for have all imports not bases on a relative path but from an absolute path?