DenoDDeno
Powered by
KawaxteK
Deno•2y ago•
34 replies
Kawaxte

How to define local import maps?

I got these things in the tests above:
import { assertAlmostEquals, assertEquals } from "@std/assert";
import { Vector2 } from "../src/math/mod.ts";
import { QUARTER_PI } from "../src/utils/math.util.ts";
import { assertAlmostEquals, assertEquals } from "@std/assert";
import { Vector2 } from "../src/math/mod.ts";
import { QUARTER_PI } from "../src/utils/math.util.ts";


Notice how I have to do a lot of
./
./
js to get to the next? I understand there'st the
"imports": {}"
"imports": {}"
support in
deno.json(c)
deno.json(c)
, and I do remember using smth like Bun's
package.json
package.json
's
"workspace": []
"workspace": []
system to create localised
@one/two
@one/two
, complete with
index.ts
index.ts
in their respective folders for exports.

Are there are examples on defining local import maps?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How exactly do import maps work?
PixelPPixel / help
4y ago
Cannot use import maps
kingbriKkingbri / help
16mo ago
Override npm import dep with import maps?
ZabiZZabi / help
4y ago
Using esbuild with import maps
kebKkeb / help
3y ago