Skip to content
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

enable configuration of module.strictExportPresence #2041

Closed
dleavitt opened this issue Apr 3, 2019 · 1 comment
Closed

enable configuration of module.strictExportPresence #2041

dleavitt opened this issue Apr 3, 2019 · 1 comment

Comments

@dleavitt
Copy link
Contributor

dleavitt commented Apr 3, 2019

From what I can tell module.strictExportPresence is sort-of hardcoded to true here:

strictExportPresence: true,

It's easy enough to turn of by manually setting it in the per-environment configs like this:

config = environment.toWebpackConfig()
config.module.strictExportPresence = false

module.exports = config

However, it might be nice for this to follow the normal webpacker config setting conventions instead. It's especially useful to turn off when using typescript with transpileOnly: true. When doing this, you'll get warnings along the lines of export 'AnInterface' was not found in './f1' which get turned into errors if strictExportPresence is true.

see TypeStrong/ts-loader#653

@guillaumebriday
Copy link
Member

Is this issue still relevant? Feel free to reopen if needed

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

No branches or pull requests

2 participants