Skip to content

Releases: jackmellis/require-extension-hooks-vue

2.0.0

19 Dec 11:06
Compare
Choose a tag to compare
  • Use @vue/component-compiler-utils - this offers more consistent behaviour, as well as fixing issues with functional components #32
  • ^ Potentially reverses the scriptless behaviour introduced in v1.1.0

1.1.0

10 Aug 15:23
Compare
Choose a tag to compare
  • Components without a <script> are now imported and treated as functional components #29
  • Support for custom code blocks #31

1.0.0

27 Feb 21:25
Compare
Choose a tag to compare
  • Register - lets you register this hook by simply requiring a file i.e. mocha --require require-extension-hooks-vue/register
  • Source Map support for error stack traces

0.4.2

27 Feb 08:26
Compare
Choose a tag to compare
  • Non-self-closing external script tags (i.e. <script src="foo"></script>) failed to load

0.4.1

20 Sep 06:46
Compare
Choose a tag to compare
  • Support for css modules 18

0.4.0

11 Jul 07:50
Compare
Choose a tag to compare
  • Added a configuration option to transpile non-html templates (true by default). This allows you to disable the default behaviour in favour of adding custom hooks. hooks('vue').plugin('vue', { transpileTemplates : false }); hooks('pug').push(...) 15
  • Support for alternate script languages (i.e. where <script lang="ts">). When lang is set, it will look for a hook with the same extension.13

0.3.0

18 May 15:50
Compare
Choose a tag to compare
  • Automatically parse templates based on their lang attribute
  • Load templates and scripts from external sources
  • Used vue-template-compiler's parseComponent method instead of manually extracting file content