# RecastJSPlugin, Typescript, ES6

**URL:** <https://forum.babylonjs.com/t/recastjsplugin-typescript-es6/21400>\
**Category:** Tutorials and tips\
**Tags:** documentation, tutorial\
**Created:** [June 4, 2021, 6:02am UTC](https://forum.babylonjs.com/t/recastjsplugin-typescript-es6/21400 "2021-06-04T06:02:41Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [June 12, 2022, 4:42pm UTC](https://forum.babylonjs.com/t/recastjsplugin-typescript-es6/21400/31 "2022-06-12T16:42:50Z")

</div>

Hey guys!  
I was forced to upgrade my project to Quasar2 (Vue3) which comes with WebPack5. The previous version of Quasar used WebPack4. The only thing I needed to change was to:

`npm i --save-dev node-polyfill-webpack-plugin`

and add this to the `quasar.config.js` file:

```auto
chainWebpack(chain) {
  const nodePolyfillWebpackPlugin = require('node-polyfill-webpack-plugin')
  chain.plugin('node-polyfill').use(nodePolyfillWebpackPlugin)
},
extendWebpack(cfg) {
  cfg.resolve.fallback = {
    fs: false
  }
}

```

No other changes to `recast` needed with this setup: [RecastJSPlugin, Typescript, ES6](https://forum.babylonjs.com/t/recastjsplugin-typescript-es6/21400)

If you are using `webpack` without any other framework like Quasar the approach is similar, just tweak the `webpack` config in a similar way.

R.

---

_[View the full topic](https://forum.babylonjs.com/t/recastjsplugin-typescript-es6/21400)._
