This repository was archived by the owner on Jul 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ the below example that `examples/composition/vite.config.ts`:
43
43
import path from ' path'
44
44
import { defineConfig } from ' vite'
45
45
import vue from ' @vitejs/plugin-vue'
46
- import { vueI18n } from ' @intlify/vite-plugin-vue-i18n'
46
+ import vueI18n from ' @intlify/vite-plugin-vue-i18n'
47
47
48
48
export default defineConfig ({
49
49
plugins: [
Original file line number Diff line number Diff line change 1
1
import path from 'path'
2
2
import { defineConfig } from 'vite'
3
3
import vue from '@vitejs/plugin-vue'
4
- import { vueI18n } from '../src/index'
4
+ import vueI18n from '../src/index'
5
5
6
6
export default defineConfig ( {
7
7
build : {
Original file line number Diff line number Diff line change @@ -158,4 +158,6 @@ function getOptions(
158
158
}
159
159
}
160
160
161
+ // overwrite for cjs require('...')() usage
162
+ export default pluginI18n
161
163
export const vueI18n = pluginI18n
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import path from 'path'
3
3
import { build } from 'vite'
4
4
import vue from '@vitejs/plugin-vue'
5
5
import { JSDOM , VirtualConsole } from 'jsdom'
6
- import { vueI18n } from '../src/index'
6
+ import vueI18n from '../src/index'
7
7
8
8
async function bundle ( fixture : string , options : Record < string , unknown > = { } ) {
9
9
const input = ( options . input as string ) || './fixtures/entry.ts'
You can’t perform that action at this time.
0 commit comments