@intlify/unplugin-vue-i18n 1.0.1 → 1.2.0
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/lib/index.d.cts +7 -0
- package/lib/index.d.mts +7 -0
- package/lib/types.d.cts +21 -0
- package/lib/types.d.mts +21 -0
- package/lib/types.d.ts +1 -1
- package/lib/vite.d.cts +6 -0
- package/lib/vite.d.mts +6 -0
- package/lib/webpack.d.cts +6 -0
- package/lib/webpack.d.mts +6 -0
- package/package.json +5 -5
package/lib/index.d.cts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as _unplugin from 'unplugin';
|
|
2
|
+
import { PluginOptions } from './types.cjs';
|
|
3
|
+
export { SFCLangFormat } from './types.cjs';
|
|
4
|
+
|
|
5
|
+
declare const unplugin: _unplugin.UnpluginInstance<PluginOptions, boolean>;
|
|
6
|
+
|
|
7
|
+
export { PluginOptions, unplugin as default, unplugin };
|
package/lib/index.d.mts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as _unplugin from 'unplugin';
|
|
2
|
+
import { PluginOptions } from './types.mjs';
|
|
3
|
+
export { SFCLangFormat } from './types.mjs';
|
|
4
|
+
|
|
5
|
+
declare const unplugin: _unplugin.UnpluginInstance<PluginOptions, boolean>;
|
|
6
|
+
|
|
7
|
+
export { PluginOptions, unplugin as default, unplugin };
|
package/lib/types.d.cts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type SFCLangFormat = 'json' | 'json5' | 'yml' | 'yaml';
|
|
2
|
+
interface PluginOptions {
|
|
3
|
+
include?: string | string[];
|
|
4
|
+
allowDynamic?: boolean;
|
|
5
|
+
jitCompilation?: boolean;
|
|
6
|
+
dropMessageCompiler?: boolean;
|
|
7
|
+
runtimeOnly?: boolean;
|
|
8
|
+
compositionOnly?: boolean;
|
|
9
|
+
fullInstall?: boolean;
|
|
10
|
+
esm?: boolean;
|
|
11
|
+
forceStringify?: boolean;
|
|
12
|
+
defaultSFCLang?: SFCLangFormat;
|
|
13
|
+
globalSFCScope?: boolean;
|
|
14
|
+
bridge?: boolean;
|
|
15
|
+
useClassComponent?: boolean;
|
|
16
|
+
useVueI18nImportName?: boolean;
|
|
17
|
+
strictMessage?: boolean;
|
|
18
|
+
escapeHtml?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { PluginOptions, SFCLangFormat };
|
package/lib/types.d.mts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type SFCLangFormat = 'json' | 'json5' | 'yml' | 'yaml';
|
|
2
|
+
interface PluginOptions {
|
|
3
|
+
include?: string | string[];
|
|
4
|
+
allowDynamic?: boolean;
|
|
5
|
+
jitCompilation?: boolean;
|
|
6
|
+
dropMessageCompiler?: boolean;
|
|
7
|
+
runtimeOnly?: boolean;
|
|
8
|
+
compositionOnly?: boolean;
|
|
9
|
+
fullInstall?: boolean;
|
|
10
|
+
esm?: boolean;
|
|
11
|
+
forceStringify?: boolean;
|
|
12
|
+
defaultSFCLang?: SFCLangFormat;
|
|
13
|
+
globalSFCScope?: boolean;
|
|
14
|
+
bridge?: boolean;
|
|
15
|
+
useClassComponent?: boolean;
|
|
16
|
+
useVueI18nImportName?: boolean;
|
|
17
|
+
strictMessage?: boolean;
|
|
18
|
+
escapeHtml?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { PluginOptions, SFCLangFormat };
|
package/lib/types.d.ts
CHANGED
package/lib/vite.d.cts
ADDED
package/lib/vite.d.mts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlify/unplugin-vue-i18n",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "unplugin for Vue I18n",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@intlify/bundle-utils": "^7.
|
|
30
|
-
"@intlify/shared": "^9.
|
|
29
|
+
"@intlify/bundle-utils": "^7.3.0",
|
|
30
|
+
"@intlify/shared": "^9.4.0",
|
|
31
31
|
"@rollup/pluginutils": "^5.0.2",
|
|
32
32
|
"@vue/compiler-sfc": "^3.2.47",
|
|
33
33
|
"debug": "^4.3.3",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"unplugin": "^1.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"unbuild": "^
|
|
43
|
+
"unbuild": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">= 14.16"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"dev:vite": "vite examples/vite --config ./examples/vite/vite.config.ts",
|
|
99
|
-
"dev:webpack": "yarn build && webpack
|
|
99
|
+
"dev:webpack": "yarn build && webpack serve --config ./examples/webpack/webpack.config.js",
|
|
100
100
|
"build": "unbuild",
|
|
101
101
|
"build:example": "npm-run-all \"build:example:*\"",
|
|
102
102
|
"build:example:vite": "vite build --config ./examples/vite/vite.config.ts --outDir ./examples/vite/dist",
|