Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Parsing problems #168

Closed
olegdunkan opened this issue Feb 22, 2017 · 4 comments
Closed

Parsing problems #168

olegdunkan opened this issue Feb 22, 2017 · 4 comments

Comments

@olegdunkan
Copy link

Version of rollup is 0.41.4

In the main.js

import 'rxjs/add/operator/mergeMap';

Rollup config:

export default {
    entry: 'main.js',
    dest: 'dist/bundle.js',
    format: 'iife',
    plugins: [
        nodeResolve({jsnext: true, module: true}),
        commonjs(),
    ]
}

Stderr:

Error: Unexpected token
../node_modules/rxjs/util/isArrayLike.js (2:78)
1: "use strict";
2: var isArrayLike_1 = function (x) { return x && typeof x.length === 'number'; });
                                                                                 ^
3: //# sourceMappingURL=isArrayLike.js.map

Original ../node_modules/rxjs/util/isArrayLike.js file

"use strict";
exports.isArrayLike = (function (x) { return x && typeof x.length === 'number'; });
//# sourceMappingURL=isArrayLike.js.map
MaartenX added a commit to MaartenX/rollup-plugin-commonjs that referenced this issue Feb 25, 2017
When the right side of an export is inside parentheses, the start of the right side ignores the left parenthesis. If we take the left side of the expression, we don't have this problem.
@ghost
Copy link

ghost commented Feb 28, 2017

Hi!, is there any plan on merge the pull request #170? Thanks

@imcotton
Copy link

imcotton commented Mar 2, 2017

ping @Rich-Harris

1 similar comment
@Brooooooklyn
Copy link

ping @Rich-Harris

Rich-Harris added a commit that referenced this issue Mar 7, 2017
@Rich-Harris
Copy link
Contributor

Sorry for the delay everyone — this is out as 7.0.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants