@webinex/vite 0.0.1-beta0 → 0.0.1-beta2

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.
@@ -1,4 +1,4 @@
1
- declare module '@webinex/vite/i18next-resources/client' {
1
+ declare module 'virtual:i18next-resources' {
2
2
  interface LocalizationResourceMap {
3
3
  [key: string]: () => Promise<Record<string, any>>;
4
4
  }
@@ -5,7 +5,7 @@ const yaml = require('yaml');
5
5
  const lodash = require('lodash');
6
6
  const promises = require('fs/promises');
7
7
 
8
- const MODULE_ID = "virtual:resources";
8
+ const MODULE_ID = "virtual:i18next-resources";
9
9
  const RESOLVED_MODULE_ID = "\0" + MODULE_ID;
10
10
  function i18nextPlugin(options) {
11
11
  const { resources } = options;
@@ -3,7 +3,7 @@ import { parse } from 'yaml';
3
3
  import { merge } from 'lodash';
4
4
  import { readFile } from 'fs/promises';
5
5
 
6
- const MODULE_ID = "virtual:resources";
6
+ const MODULE_ID = "virtual:i18next-resources";
7
7
  const RESOLVED_MODULE_ID = "\0" + MODULE_ID;
8
8
  function i18nextPlugin(options) {
9
9
  const { resources } = options;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webinex/vite",
3
3
  "private": false,
4
- "version": "0.0.1-beta0",
4
+ "version": "0.0.1-beta2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./external-plugin": {
@@ -27,8 +27,7 @@
27
27
  }
28
28
  },
29
29
  "./i18next-resources-plugin/client": {
30
- "types": "./dist/i18next-resources-plugin/client.d.ts",
31
- "default": "./dist/i18next-resources-plugin/client.d.ts"
30
+ "types": "./dist/i18next-resources-plugin/client.d.ts"
32
31
  },
33
32
  "./scss-path-plugin": {
34
33
  "types": "./dist/scss-path-plugin/index.d.ts",
@@ -1,4 +1,4 @@
1
- declare module '@webinex/vite/i18next-resources/client' {
1
+ declare module 'virtual:i18next-resources' {
2
2
  interface LocalizationResourceMap {
3
3
  [key: string]: () => Promise<Record<string, any>>;
4
4
  }
@@ -8,7 +8,7 @@ export interface I18nextPluginOptions {
8
8
  resources: Record<string, string[]>;
9
9
  }
10
10
 
11
- const MODULE_ID = 'virtual:resources';
11
+ const MODULE_ID = 'virtual:i18next-resources';
12
12
  const RESOLVED_MODULE_ID = '\0' + MODULE_ID;
13
13
 
14
14
  export function i18nextPlugin(options: I18nextPluginOptions) {