sur-voice 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.history/package_20260121114101.json +30 -0
- package/.history/package_20260121141349.json +30 -0
- package/.history/src/components/surVoice_20260121134911.vue +393 -0
- package/.history/src/components/surVoice_20260121140739.vue +393 -0
- package/.history/src/components/surVoice_20260121140740.vue +393 -0
- package/.history/src/components/surVoice_20260121140750.vue +393 -0
- package/.history/src/components/surVoice_20260121141112.vue +394 -0
- package/.history/src/components/surVoice_20260121141323.vue +412 -0
- package/.history/src/components/surVoice_20260121141324.vue +412 -0
- package/.history/src/components/surVoice_20260121141338.vue +414 -0
- package/.history/src/components/surVoice_20260121141339.vue +414 -0
- package/.history/src/components/surVoice_20260121141340.vue +414 -0
- package/.history/sur-voice/package_20260121113239.json +27 -0
- package/.history/sur-voice/package_20260121113252.json +27 -0
- package/.history/sur-voice/package_20260121113253.json +27 -0
- package/.history/sur-voice/package_20260121113812.json +30 -0
- package/.history/sur-voice/package_20260121113813.json +30 -0
- package/.history/sur-voice/package_20260121113851.json +30 -0
- package/.history/sur-voice/package_20260121114014.json +31 -0
- package/.history/sur-voice/package_20260121114015.json +31 -0
- package/.history/sur-voice/package_20260121114016.json +31 -0
- package/.history/sur-voice/package_20260121114017.json +31 -0
- package/.history/sur-voice/package_20260121114018.json +31 -0
- package/.history/sur-voice/package_20260121114102.json +30 -0
- package/.history/sur-voice/src/index_20260106155836.ts +18 -0
- package/.history/sur-voice/src/index_20260121113733.ts +18 -0
- package/.history/sur-voice/src/index_20260121113739.ts +18 -0
- package/.history/sur-voice/src/index_20260121113740.ts +18 -0
- package/.history/sur-voice/vite.config_20251126104257.ts +7 -0
- package/.history/sur-voice/vite.config_20260121113441.ts +23 -0
- package/.history/sur-voice/vite.config_20260121113652.ts +41 -0
- package/.history/sur-voice/vite.config_20260121113653.ts +41 -0
- package/.history/sur-voice/vite.config_20260121113700.ts +41 -0
- package/.history/sur-voice/vite.config_20260121113701.ts +41 -0
- package/.history/sur-voice/vite.config_20260121113705.ts +43 -0
- package/.history/sur-voice/vite.config_20260121113706.ts +43 -0
- package/.history/sur-voice/vite.config_20260121113920.ts +43 -0
- package/.history/sur-voice/vite.config_20260121113926.ts +43 -0
- package/.history/sur-voice/vite.config_20260121113927.ts +43 -0
- package/.history/sur-voice/vite.config_20260121113928.ts +43 -0
- package/.history/sur-voice/vite.config_20260121113929.ts +43 -0
- package/.history/sur-voice/vite.config_20260121113930.ts +43 -0
- package/package.json +1 -1
- package/src/components/surVoice.vue +26 -3
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sur-voice",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "流式语音转文字",
|
|
7
|
+
"main": "dist/sur-voice.umd.js",
|
|
8
|
+
"module": "dist/sur-voice.es.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"build": "vite build",
|
|
12
|
+
"preview": "vite preview"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"js-sha256": "^0.11.1",
|
|
16
|
+
"vue": "^3.5.24"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^24.10.1",
|
|
20
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
21
|
+
"@vue/tsconfig": "^0.8.1",
|
|
22
|
+
"typescript": "~5.9.3",
|
|
23
|
+
"vite": "npm:rolldown-vite@7.2.5",
|
|
24
|
+
"vue-tsc": "^3.1.4"
|
|
25
|
+
},
|
|
26
|
+
"pnpm": {
|
|
27
|
+
"overrides": {
|
|
28
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sur-voice",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "流式语音转文字",
|
|
7
|
+
"main": "dist/sur-voice.umd.js",
|
|
8
|
+
"module": "dist/sur-voice.es.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"build": "vite build",
|
|
12
|
+
"preview": "vite preview"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"js-sha256": "^0.11.1",
|
|
16
|
+
"vue": "^3.5.24"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^24.10.1",
|
|
20
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
21
|
+
"@vue/tsconfig": "^0.8.1",
|
|
22
|
+
"typescript": "~5.9.3",
|
|
23
|
+
"vite": "npm:rolldown-vite@7.2.5",
|
|
24
|
+
"vue-tsc": "^3.1.4"
|
|
25
|
+
},
|
|
26
|
+
"pnpm": {
|
|
27
|
+
"overrides": {
|
|
28
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sur-voice",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "流式语音转文字",
|
|
6
|
+
"main": "dist/sur-voice.umd.js",
|
|
7
|
+
"module": "dist/sur-voice.es.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite",
|
|
10
|
+
"build": "vite build",
|
|
11
|
+
"preview": "vite preview"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"js-sha256": "^0.11.1",
|
|
15
|
+
"vue": "^3.5.24"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^24.10.1",
|
|
19
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
20
|
+
"@vue/tsconfig": "^0.8.1",
|
|
21
|
+
"typescript": "~5.9.3",
|
|
22
|
+
"vite": "npm:rolldown-vite@7.2.5",
|
|
23
|
+
"vue-tsc": "^3.1.4"
|
|
24
|
+
},
|
|
25
|
+
"pnpm": {
|
|
26
|
+
"overrides": {
|
|
27
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
// import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
+
// export default SurDocumentEditor
|
|
4
|
+
// export function install(Vue) {
|
|
5
|
+
// Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
6
|
+
// }
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// 测试
|
|
10
|
+
// import { createApp } from 'vue'
|
|
11
|
+
// import App from './App.vue'
|
|
12
|
+
// createApp(App).mount('#app')
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import onlyoffice from "./package/onlyoffice.vue";
|
|
17
|
+
export { onlyoffice };
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
// import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
+
// export default SurDocumentEditor
|
|
4
|
+
// export function install(Vue) {
|
|
5
|
+
// Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
6
|
+
// }
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// 测试
|
|
10
|
+
// import { createApp } from 'vue'
|
|
11
|
+
// import App from './App.vue'
|
|
12
|
+
// createApp(App).mount('#app')
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import surVoice from "./components/surVoice";
|
|
17
|
+
export { surVoice };
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
// import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
+
// export default SurDocumentEditor
|
|
4
|
+
// export function install(Vue) {
|
|
5
|
+
// Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
6
|
+
// }
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// 测试
|
|
10
|
+
// import { createApp } from 'vue'
|
|
11
|
+
// import App from './App.vue'
|
|
12
|
+
// createApp(App).mount('#app')
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import surVoice from "./components/surVoice.vue";
|
|
17
|
+
export { surVoice };
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
// import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
+
// export default SurDocumentEditor
|
|
4
|
+
// export function install(Vue) {
|
|
5
|
+
// Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
6
|
+
// }
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// 测试
|
|
10
|
+
// import { createApp } from 'vue'
|
|
11
|
+
// import App from './App.vue'
|
|
12
|
+
// createApp(App).mount('#app')
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import surVoice from "./components/surVoice.vue";
|
|
17
|
+
export { surVoice };
|
|
18
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
// https://vite.dev/config/
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [vue()],
|
|
7
|
+
build: {
|
|
8
|
+
lib: {
|
|
9
|
+
entry: "./src/index.ts",
|
|
10
|
+
name: "OnlyofficeUI",
|
|
11
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
12
|
+
},
|
|
13
|
+
rollupOptions: {
|
|
14
|
+
// Ensure external dependencies are not bundled into your library
|
|
15
|
+
external: ["vue"],
|
|
16
|
+
output: {
|
|
17
|
+
globals: {
|
|
18
|
+
vue: "Vue",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
function pathResolve(dir: string) {
|
|
6
|
+
return resolve(root, '.', dir)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// https://vite.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [vue()],
|
|
12
|
+
build: {
|
|
13
|
+
lib: {
|
|
14
|
+
entry: "./src/index.ts",
|
|
15
|
+
name: "OnlyofficeUI",
|
|
16
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
17
|
+
},
|
|
18
|
+
rollupOptions: {
|
|
19
|
+
// Ensure external dependencies are not bundled into your library
|
|
20
|
+
external: ["vue"],
|
|
21
|
+
output: {
|
|
22
|
+
globals: {
|
|
23
|
+
vue: "Vue",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
resolve: {
|
|
29
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
30
|
+
alias: [
|
|
31
|
+
{
|
|
32
|
+
find: 'vue-i18n',
|
|
33
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
find: /\@\//,
|
|
37
|
+
replacement: `${pathResolve('src')}/`
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
function pathResolve(dir: string) {
|
|
6
|
+
return resolve(root, '.', dir)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// https://vite.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [vue()],
|
|
12
|
+
build: {
|
|
13
|
+
lib: {
|
|
14
|
+
entry: "./src/index.ts",
|
|
15
|
+
name: "OnlyofficeUI",
|
|
16
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
17
|
+
},
|
|
18
|
+
rollupOptions: {
|
|
19
|
+
// Ensure external dependencies are not bundled into your library
|
|
20
|
+
external: ["vue"],
|
|
21
|
+
output: {
|
|
22
|
+
globals: {
|
|
23
|
+
vue: "Vue",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
resolve: {
|
|
29
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
30
|
+
alias: [
|
|
31
|
+
{
|
|
32
|
+
find: 'vue-i18n',
|
|
33
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
find: /\@\//,
|
|
37
|
+
replacement: `${pathResolve('src')}/`
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
function pathResolve(dir: string) {
|
|
6
|
+
return resolve(root, '.', dir)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// https://vite.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [vue()],
|
|
12
|
+
build: {
|
|
13
|
+
lib: {
|
|
14
|
+
entry: "./src/index.ts",
|
|
15
|
+
name: "OnlyofficeUI",
|
|
16
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
17
|
+
},
|
|
18
|
+
rollupOptions: {
|
|
19
|
+
// Ensure external dependencies are not bundled into your library
|
|
20
|
+
external: ["vue"],
|
|
21
|
+
output: {
|
|
22
|
+
globals: {
|
|
23
|
+
vue: "Vue",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
resolve: {
|
|
29
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
30
|
+
alias: [
|
|
31
|
+
{
|
|
32
|
+
find: 'vue-i18n',
|
|
33
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
find: /\@\//,
|
|
37
|
+
replacement: `${pathResolve('src')}/`
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
function pathResolve(dir: string) {
|
|
6
|
+
return resolve(root, '.', dir)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// https://vite.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [vue()],
|
|
12
|
+
build: {
|
|
13
|
+
lib: {
|
|
14
|
+
entry: "./src/index.ts",
|
|
15
|
+
name: "OnlyofficeUI",
|
|
16
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
17
|
+
},
|
|
18
|
+
rollupOptions: {
|
|
19
|
+
// Ensure external dependencies are not bundled into your library
|
|
20
|
+
external: ["vue"],
|
|
21
|
+
output: {
|
|
22
|
+
globals: {
|
|
23
|
+
vue: "Vue",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
resolve: {
|
|
29
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
30
|
+
alias: [
|
|
31
|
+
{
|
|
32
|
+
find: 'vue-i18n',
|
|
33
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
find: /\@\//,
|
|
37
|
+
replacement: `${pathResolve('src')}/`
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const root = process.cwd()
|
|
7
|
+
function pathResolve(dir: string) {
|
|
8
|
+
return resolve(root, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: "./src/index.ts",
|
|
17
|
+
name: "OnlyofficeUI",
|
|
18
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
19
|
+
},
|
|
20
|
+
rollupOptions: {
|
|
21
|
+
// Ensure external dependencies are not bundled into your library
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
32
|
+
alias: [
|
|
33
|
+
{
|
|
34
|
+
find: 'vue-i18n',
|
|
35
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: /\@\//,
|
|
39
|
+
replacement: `${pathResolve('src')}/`
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const root = process.cwd()
|
|
7
|
+
function pathResolve(dir: string) {
|
|
8
|
+
return resolve(root, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: "./src/index.ts",
|
|
17
|
+
name: "OnlyofficeUI",
|
|
18
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
19
|
+
},
|
|
20
|
+
rollupOptions: {
|
|
21
|
+
// Ensure external dependencies are not bundled into your library
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
32
|
+
alias: [
|
|
33
|
+
{
|
|
34
|
+
find: 'vue-i18n',
|
|
35
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: /\@\//,
|
|
39
|
+
replacement: `${pathResolve('src')}/`
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const root = process.cwd()
|
|
7
|
+
function pathResolve(dir: string) {
|
|
8
|
+
return resolve(root, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: "./src/index.ts",
|
|
17
|
+
name: "SurVoiceUI",
|
|
18
|
+
fileName: (format) => `SurVoiceUI.${format}.js`,
|
|
19
|
+
},
|
|
20
|
+
rollupOptions: {
|
|
21
|
+
// Ensure external dependencies are not bundled into your library
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
32
|
+
alias: [
|
|
33
|
+
{
|
|
34
|
+
find: 'vue-i18n',
|
|
35
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: /\@\//,
|
|
39
|
+
replacement: `${pathResolve('src')}/`
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const root = process.cwd()
|
|
7
|
+
function pathResolve(dir: string) {
|
|
8
|
+
return resolve(root, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: "./src/index.ts",
|
|
17
|
+
name: "SurVoiceUI",
|
|
18
|
+
fileName: (format) => `sur-voice.${format}.js`,
|
|
19
|
+
},
|
|
20
|
+
rollupOptions: {
|
|
21
|
+
// Ensure external dependencies are not bundled into your library
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
32
|
+
alias: [
|
|
33
|
+
{
|
|
34
|
+
find: 'vue-i18n',
|
|
35
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: /\@\//,
|
|
39
|
+
replacement: `${pathResolve('src')}/`
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const root = process.cwd()
|
|
7
|
+
function pathResolve(dir: string) {
|
|
8
|
+
return resolve(root, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: "./src/index.ts",
|
|
17
|
+
name: "SurVoiceUI",
|
|
18
|
+
fileName: (format) => `sur-voice.${format}.js`,
|
|
19
|
+
},
|
|
20
|
+
rollupOptions: {
|
|
21
|
+
// Ensure external dependencies are not bundled into your library
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
32
|
+
alias: [
|
|
33
|
+
{
|
|
34
|
+
find: 'vue-i18n',
|
|
35
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: /\@\//,
|
|
39
|
+
replacement: `${pathResolve('src')}/`
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const root = process.cwd()
|
|
7
|
+
function pathResolve(dir: string) {
|
|
8
|
+
return resolve(root, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: "./src/index.ts",
|
|
17
|
+
name: "SurVoiceUI",
|
|
18
|
+
fileName: (format) => `sur-voice.${format}.js`,
|
|
19
|
+
},
|
|
20
|
+
rollupOptions: {
|
|
21
|
+
// Ensure external dependencies are not bundled into your library
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
32
|
+
alias: [
|
|
33
|
+
{
|
|
34
|
+
find: 'vue-i18n',
|
|
35
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: /\@\//,
|
|
39
|
+
replacement: `${pathResolve('src')}/`
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { resolve } from 'path'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const root = process.cwd()
|
|
7
|
+
function pathResolve(dir: string) {
|
|
8
|
+
return resolve(root, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: "./src/index.ts",
|
|
17
|
+
name: "SurVoiceUI",
|
|
18
|
+
fileName: (format) => `sur-voice.${format}.js`,
|
|
19
|
+
},
|
|
20
|
+
rollupOptions: {
|
|
21
|
+
// Ensure external dependencies are not bundled into your library
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
|
32
|
+
alias: [
|
|
33
|
+
{
|
|
34
|
+
find: 'vue-i18n',
|
|
35
|
+
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: /\@\//,
|
|
39
|
+
replacement: `${pathResolve('src')}/`
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
})
|