-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
file-loader with default export #344
Comments
You could give this a go: (no guarantees)
|
cc @mohsen1 - I'm sure you're past this now but see @andrewMuntyan in case you're not! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using TypeScript 2.0 wildcard module name matching to allow importing files like images:
And now I can import images with
* as
syntax:This works but I love to ditch the
* as
syntax and simply doimport myImage from './my-image.png'
. For that I can change the module declaration to:Problem is, when I do this, the transpiled code becomes:
My
tsconfig
:Do you have a recommendation for fixing this?
The text was updated successfully, but these errors were encountered: