react-scan icon indicating copy to clipboard operation
react-scan copied to clipboard

React-scan monitoring with rspack fails

Open tanmayairbase opened this issue 2 months ago • 1 comments

React-scan monitoring with RSPack fails with TypeError: ReactComponentName is not a function

RSPack version - 0.5.1 (this is not the latest one, could it be the reason?)

Usage (as suggested)

...
const ReactComponentName = require('react-scan/react-component-name/rspack')
...

const config = {
	...
	plugins: [
		...
		ReactComponentName({}),
		...
	]
}

module.exports = config

tanmayairbase avatar Dec 18 '24 06:12 tanmayairbase