It's 2024. You should use tsup instead of this.
๐ฅ Blazing fast builds
๐ CommonJS bundle
๐ฒ .mjs bundle
โจ .d.ts bundle + type-checking
It's 2024. You should use tsup instead of this.
๐ฅ Blazing fast builds
๐ CommonJS bundle
๐ฒ .mjs bundle
โจ .d.ts bundle + type-checking
| export default { | |
| const parents = getNamedParents(this.$router.options.routes, this.$route.matched) | |
| if (parents.length) { | |
| return { | |
| name: parents[parents.length - 1].name, | |
| } | |
| } | |
| return { name: 'home' } | |
| } |
| /** | |
| * Convert an image | |
| * to a base64 url | |
| * @param {String} url | |
| * @param {Function} callback | |
| * @param {String} [outputFormat=image/png] | |
| */ | |
| function convertImgToBase64URL(url, callback, outputFormat){ | |
| var img = new Image(); | |
| img.crossOrigin = 'Anonymous'; |