Skip to content

Commit 852bbf4

Browse files
committed
Fix warnings
1 parent 207d54e commit 852bbf4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Digits.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ const formatted = computed(() => {
4949
</script>
5050

5151
<style scoped>
52-
.digits {
53-
&-quadrillion { color: var(--digits-quadrillion, deeppink) }
54-
&-trillion { color: var(--digits-trillion, violet) }
55-
&-billion { color: var(--digits-billion, blueviolet) }
56-
&-million { color: var(--digits-million, goldenrod) }
57-
&-thousand { color: var(--digits-thousand, lightskyblue) }
58-
}
52+
.digits-quadrillion { color: var(--digits-quadrillion, deeppink) }
53+
.digits-trillion { color: var(--digits-trillion, violet) }
54+
.digits-billion { color: var(--digits-billion, blueviolet) }
55+
.digits-million { color: var(--digits-million, goldenrod) }
56+
.digits-thousand { color: var(--digits-thousand, lightskyblue) }
5957
.digits-colored {
6058
color: var(--digits-positive, limegreen);
6159
&.digits-negative { color: var(--digits-negative, indianred) }

vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { resolve } from 'path'
22
import { defineConfig } from 'vite'
3+
import { dependencies } from './package.json'
34
import vue from '@vitejs/plugin-vue'
45

56
// https://vitejs.dev/config/
@@ -19,8 +20,9 @@ export default defineConfig({
1920
},
2021
rollupOptions: {
2122
// make sure to externalize deps that shouldn't be bundled into your library
22-
external: ['vue'],
23+
external: Object.keys(dependencies),
2324
output: {
25+
globals: { vue: 'vue' },
2426
assetFileNames: (assetInfo) => {
2527
if (assetInfo.name == 'style.css')
2628
return 'digits.css';

0 commit comments

Comments
 (0)