Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

plugin will lost when one plugin name includes another #3

Open
bloody-ux opened this issue Jul 16, 2018 · 2 comments
Open

plugin will lost when one plugin name includes another #3

bloody-ux opened this issue Jul 16, 2018 · 2 comments

Comments

@bloody-ux
Copy link

Two configurations:
A: {
plugin: [
'universal-import',
'import',
]
}

B: {
plugin: [
// anything....
]
}

after using babel-merge,
'import' plugin will be lost from result.

The cause is https://github.com/eliperelman/babel-merge/blob/master/index.js#L19

@edmorley
Copy link
Member

Hi! Does this still reproduce using babel-merge 2.x?

@eliperelman
Copy link
Member

My gut says "yes" because of:

const index = reduction.includes(base) ? reduction.indexOf(base) : reduction.length;

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

No branches or pull requests

3 participants