diplodoc-platform / diplodoc-platform/transform
Unnecessary resolve fallback of webpack in runtime version
- Dominant language
- TypeScript
- Stars
- 69
- Forks
- 59
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 6
Description
In order for the [transform](https://github.com/diplodoc-platform/transform) to function properly at runtime, you will need to add some configurations to the [webpack resolve fallback](https://webpack.js.org/configuration/resolve/#resolvefallback).
For example, if you are using CRA, you can do the following:
1. install CRACO
```bash
npm install @craco/craco
```
2. Create a file called craco.config.js in the root of the project and add the following configuration:
```javascript
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](https://github.com/diplodoc-platform/transform) to be as straightforward as possible, without requiring any additional configuration steps for the webpack.
Contributor guide
Assessment
This issue has not been assessed yet.