Last active
March 22, 2019 11:45
-
-
Save Kiwka/5867f54cc189494318c19ef59b322eb8 to your computer and use it in GitHub Desktop.
fix for flow error on html loading by adding declaration for raw-loader module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// place this one in the [options] section in your flowconfig | |
module.name_mapper='^raw-loader!\(.*\.html?\)' -> 'raw-loader' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this file should be in flow-typed directory under root folder of your project | |
declare module 'raw-loader' { | |
declare module.exports: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment