- 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
- Components without a
<script>
are now imported and treated as functional components #29 - Support for custom code blocks #31
- Don't mutate the defualt config object #28
- 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
- Non-self-closing external script tags (i.e.
<script src="foo"></script>
) failed to load
- Support for css modules 18
- 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.
- Automatically parse templates based on their lang attribute 11
- Load templates and scripts from external sources 9
- Used vue-template-compiler's parseComponent method instead of manually extracting file content 7
- Added ability to require vue components that export using
export default Vue.extend({})
- Separated render function from the export function to avoid semi-colon issues.