[Pkg-javascript-devel] Bug#930634: Build failures with rollup 0.56
Pirate Praveen
praveen at onenetbeyond.org
Sat Sep 28 14:25:38 BST 2019
On Sat, 28 Sep 2019 13:53:42 +0530 Pirate Praveen
<praveen at onenetbeyond.org> wrote:
> On Sat, 28 Sep 2019 13:02:49 +0530 Pirate Praveen
> <praveen at onenetbeyond.org> wrote:
> > These errors are now fixed with help from Jishnu.
>
> Now rollup -c brings this error,
>
>
> $ rollup -c
>
> src/node-entry.ts → dist/rollup.js, dist/rollup.es.js...
> [!] (commonjs plugin) SyntaxError: Unexpected token (44:51) in
> /usr/share/nodejs/micromatch/index.js
> ../../usr/share/nodejs/micromatch/index.js (44:51)
> 42:
> 43: for (let i = 0; i < patterns.length; i++) {
> 44: let isMatch = picomatch(String(patterns[i]), { ...options,
> onResult }, true);
> ^
> 45: let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
> 46: if (negated) negatives++;
>
>
>
I was able to fix this by using
babel-plugin-transform-object-rest-spread, but I wonder why these are
present in these modules in the first place. Do debian's nodejs disable
these syntax?
Next error is,
src/node-entry.js → dist/rollup.js, dist/rollup.es.js...
[!] Error: Illegal reassignment to import 'commonjsHelpers'
../../../../../../../usr/lib/nodejs/base/utils.js (5:0)
3: var utils = require('lazy-cache')(require);
4: var fn = require;
5: require = utils; // eslint-disable-line
^
6:
7: /**
More information about the Pkg-javascript-devel
mailing list