-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Deno.bundle uses cache #5631
Comments
As a workaround, maybe you could run |
@sholladay good idea! I tried this before the bundle: await Deno.run({
cmd: ['deno', 'cache', file],
}).status(); And now suddenly const [diagnostics, content] = await Deno.bundle(file, undefined, {
lib: ['dom'],
}); Since it throws:
That same error doesn't happen if I comment the |
kitsonk
added a commit
that referenced
this issue
Nov 16, 2020
jannes
pushed a commit
to jannes/deno
that referenced
this issue
Dec 1, 2020
Fixes denoland#4743 Closes denoland#5253 Fixes denoland#5631 Fixes denoland#6116 Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm creating a script:
That watches the file system and bundles
my-script.ts
into a frontend-ready file.The issue is that when a file system event is detected
Deno.bundle
bundles again from cache. Making the tool unusable.I wasn't able to find a way to clear cache, I tried starting a process
deno bundle my-script.ts
but that doesn't allow me to pass a customtsconfig
to addlib: ["DOM"]
.The text was updated successfully, but these errors were encountered: