Skip to content

Load modules directly into context #34

@BrunnerLivio

Description

@BrunnerLivio

As an example, when using try express it should automatically call in JS: const express = require('express') and in TypeScript: import * as express from 'expess'.

Therefore a developer can directly access the package as global variable.

For JS this is possible with

node --eval "const express = require('express')" -i

with TS this is currently not possible. PR has already been submitted TypeStrong/ts-node#894

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions