babel-merge icon indicating copy to clipboard operation
babel-merge copied to clipboard

plugin will lost when one plugin name includes another

Open bloody-ux opened this issue 6 years ago • 2 comments

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

bloody-ux avatar Jul 16 '18 08:07 bloody-ux

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

edmorley avatar Aug 21 '18 19:08 edmorley

My gut says "yes" because of:

https://github.com/neutrinojs/babel-merge/blob/400d166842d0be23eea4b84effe21b886dbe86fa/src/index.js#L18

eliperelman avatar Aug 21 '18 20:08 eliperelman