Skip to content

Commit bbe339d

Browse files
authored
feat: support vue-i18n v9.1 (#180)
1 parent e7d5701 commit bbe339d

File tree

7 files changed

+268
-235
lines changed

7 files changed

+268
-235
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ coverage
22
node_modules
33
lib
44
.DS_Store
5+
.env
56
*.log
67
*.swp
78
*~

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
"dependencies": {
2727
"@intlify/cli": "^0.4.0",
28-
"@intlify/shared": "^9.0.0",
28+
"@intlify/shared": "^9.1.1",
2929
"loader-utils": "^2.0.0"
3030
},
3131
"devDependencies": {
32-
"@intlify/runtime": "^9.0.0",
32+
"@intlify/runtime": "^9.1.1",
3333
"@types/eslint": "^7.2.6",
3434
"@types/eslint-visitor-keys": "^1.0.0",
3535
"@types/jest": "^26.0.16",
@@ -39,11 +39,11 @@
3939
"@types/node": "^14.14.10",
4040
"@types/webpack": "^4.41.26",
4141
"@types/webpack-merge": "^4.1.5",
42-
"@typescript-eslint/eslint-plugin": "^4.15.0",
43-
"@typescript-eslint/parser": "^4.15.0",
44-
"@vue/compiler-sfc": "^3.0.5",
42+
"@typescript-eslint/eslint-plugin": "^4.21.0",
43+
"@typescript-eslint/parser": "^4.21.0",
44+
"@vue/compiler-sfc": "^3.0.11",
4545
"babel-loader": "^8.1.0",
46-
"eslint": "^7.21.0",
46+
"eslint": "^7.23.0",
4747
"eslint-config-prettier": "^8.1.0",
4848
"eslint-plugin-prettier": "^3.3.1",
4949
"eslint-plugin-vue-libs": "^4.0.0",
@@ -59,10 +59,10 @@
5959
"shipjs": "^0.23.0",
6060
"source-map": "^0.6.1",
6161
"ts-jest": "^26.4.4",
62-
"typescript": "^4.1.3",
62+
"typescript": "^4.2.3",
6363
"typescript-eslint-language-service": "^4.1.3",
64-
"vue": "^3.0.6",
65-
"vue-i18n": "^9.0.0",
64+
"vue": "^3.0.11",
65+
"vue-i18n": "^9.1.1",
6666
"vue-loader": "^16.1.2",
6767
"webpack": "^4.46.0",
6868
"webpack-cli": "^3.3.12",

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare class IntlifyVuePlugin {
1919
let Plugin: typeof IntlifyVuePlugin
2020

2121
console.warn(
22-
`[@intlify/vue-i18n-loader] IntlifyVuePlugin is experimental! This plugin is used for Intlify tools. Don't use this plugin to enhancement Component options of your application.`
22+
`[@intlify/vue-i18n-loader] IntlifyVuePlugin is experimental! This plugin is used for Intlify Devtools. Don't use this plugin to enhancement Component options of your application.`
2323
)
2424
// console.log('[@intlify/vue-i18n-loader] webpack version:', webpack.version)
2525

src/pluginWebpack4.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export default class IntlifyVuePlugin implements webpack.Plugin {
194194

195195
compiler.hooks.compilation.tap(
196196
PLUGIN_ID,
197+
// @ts-ignore
197198
(compilation, { normalModuleFactory }) => {
198199
compilation.dependencyFactories.set(
199200
// @ts-ignore
@@ -212,6 +213,7 @@ export default class IntlifyVuePlugin implements webpack.Plugin {
212213
) => {
213214
parser.hooks.exportExpression.tap(
214215
PLUGIN_ID,
216+
// @ts-ignore
215217
(statement, declaration) => {
216218
if (
217219
(parser as any).state.module.resource.endsWith('.vue') &&

src/pluginWebpack5.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export default class IntlifyVuePlugin {
192192

193193
compiler.hooks.compilation.tap(
194194
PLUGIN_ID,
195+
// @ts-ignore
195196
(compilation, { normalModuleFactory }) => {
196197
compilation.dependencyFactories.set(
197198
// @ts-ignore

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"./@types",
4949
"./node_modules/@types"
5050
],
51+
"skipLibCheck": true,
5152
// "types": [], /* Type declaration files to be included in compilation. */
5253
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
5354
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */

0 commit comments

Comments
 (0)