Created
March 22, 2020 13:36
-
-
Save MufidJamaluddin/fcd7fbe79f5bdea9eb0221e2fa818691 to your computer and use it in GitHub Desktop.
Handle Jest for asset
This file contains hidden or 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
| const path = require('path'); | |
| module.exports = { | |
| process(src, filename, config, options) { | |
| return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';'; | |
| }, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment