0.0.12 • Published 7 years ago
ts-resource-import v0.0.12
This is a very hacky script to make imports work for files. Lets see if it works for us and if it does we can make it nice and do a proper publish.
In es6 react + babel setup we can do:
import myImage from 'resources/images/myImage.png'
Now with this script we can do:
import { myImage } from 'resources/images'
Note that this now works with autocomplete inside the IDE.