... | ... | @@ -6,7 +6,7 @@ UnityBase code is not ES5, it contains ES2015 constructs, like using `const` and |
|
|
But a typical WebPack configuration explicitly includes project source code, which means all content of `node_modules` does straight, not babelified.
|
|
|
That causes problems during build, because UnityBase code does use JavaScript features beyond ES5 standard.
|
|
|
|
|
|
In order to workaround that, include /@unitybase/ expression into configuration of `babel-loader`, like that:
|
|
|
In order to workaround that, include `/@unitybase/` expression into configuration of `babel-loader`, like that:
|
|
|
```javascript
|
|
|
{
|
|
|
test: /\.js$/,
|
... | ... | |