Skip to content

Commit

Permalink
Add note on workaround for webpack-cli
Browse files Browse the repository at this point in the history
Related-to GH-11.
Closes GH-12.
  • Loading branch information
remcohaszing committed Feb 24, 2021
1 parent 6291696 commit a096d94
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,17 @@ use: [
//
```

Note that `webpack-cli` doesn’t support loaders using the ESM syntax directly or
indirectly. Because `xdm` is uses ESM, this means the `xdm/webpack.cjs` loader
doesn’t just work with `webpack-cli`. To use this loader with `webpack-cli`,
set the `DISABLE_V8_COMPILE_CACHE=1` environment variable. See
[#11](https://github.com/wooorm/xdm/issues/11#issuecomment-785043772) for
details.

```sh
DISABLE_V8_COMPILE_CACHE=1 webpack
```

### Build systems

#### Snowpack
Expand Down

0 comments on commit a096d94

Please sign in to comment.