@intlify/unplugin-vue-i18n 7.0.0-beta.0 → 7.0.0-beta.2
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/README.md +21 -1
- package/lib/index.cjs +275 -410
- package/lib/index.mjs +275 -412
- package/lib/rspack.cjs +26 -0
- package/lib/rspack.d.cts +6 -0
- package/lib/rspack.d.mts +6 -0
- package/lib/rspack.d.ts +6 -0
- package/lib/rspack.mjs +24 -0
- package/lib/types.d.cts +1 -0
- package/lib/types.d.mts +1 -0
- package/lib/types.d.ts +1 -0
- package/lib/vite.cjs +5 -1
- package/lib/vite.mjs +5 -1
- package/lib/webpack.cjs +5 -1
- package/lib/webpack.mjs +5 -1
- package/package.json +14 -6
- package/rspack.d.ts +1 -0
package/lib/rspack.cjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const unplugin = require('unplugin');
|
|
4
|
+
const index = require('./index.cjs');
|
|
5
|
+
require('debug');
|
|
6
|
+
require('picocolors');
|
|
7
|
+
require('node:path');
|
|
8
|
+
require('defu');
|
|
9
|
+
require('pathe');
|
|
10
|
+
require('@intlify/bundle-utils');
|
|
11
|
+
require('@intlify/shared');
|
|
12
|
+
require('@rollup/pluginutils');
|
|
13
|
+
require('fast-glob');
|
|
14
|
+
require('node:fs');
|
|
15
|
+
require('vue/compiler-sfc');
|
|
16
|
+
require('knitwork');
|
|
17
|
+
require('mlly');
|
|
18
|
+
require('node:crypto');
|
|
19
|
+
require('@intlify/vue-i18n-extensions');
|
|
20
|
+
require('@typescript-eslint/scope-manager');
|
|
21
|
+
require('@typescript-eslint/typescript-estree');
|
|
22
|
+
require('@eslint-community/eslint-utils');
|
|
23
|
+
|
|
24
|
+
const rspack = unplugin.createRspackPlugin(index.unpluginFactory);
|
|
25
|
+
|
|
26
|
+
module.exports = rspack;
|
package/lib/rspack.d.cts
ADDED
package/lib/rspack.d.mts
ADDED
package/lib/rspack.d.ts
ADDED
package/lib/rspack.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRspackPlugin } from 'unplugin';
|
|
2
|
+
import { unpluginFactory } from './index.mjs';
|
|
3
|
+
import 'debug';
|
|
4
|
+
import 'picocolors';
|
|
5
|
+
import 'node:path';
|
|
6
|
+
import 'defu';
|
|
7
|
+
import 'pathe';
|
|
8
|
+
import '@intlify/bundle-utils';
|
|
9
|
+
import '@intlify/shared';
|
|
10
|
+
import '@rollup/pluginutils';
|
|
11
|
+
import 'fast-glob';
|
|
12
|
+
import 'node:fs';
|
|
13
|
+
import 'vue/compiler-sfc';
|
|
14
|
+
import 'knitwork';
|
|
15
|
+
import 'mlly';
|
|
16
|
+
import 'node:crypto';
|
|
17
|
+
import '@intlify/vue-i18n-extensions';
|
|
18
|
+
import '@typescript-eslint/scope-manager';
|
|
19
|
+
import '@typescript-eslint/typescript-estree';
|
|
20
|
+
import '@eslint-community/eslint-utils';
|
|
21
|
+
|
|
22
|
+
const rspack = createRspackPlugin(unpluginFactory);
|
|
23
|
+
|
|
24
|
+
export { rspack as default };
|
package/lib/types.d.cts
CHANGED
|
@@ -2,6 +2,7 @@ type SFCLangFormat = 'json' | 'json5' | 'yml' | 'yaml';
|
|
|
2
2
|
type VueI18nModule = 'vue-i18n' | 'petite-vue-i18n';
|
|
3
3
|
interface PluginOptions {
|
|
4
4
|
include?: string | string[];
|
|
5
|
+
exclude?: string | string[];
|
|
5
6
|
onlyLocales?: string | string[];
|
|
6
7
|
allowDynamic?: boolean;
|
|
7
8
|
module?: VueI18nModule;
|
package/lib/types.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ type SFCLangFormat = 'json' | 'json5' | 'yml' | 'yaml';
|
|
|
2
2
|
type VueI18nModule = 'vue-i18n' | 'petite-vue-i18n';
|
|
3
3
|
interface PluginOptions {
|
|
4
4
|
include?: string | string[];
|
|
5
|
+
exclude?: string | string[];
|
|
5
6
|
onlyLocales?: string | string[];
|
|
6
7
|
allowDynamic?: boolean;
|
|
7
8
|
module?: VueI18nModule;
|
package/lib/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ type SFCLangFormat = 'json' | 'json5' | 'yml' | 'yaml';
|
|
|
2
2
|
type VueI18nModule = 'vue-i18n' | 'petite-vue-i18n';
|
|
3
3
|
interface PluginOptions {
|
|
4
4
|
include?: string | string[];
|
|
5
|
+
exclude?: string | string[];
|
|
5
6
|
onlyLocales?: string | string[];
|
|
6
7
|
allowDynamic?: boolean;
|
|
7
8
|
module?: VueI18nModule;
|
package/lib/vite.cjs
CHANGED
|
@@ -5,13 +5,17 @@ const index = require('./index.cjs');
|
|
|
5
5
|
require('debug');
|
|
6
6
|
require('picocolors');
|
|
7
7
|
require('node:path');
|
|
8
|
+
require('defu');
|
|
8
9
|
require('pathe');
|
|
9
|
-
require('@intlify/shared');
|
|
10
10
|
require('@intlify/bundle-utils');
|
|
11
|
+
require('@intlify/shared');
|
|
11
12
|
require('@rollup/pluginutils');
|
|
12
13
|
require('fast-glob');
|
|
13
14
|
require('node:fs');
|
|
14
15
|
require('vue/compiler-sfc');
|
|
16
|
+
require('knitwork');
|
|
17
|
+
require('mlly');
|
|
18
|
+
require('node:crypto');
|
|
15
19
|
require('@intlify/vue-i18n-extensions');
|
|
16
20
|
require('@typescript-eslint/scope-manager');
|
|
17
21
|
require('@typescript-eslint/typescript-estree');
|
package/lib/vite.mjs
CHANGED
|
@@ -3,13 +3,17 @@ import { unpluginFactory } from './index.mjs';
|
|
|
3
3
|
import 'debug';
|
|
4
4
|
import 'picocolors';
|
|
5
5
|
import 'node:path';
|
|
6
|
+
import 'defu';
|
|
6
7
|
import 'pathe';
|
|
7
|
-
import '@intlify/shared';
|
|
8
8
|
import '@intlify/bundle-utils';
|
|
9
|
+
import '@intlify/shared';
|
|
9
10
|
import '@rollup/pluginutils';
|
|
10
11
|
import 'fast-glob';
|
|
11
12
|
import 'node:fs';
|
|
12
13
|
import 'vue/compiler-sfc';
|
|
14
|
+
import 'knitwork';
|
|
15
|
+
import 'mlly';
|
|
16
|
+
import 'node:crypto';
|
|
13
17
|
import '@intlify/vue-i18n-extensions';
|
|
14
18
|
import '@typescript-eslint/scope-manager';
|
|
15
19
|
import '@typescript-eslint/typescript-estree';
|
package/lib/webpack.cjs
CHANGED
|
@@ -5,13 +5,17 @@ const index = require('./index.cjs');
|
|
|
5
5
|
require('debug');
|
|
6
6
|
require('picocolors');
|
|
7
7
|
require('node:path');
|
|
8
|
+
require('defu');
|
|
8
9
|
require('pathe');
|
|
9
|
-
require('@intlify/shared');
|
|
10
10
|
require('@intlify/bundle-utils');
|
|
11
|
+
require('@intlify/shared');
|
|
11
12
|
require('@rollup/pluginutils');
|
|
12
13
|
require('fast-glob');
|
|
13
14
|
require('node:fs');
|
|
14
15
|
require('vue/compiler-sfc');
|
|
16
|
+
require('knitwork');
|
|
17
|
+
require('mlly');
|
|
18
|
+
require('node:crypto');
|
|
15
19
|
require('@intlify/vue-i18n-extensions');
|
|
16
20
|
require('@typescript-eslint/scope-manager');
|
|
17
21
|
require('@typescript-eslint/typescript-estree');
|
package/lib/webpack.mjs
CHANGED
|
@@ -3,13 +3,17 @@ import { unpluginFactory } from './index.mjs';
|
|
|
3
3
|
import 'debug';
|
|
4
4
|
import 'picocolors';
|
|
5
5
|
import 'node:path';
|
|
6
|
+
import 'defu';
|
|
6
7
|
import 'pathe';
|
|
7
|
-
import '@intlify/shared';
|
|
8
8
|
import '@intlify/bundle-utils';
|
|
9
|
+
import '@intlify/shared';
|
|
9
10
|
import '@rollup/pluginutils';
|
|
10
11
|
import 'fast-glob';
|
|
11
12
|
import 'node:fs';
|
|
12
13
|
import 'vue/compiler-sfc';
|
|
14
|
+
import 'knitwork';
|
|
15
|
+
import 'mlly';
|
|
16
|
+
import 'node:crypto';
|
|
13
17
|
import '@intlify/vue-i18n-extensions';
|
|
14
18
|
import '@typescript-eslint/scope-manager';
|
|
15
19
|
import '@typescript-eslint/typescript-estree';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlify/unplugin-vue-i18n",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.2",
|
|
5
5
|
"description": "unplugin for Vue I18n",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "kazuya kawaguchi",
|
|
@@ -25,25 +25,28 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@eslint-community/eslint-utils": "^4.4.0",
|
|
28
|
-
"@intlify/bundle-utils": "^10.0.0",
|
|
29
28
|
"@intlify/shared": "latest",
|
|
30
29
|
"@intlify/vue-i18n-extensions": "^8.0.0",
|
|
31
30
|
"@rollup/pluginutils": "^5.1.0",
|
|
32
31
|
"@typescript-eslint/scope-manager": "^8.13.0",
|
|
33
32
|
"@typescript-eslint/typescript-estree": "^8.13.0",
|
|
34
33
|
"debug": "^4.3.3",
|
|
34
|
+
"defu": "^6.1.4",
|
|
35
35
|
"fast-glob": "^3.2.12",
|
|
36
36
|
"js-yaml": "^4.1.0",
|
|
37
37
|
"json5": "^2.2.3",
|
|
38
|
+
"knitwork": "^1.2.0",
|
|
39
|
+
"mlly": "^1.2.0",
|
|
38
40
|
"pathe": "^1.0.0",
|
|
39
41
|
"picocolors": "^1.0.0",
|
|
40
42
|
"source-map-js": "^1.0.2",
|
|
41
|
-
"unplugin": "^
|
|
42
|
-
"vue": "^3.4"
|
|
43
|
+
"unplugin": "^2.2.0",
|
|
44
|
+
"vue": "^3.4",
|
|
45
|
+
"@intlify/bundle-utils": "11.0.0-beta.0"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
48
|
+
"@types/node": "^20.14.8",
|
|
49
|
+
"unbuild": "^2.0.0"
|
|
47
50
|
},
|
|
48
51
|
"engines": {
|
|
49
52
|
"node": ">= 18"
|
|
@@ -59,6 +62,7 @@
|
|
|
59
62
|
"unplugin",
|
|
60
63
|
"transform",
|
|
61
64
|
"webpack",
|
|
65
|
+
"rspack",
|
|
62
66
|
"vite",
|
|
63
67
|
"vue",
|
|
64
68
|
"vue-i18n"
|
|
@@ -80,6 +84,10 @@
|
|
|
80
84
|
"import": "./lib/webpack.mjs",
|
|
81
85
|
"require": "./lib/webpack.cjs"
|
|
82
86
|
},
|
|
87
|
+
"./rspack": {
|
|
88
|
+
"import": "./lib/rspack.mjs",
|
|
89
|
+
"require": "./lib/rspack.cjs"
|
|
90
|
+
},
|
|
83
91
|
"./types": {
|
|
84
92
|
"import": {
|
|
85
93
|
"types": "./lib/types.d.mts"
|
package/rspack.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './lib/rspack'
|