omise-node
omise-node copied to clipboard
Issue with WebPack
I'm trying to use the omise-node library with webpack to tokenize a card, this is what i'm getting
Hi @zacksiri we're looking at it. We'll report back once we find a fix.
It seems this is related to this issue: https://github.com/webpack/webpack/issues/965
You need json-loader that you configure like so:
preLoaders: [
{ test: /\.json$/, loader: 'json'},
],
Let me know if this fixes it.
@zacksiri Why you use webpack with omise-node library?