mrodal / vue-inheritance-loader

Webpack loader to be used along with vue-loader for Single File Components that provides template extension
38 stars 5 forks source link

Breaks when using custom blocks #15

Open ThaDaVos opened 4 years ago

ThaDaVos commented 4 years ago

This loader breaks when someone has custom blocks in their SFC's - for example I've got <route> custom blocks as I am using vue-auto-routing:

image

chumager commented 4 years ago

Hi, can you attach your configuration and some SFC so we can help?

Regards.

ThaDaVos commented 4 years ago

I guess the webpack configuration?

ThaDaVos commented 4 years ago

Webpack config: https://termbin.com/mj58 SFCS: [ https://termbin.com/i3bk https://termbin.com/qrjl ]

ThaDaVos commented 4 years ago

I disabled the inheritance stuff currently

chumager commented 4 years ago

Hi, sorry for the delay...

It could be a order problem, the SFC must be parsed with this loader first, so the result could be parser with vue-loader.

Try changing loaders order.