Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load modules directly into context #34

Open
BrunnerLivio opened this issue Oct 11, 2019 · 0 comments
Open

Load modules directly into context #34

BrunnerLivio opened this issue Oct 11, 2019 · 0 comments
Assignees
Labels
blocked enhancement New feature or request

Comments

@BrunnerLivio
Copy link
Owner

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

@BrunnerLivio BrunnerLivio self-assigned this Oct 11, 2019
@BrunnerLivio BrunnerLivio added blocked enhancement New feature or request labels Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant