Closed IcanDivideBy0 closed 2 years ago
Kit components are transpiled with babel on publish (https://github.com/c8r/kit/blob/master/core/package.json#L15) – can you ensure that your babel-loader is excluding the node_modules
directory?
Kit components are transpiled, but webfont
module isn't.
The problem comes only when using the webpack.optimize.UglifyJsPlugin
(https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/config/webpack.config.prod.js#L293-L312)
Maybe the @compositor/webfont
is not meant to be used alone ? Yet the mdx-deck
module have it as direct dependency ... https://github.com/jxnblk/mdx-deck/blob/master/package.json#L25
This is problematic when using mdx-deck
as a library, not with the cli ... so I'm kinda lost regarding where the issue should be tracked :/
Currently using
@compositor/webfont
in acreate-react-app
fails to build the app:How to reproduce: