require-vuejs icon indicating copy to clipboard operation
require-vuejs copied to clipboard

Use plugin without referencing "template" variable.

Open lephuongbg opened this issue 7 years ago • 1 comments

It would be nice to not be required to reference the template variable in the component object. That would make .vue file definition more align with other loaders.

Some insights:

  1. With other loaders, .vue files should always export its definition as an object.
  2. If 1 is satisfied, we could execute the content of the script and inject template to returned value.

lephuongbg avatar Aug 02 '17 06:08 lephuongbg

Excellent point. I will work on it, but keep working with both methods.

I will close this issue when it is ready.

edgardleal avatar Aug 02 '17 13:08 edgardleal