Closed nemanjam closed 7 months ago
I found the solution.
https://github.com/radix-ui/primitives/issues/2192#issuecomment-1580186800
// webpack.config.js
{
test: /\.(js|ts)x?$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
// add it like this
{
test: /\.mjs/,
include: /node_modules/,
type: 'javascript/auto',
},
With this import:
I get this:
In
webpack.config.js
I have tried this, but no success: