summaryrefslogtreecommitdiff
path: root/tests/specs/npm/adding_npm_dep_in_dynamic_import/main.ts
blob: 75e9b919994429e16e5103ab102b624ad963c140 (plain)
1
2
3
4
5
6
7
8
import { add } from "npm:@denotest/add";

console.log(add(1, 2));

const fileName = "other.ts";
const specifier = "./" + fileName; // non-analyzable
const { subtract } = await import(specifier);
console.log(subtract(3, 2));