Skip to content

Disable rollup warning #3158

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

Merged
merged 1 commit into from
Feb 15, 2020
Merged

Conversation

edwin0cheng
Copy link
Member

@edwin0cheng edwin0cheng commented Feb 15, 2020

In https://rollupjs.org/guide/en/#output-exports

As with regular entry points, files that mix default and named exports will produce warnings. You can avoid the warnings by forcing all files to use named export mode via output.exports: "named".

This PR try added output.exports: "named" and disabe this warning. It is because vscode consume our plugins only by named functions such that it should be safe to disable it.

cc @Veetaha

@Veetaha
Copy link
Contributor

Veetaha commented Feb 15, 2020

I did investigate this a bit some time ago. Created an issue under rollup repo rollup/rollup#3368. I think we should not get this warning with default settings in any way, though disabling it this way is an option, I have nothing against...

@matklad
Copy link
Member

matklad commented Feb 15, 2020

bors r+

bors bot added a commit that referenced this pull request Feb 15, 2020
3158: Disable rollup warning r=matklad a=edwin0cheng

In https://rollupjs.org/guide/en/#output-exports

```
As with regular entry points, files that mix default and named exports will produce warnings. You can avoid the warnings by forcing all files to use named export mode via output.exports: "named".
```

This PR try added `output.exports: "named"` and disabe this warning. It is because vscode consume our plugins only by named functions such that it should be saved to disable it.

cc @Veetaha 

Co-authored-by: Edwin Cheng <[email protected]>
@bors
Copy link
Contributor

bors bot commented Feb 15, 2020

Build succeeded

  • Rust (macos-latest)
  • Rust (ubuntu-latest)
  • Rust (windows-latest)
  • TypeScript

@bors bors bot merged commit cc43f07 into rust-lang:master Feb 15, 2020
@edwin0cheng edwin0cheng deleted the fix-rollup-warning branch February 16, 2020 08:46
@Veetaha Veetaha mentioned this pull request Jun 27, 2020
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