yfm-transform
yfm-transform copied to clipboard
Unnecessary resolve fallback of webpack in runtime version
In order for the transform to function properly at runtime, you will need to add some configurations to the webpack resolve fallback.
For example, if you are using CRA, you can do the following:
- install CRACO
npm install @craco/craco
- Create a file called craco.config.js in the root of the project and add the following configuration:
module.exports = {
webpack: {
configure: (webpackConfig) => {
webpackConfig.resolve.fallback = {
fs: false,
process: false,
path: false,
};
return webpackConfig;
},
},
};
I would like the installation process of the transform to be as straightforward as possible, without requiring any additional configuration steps for the webpack.