apache / apache/openwhisk-composer

with webpack bundle optimization, Composer.compile fails

Open
#67 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
68
Forks
18
PR merge metrics
No merged PRs in 30d

Description

the terser webpack bundle optimizer by default renames javascript classes. as a result, composer.compile fails with

```
Invalid argument "task" in "task" combinator
Argument value: m {
'.combinator': [Function: .combinator],
type: 'action',
name: '/_/authenticate',
path: '.test'
}
```

for now, a workaround is to set `keep_classnames: true` in the `terserOptions` passed to the terser webpack plugin constructor.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.