babel-plugin-webpack-alias icon indicating copy to clipboard operation
babel-plugin-webpack-alias copied to clipboard

Support for Babel 7

Open jhchill666 opened this issue 8 years ago • 10 comments

Babel 7 is currently in Alpha 9, and this plugin just silently fails.

Seems the CallExpression is never called.

Is support in the pipeline/planned?

jhchill666 avatar May 17 '17 09:05 jhchill666

CallExpression is working correctly in Babel 7 (see)

xtuc avatar Aug 11 '17 08:08 xtuc

meanwhile…

Babel reach beta nowadays we're using it in a production

a-x- avatar Jan 20 '18 13:01 a-x-

So does babel 7 support work for this?

audiolion avatar Mar 08 '18 18:03 audiolion

This plugin does not work with babel 7 - I get lots of warnings in the console that various module paths cannot be resolved - all of which have been imported using an alias. Are there any plans to make the compatible with babel 7?

james-filtness avatar Sep 03 '18 07:09 james-filtness

The source code seem not complicated. I think we can rewrite it for babel 7!

xwchris avatar Oct 10 '18 09:10 xwchris

https://github.com/trayio/babel-plugin-webpack-alias/pull/57

Upgrade to Babel 7

CrabDude avatar Oct 16 '18 04:10 CrabDude

I saw CrabDudes PR was failing tests and not getting any love so I took a stab at converting things to Babel 7 as well #59

nathanfriemel avatar Oct 23 '18 20:10 nathanfriemel

Are there plans to add support for Babel 7 or is there an existing preferred option I should switch to?

Deseao avatar Jan 18 '19 20:01 Deseao

I created https://github.com/shortminds/babel-plugin-webpack-alias-7 about a month ago, hope to get more people to kick the tires on it.

nathanfriemel avatar Jan 22 '19 16:01 nathanfriemel

@nathanfriemel Thanks! Tests are green again.

Deseao avatar Jan 22 '19 21:01 Deseao