Skip to content

targets property only accepts object #35

@Fuzzyma

Description

@Fuzzyma

When I use targets: "> 0.25%, not dead" for the "polyfill-corejs3" plugin, I get an error: Invalid Option: '0' is not a valid target. This also happens when I pass an array (even though I am not sure if this is allowed anyway.

Passing an object works { firefox: 43 }. Why is a string not working?

Also: I noticed, that my compiled file is still full of code which doesnt fit the target e.g. this one:

	// Thank's IE8 for his funny defineProperty
	var descriptors = !fails(function () {
	  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
	});

I thought the goal of babel-polyfills is to get rid of all this?
Atm, the compiled file is actually bigger than what I had before.

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