Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output as array works only for 2 formats #28

Open
verlok opened this issue Aug 2, 2018 · 0 comments
Open

Output as array works only for 2 formats #28

verlok opened this issue Aug 2, 2018 · 0 comments

Comments

@verlok
Copy link

verlok commented Aug 2, 2018

Hello,
I'm doing the following:

gulp.task("default", function() {
	process.env.NODE_ENV = "release";
	return (
		gulp.
			src("./src/lazyload.js").
			pipe(sourcemaps.init()).
			// ----------- linting --------------
			pipe(eslint()).
			pipe(eslint.format()).
			pipe(eslint.failAfterError()). // --> failing if errors
			// ----------- rolling up --------------
			pipe(
				rollup({ plugins: [babel()] }, [
					{
						file: "dist/lazyload-es2015.js",
						format: "es"
					},
					{
						file: "dist/lazyload-amd.js",
						format: "amd"
					},
					{
						file: "dist/lazyload-umd.js",
						format: "umd"
					}
				])
			).
			pipe(sourcemaps.write("")).
			pipe(gulp.dest(destFolder))
	);
});

And I noticed that it only outputs the 1st and the 3rd output format.
I've tried to invert the order of the amd and the umd one, and it always outputs the last, ignoring the 2nd.

What am I doing wrong?

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

No branches or pull requests

1 participant