Skip to content
This repository was archived by the owner on Jul 4, 2021. It is now read-only.

Commit 147a6df

Browse files
authored
improvement: module exporting (#38)
1 parent 6208636 commit 147a6df

File tree

15 files changed

+43
-2665
lines changed

15 files changed

+43
-2665
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ the below example that `examples/composition/vite.config.ts`:
4141

4242
```ts
4343
import path from 'path'
44-
import Vue from '@vitejs/plugin-vue'
45-
import { VueI18n } from '@intlify/vite-plugin-vue-i18n'
44+
import { defineConfig } from 'vite'
45+
import vue from '@vitejs/plugin-vue'
46+
import { vueI18n } from '@intlify/vite-plugin-vue-i18n'
4647

47-
import type { UserConfig } from 'vite'
48-
49-
const config: UserConfig = {
48+
export default defineConfig({
5049
plugins: [
51-
Vue(), // you need to install `@vitejs/plugin-vue`
52-
VueI18n({
50+
vue(), // you need to install `@vitejs/plugin-vue`
51+
vueI18n({
5352
// you need to set i18n resource including paths !
5453
include: path.resolve(__dirname, './path/to/src/locales/**')
5554
})

examples/composition/package.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/composition/vite.config.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

examples/composition/yarn.lock

Lines changed: 0 additions & 848 deletions
This file was deleted.

examples/global/package.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/global/vite.config.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)