Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

[BUG] Ignores directories in output filename/sourcemap #45

Open
probins opened this issue Dec 29, 2020 · 1 comment
Open

[BUG] Ignores directories in output filename/sourcemap #45

probins opened this issue Dec 29, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@probins
Copy link
Contributor

probins commented Dec 29, 2020

Describe the bug
If the output filename includes a directory - subdir/output.js - it is ignored, and the file written to the current directory

To Reproduce
Enter subdir/output.js in output file config.

Expected behavior
FIle and sourcemap should be put in subdir.

Desktop (please complete the following information):

  • Deno version 1.6.2
  • denopack version 0.10.0

Additional context
emitFiles.ts seems to be confusing the dir and file options. dir is for code splitting chunks, and isn't used for single build file. This bit of code needs rewriting.

@probins probins added the bug Something isn't working label Dec 29, 2020
@probins probins changed the title [BUG] Ignores directories in output filename [BUG] Ignores directories in output filename/sourcemap Dec 29, 2020
@probins
Copy link
Contributor Author

probins commented Dec 31, 2020

PS I just tested code splitting and multi-file input, and this seems to work nicely.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant