Skip to content

Cannot work with specifying a rollup.config.file. #24

@LvChengbin

Description

@LvChengbin

this is my code in rollup.config.js:

import resolve from 'rollup-plugin-node-resolve';

export default [ {
    input : 'src/znxy.js',
    plugins : [
        resolve( {
            module : true,
            jsnext : true
        } )
    ],
    output : [
        { file : 'dist/znxy.', format : 'umd', name : 'ZNXY' }
    ]
} ];

It is working well if I run rollup with rollup -c.

But if I run it in gulp with rollup-stream I would get this error message:

Error: Unexpected key '0' found, expected one of: acorn, amd, banner, cache, context, entry, exports, extend, external, file, footer, format, globals, indent, input, interop, intro, legacy, moduleContext, name, noConflict, onwarn, output, outro, paths, plugins, preferConst, pureExternalModules, sourcemap, sourcemapFile, strict, targets, treeshake, watch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions