Skip to content

Conversation

eemeli
Copy link
Contributor

@eemeli eemeli commented Jul 17, 2020

If using the optimizer to only build modules and/or with the dir option, output is never set and the Buffer.from(output) in createFile() fails. So let's not do that.

@eemeli eemeli mentioned this pull request Jul 17, 2020
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4aa6d11 on eemeli:fix-success into 09b0bef on jorrit:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4aa6d11 on eemeli:fix-success into 09b0bef on jorrit:master.

@jorrit
Copy link
Owner

jorrit commented Jul 20, 2020

Thanks for contributing! Could you show a short Gulpfile that fails? And could you perhaps try to make a test that fails without your change and works with your change?

@eemeli
Copy link
Contributor Author

eemeli commented Jul 21, 2020

Sorry, don't really have the bandwidth for that. Went with a different solution for this in the end, so this PR was just an easy way to effectively file an issue on this.

In my use case the RequireJS config had no main file, only modules, and the output uses the dir option. Feel free to close this if that's not enough info.

@jorrit jorrit merged commit 49e4786 into jorrit:master Jul 24, 2020
@jorrit
Copy link
Owner

jorrit commented Jul 24, 2020

OK. Me neither to be honest.

@jorrit
Copy link
Owner

jorrit commented Jul 24, 2020

I have released the change in a new version

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.

3 participants