@intlify/unplugin-vue-i18n 1.0.1 → 1.1.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.
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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
@@ -18,4 +18,4 @@ interface PluginOptions {
18
18
  escapeHtml?: boolean;
19
19
  }
20
20
 
21
- export { PluginOptions, SFCLangFormat };
21
+ export type { PluginOptions, SFCLangFormat };
package/lib/vite.d.cts ADDED
@@ -0,0 +1,6 @@
1
+ import * as vite from 'vite';
2
+ import { PluginOptions } from './types.cjs';
3
+
4
+ declare const _default: (options: PluginOptions) => vite.Plugin | vite.Plugin[];
5
+
6
+ export { _default as default };
package/lib/vite.d.mts ADDED
@@ -0,0 +1,6 @@
1
+ import * as vite from 'vite';
2
+ import { PluginOptions } from './types.mjs';
3
+
4
+ declare const _default: (options: PluginOptions) => vite.Plugin | vite.Plugin[];
5
+
6
+ export { _default as default };
@@ -0,0 +1,6 @@
1
+ import * as webpack from 'webpack';
2
+ import { PluginOptions } from './types.cjs';
3
+
4
+ declare const _default: (options: PluginOptions) => webpack.WebpackPluginInstance;
5
+
6
+ export { _default as default };
@@ -0,0 +1,6 @@
1
+ import * as webpack from 'webpack';
2
+ import { PluginOptions } from './types.mjs';
3
+
4
+ declare const _default: (options: PluginOptions) => webpack.WebpackPluginInstance;
5
+
6
+ export { _default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlify/unplugin-vue-i18n",
3
- "version": "1.0.1",
3
+ "version": "1.1.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.2.0",
30
- "@intlify/shared": "^9.3.0",
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": "^1.2.1"
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-dev-server --config ./examples/webpack/webpack.config.js --inline --hot",
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",