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

Parsing problems #168

Closed
Closed
@olegdunkan

Description

@olegdunkan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions