Skip to content

feat: support output.file option - #1393

Closed
AliceLanniste wants to merge 1 commit into
rolldown:mainfrom
AliceLanniste:file_config
Closed

AliceLanniste wants to merge 1 commit into
rolldown:mainfrom
AliceLanniste:file_config

Conversation

@AliceLanniste

Copy link
Copy Markdown
Contributor

Description

related pr #1270

@netlify

netlify Bot commented Jun 14, 2024

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit ca889f6
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/666c49ca36fadd0008bce490

@AliceLanniste AliceLanniste changed the title support output.file option feat:support output.file option Jun 15, 2024
@AliceLanniste AliceLanniste changed the title feat:support output.file option feat: support output.file option Jun 15, 2024
@hyfdev hyfdev self-assigned this Jun 16, 2024
self.fs.write(dest.as_path(), chunk.content_as_bytes()).map_err(|err| {
anyhow::anyhow!("Failed to write file in {:?}", dir.as_path().join(chunk.filename()))
.context(err)
if let Some(dest) = &self.options.file {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel like there will be problems in this implementation for working with asset modules and future copy and file loader #1295.


I just give it a rough thinking and it's not easy job to make this feature right. I'm so far too busy to give detailed instructions on how to support this feature.

@hyfdev
hyfdev marked this pull request as draft June 16, 2024 18:20
github-merge-queue Bot pushed a commit that referenced this pull request Nov 4, 2024
<!-- Thank you for contributing! -->

### Description

- closes #2224
- closes #1393
- closes #624

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
@hyfdev hyfdev closed this in #2567 Nov 4, 2024
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

Successfully merging this pull request may close these issues.

2 participants