component-playground icon indicating copy to clipboard operation
component-playground copied to clipboard

Decorators not transpiling with legacy plugin in webpack conf and babelrc.

Open daimeng opened this issue 9 years ago • 3 comments

Having some trouble getting decorators to work. Added the plugin to babelrc file then did babelrc true and also just tried copy and pasting options over to webpack dev config.

Now the output js file builds and page loads, but transpiling at runtime still isn't working. I just get the standard Babel 6.x doesnt support because blah message.

Anyone know where I should be configuring the runtime babel?

daimeng avatar Jun 17 '16 04:06 daimeng

You will need plugin for decorators in babel 6.x

LeoAJ avatar Jul 09 '16 16:07 LeoAJ

Thanks for the response. I have that plugin for server config. So I can import files using decorator. However the runtime transpiler is using a different config it seems.

daimeng avatar Jul 10 '16 22:07 daimeng

You should probably seek help in Babel community

LeoAJ avatar Jul 11 '16 17:07 LeoAJ