diplodoc-platform / diplodoc-platform/transform

Unnecessary resolve fallback of webpack in runtime version

Open
#473 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.