mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-06-19 12:28:21 -06:00
PR-202408: updating packages and fixing mdx files.
This commit is contained in:
@ -22,6 +22,19 @@ module.exports = {
|
||||
}
|
||||
],
|
||||
"webpackFinal": async config => {
|
||||
config.module.rules.push(
|
||||
{
|
||||
test: /\.(ts|tsx)$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
transpileOnly: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
);
|
||||
config.entry = config.entry.map(function(entry) {
|
||||
if (entry.includes("webpack-hot-middleware")) {
|
||||
return `${require.resolve('webpack-hot-middleware/client')}?path=${prefixUrl}__webpack_hmr&reload=true`;
|
||||
@ -48,9 +61,6 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
},
|
||||
features: {
|
||||
previewMdx2: true
|
||||
},
|
||||
docs: {
|
||||
autodocs: true
|
||||
}
|
||||
|
Reference in New Issue
Block a user