vue-inbrowser-compiler
Advanced tools
Comparing version 4.56.5 to 4.60.0
# Change Log | ||
## 4.60.0 | ||
### Patch Changes | ||
- [`762db80e`](https://github.com/vue-styleguidist/vue-styleguidist/commit/762db80e7d8f58a347cfa7d9a92dda53b78acae6) Thanks [@elevatebart](https://github.com/elevatebart)! - fix: expose setup imported variables to template | ||
## 4.56.5 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "vue-inbrowser-compiler", | ||
"version": "4.56.5", | ||
"version": "4.60.0", | ||
"description": "compile vue single file components right in your browser", | ||
@@ -30,7 +30,7 @@ "module": "lib/vue-inbrowser-compiler.esm.js", | ||
"@types/buble": "0.20.1", | ||
"@vue/test-utils": "1.3.3", | ||
"@vue/test-utils": "1.3.4", | ||
"@vue/compiler-sfc": "3", | ||
"rollup": "2.79.1", | ||
"tslib": "2.4.1", | ||
"typescript": "4.9.4", | ||
"tslib": "2.5.0", | ||
"typescript": "4.9.5", | ||
"vue": "2.7.14", | ||
@@ -37,0 +37,0 @@ "vue3": "npm:vue@3", |
@@ -116,2 +116,23 @@ import { expect, vi } from 'vitest' | ||
}) | ||
it('exposes imported values in script setup', () => { | ||
const sut = normalizeSfcComponent(` | ||
<script setup> | ||
import { Icon } from 'vue-icon' | ||
</script>`, (( source: string, opts: any ) => { | ||
const { descriptor } = parse(source, opts) | ||
return descriptor | ||
}) as any) | ||
expect(evalFunction(sut).setup.toString()).toMatchInlineSnapshot(` | ||
"setup(){ | ||
const vue_icon$0 = require('vue-icon');const Icon = vue_icon$0.Icon; | ||
return {} | ||
function defineProps(){} | ||
function defineEmits(){} | ||
function defineExpose(){} | ||
}" | ||
`) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82722
1848