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

There is way to reimport changed source file ? #5937

Closed
xReveres opened this issue May 29, 2020 · 1 comment
Closed

There is way to reimport changed source file ? #5937

xReveres opened this issue May 29, 2020 · 1 comment

Comments

@xReveres
Copy link

Hi, I need to reimport script after changes (by others) at runtime, but deno doesn't want to recompile sources.
Simple test:
File test.ts

await import("./abc.ts");

await Deno.writeTextFile("./abc.ts", "console.log('After changes');");

await import("./abc.ts");

File abc.ts

console.log('Before changes');

Execute:

deno run --unstable --allow-all test.ts

Console output:

ubuntu@deno:~/workspace/deno$ deno run --unstable --allow-all test.ts
Compile file:///home/ubuntu/workspace/deno/test.ts
Before changes
ubuntu@deno:~/workspace/deno$ 

File abc.ts after run:

console.log('After changes');

Deno version

deno 1.0.2
v8 8.4.300
typescript 3.9.2

OS Linux

@xReveres xReveres changed the title There is way to reimport changed ts file ? There is way to reimport changed source file ? May 29, 2020
@kitsonk
Copy link
Contributor

kitsonk commented May 29, 2020

Duplicate of #5548

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants