You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2019. It is now read-only.
I'm using webpack with ts-loader and I'd like to extract my react-intl strings to JSON files.
But I can't figure out how to get this plugin working correctly. I've tried looking at other issues and still can't find any help.
For starters, how do I tell this plugin where to create the JSON file? Also, how am I supposed to be using the onMsgExtracted property
This is what I've tried so far:
webpack.config
{test: /\.(ts|tsx)$/,include: paths.appSrc,use: [{loader: require.resolve('ts-loader'),options: {// disable type checker - we will use it in fork plugintranspileOnly: true,getCustomTransformers: ()=>({before: [intl.transform({idPrefix: "prefix",onMsgExtracted: intl.aggregate({}),}),]})},},],},