Skip to content

feat: support vue-i18n v9.1 #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ coverage
node_modules
lib
.DS_Store
.env
*.log
*.swp
*~
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
},
"dependencies": {
"@intlify/cli": "^0.4.0",
"@intlify/shared": "^9.0.0",
"@intlify/shared": "^9.1.1",
"loader-utils": "^2.0.0"
},
"devDependencies": {
"@intlify/runtime": "^9.0.0",
"@intlify/runtime": "^9.1.1",
"@types/eslint": "^7.2.6",
"@types/eslint-visitor-keys": "^1.0.0",
"@types/jest": "^26.0.16",
Expand All @@ -39,11 +39,11 @@
"@types/node": "^14.14.10",
"@types/webpack": "^4.41.26",
"@types/webpack-merge": "^4.1.5",
"@typescript-eslint/eslint-plugin": "^4.15.0",
"@typescript-eslint/parser": "^4.15.0",
"@vue/compiler-sfc": "^3.0.5",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"@vue/compiler-sfc": "^3.0.11",
"babel-loader": "^8.1.0",
"eslint": "^7.21.0",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue-libs": "^4.0.0",
Expand All @@ -59,10 +59,10 @@
"shipjs": "^0.23.0",
"source-map": "^0.6.1",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3",
"typescript": "^4.2.3",
"typescript-eslint-language-service": "^4.1.3",
"vue": "^3.0.6",
"vue-i18n": "^9.0.0",
"vue": "^3.0.11",
"vue-i18n": "^9.1.1",
"vue-loader": "^16.1.2",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare class IntlifyVuePlugin {
let Plugin: typeof IntlifyVuePlugin

console.warn(
`[@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.`
`[@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.`
)
// console.log('[@intlify/vue-i18n-loader] webpack version:', webpack.version)

Expand Down
2 changes: 2 additions & 0 deletions src/pluginWebpack4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default class IntlifyVuePlugin implements webpack.Plugin {

compiler.hooks.compilation.tap(
PLUGIN_ID,
// @ts-ignore
(compilation, { normalModuleFactory }) => {
compilation.dependencyFactories.set(
// @ts-ignore
Expand All @@ -212,6 +213,7 @@ export default class IntlifyVuePlugin implements webpack.Plugin {
) => {
parser.hooks.exportExpression.tap(
PLUGIN_ID,
// @ts-ignore
(statement, declaration) => {
if (
(parser as any).state.module.resource.endsWith('.vue') &&
Expand Down
1 change: 1 addition & 0 deletions src/pluginWebpack5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export default class IntlifyVuePlugin {

compiler.hooks.compilation.tap(
PLUGIN_ID,
// @ts-ignore
(compilation, { normalModuleFactory }) => {
compilation.dependencyFactories.set(
// @ts-ignore
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"./@types",
"./node_modules/@types"
],
"skipLibCheck": true,
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
Expand Down
Loading