wix-incubator / kampos

Tiny and fast effects compositor on WebGL

Home Page:https://wix-incubator.github.io/kampos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack Build - Missing loader?

funkysoul opened this issue · comments

Do you guys know what kind of loader webpack is expecting from kampos?

`Module parse failed: Unexpected token (2268:36)
You may need an appropriate loader to handle this file type.
| result[shader][key] += config[shader][key] + '\n';
| } else {
| result[shader][key] = { ...result[shader][key],
| ...config[shader][key]
| };

Hmmm... 🤔
Could be that you're using babel-loader with an older preset, say maybe es2015, and it's failing to parse the destructuring operator. Perhaps you should use the env preset like so: https://babeljs.io/docs/en/babel-preset-env/

HTH!

@funkysoul did manage to solve this? Can I close this issue?

closing for now, plz reopen if not solved