... | ... | @@ -18,3 +18,11 @@ In order to workaround that, include /@unitybase/ expression into configuration |
|
|
]
|
|
|
},
|
|
|
```
|
|
|
|
|
|
Once this is done, WebPack will start to use `babel-loader` for UnityBase packets, which causes another problem - by default, Babel won't work with CommonJS modules.
|
|
|
In order to fix that, configure `transform-runtime` plugin as the following:
|
|
|
```javascript
|
|
|
"plugins": [
|
|
|
["transform-runtime", {"helpers": false, "polyfill": false}]
|
|
|
],
|
|
|
``` |