@astralarium/repo-l10n 0.1.0 → 0.1.1
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/dist/build/source.d.ts +4 -0
- package/dist/build/source.js +6 -1
- package/package.json +6 -6
package/dist/build/source.d.ts
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
import type { Plugin } from "vite";
|
|
3
3
|
/** This package's name. */
|
|
4
4
|
export declare const PACKAGE = "@astralarium/repo-l10n";
|
|
5
|
+
/** CommonJS modules this package imports: pre-bundled, since an
|
|
6
|
+
* excluded package's dependencies skip discovery and runners lacking
|
|
7
|
+
* `module` (workerd) load them raw. */
|
|
8
|
+
export declare const COMMONJS_IMPORTS: string[];
|
|
5
9
|
/** Transforms this package in every environment, SSR and pre-bundling
|
|
6
10
|
* included: its `virtual:l10n/compiled` imports resolve through the
|
|
7
11
|
* app's plugins. Vitest inlines what an environment keeps internal. */
|
package/dist/build/source.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/** This package's name. */
|
|
2
2
|
export const PACKAGE = "@astralarium/repo-l10n";
|
|
3
|
+
/** CommonJS modules this package imports: pre-bundled, since an
|
|
4
|
+
* excluded package's dependencies skip discovery and runners lacking
|
|
5
|
+
* `module` (workerd) load them raw. */
|
|
6
|
+
export const COMMONJS_IMPORTS = ["react", "react/jsx-runtime", "react/compiler-runtime"];
|
|
3
7
|
/** Transforms this package in every environment, SSR and pre-bundling
|
|
4
8
|
* included: its `virtual:l10n/compiled` imports resolve through the
|
|
5
9
|
* app's plugins. Vitest inlines what an environment keeps internal. */
|
|
@@ -11,7 +15,8 @@ export function l10nSource() {
|
|
|
11
15
|
noExternal: [PACKAGE]
|
|
12
16
|
},
|
|
13
17
|
optimizeDeps: {
|
|
14
|
-
exclude: [PACKAGE]
|
|
18
|
+
exclude: [PACKAGE],
|
|
19
|
+
include: COMMONJS_IMPORTS
|
|
15
20
|
}
|
|
16
21
|
})
|
|
17
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astralarium/repo-l10n",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/astralarium/repo/tree/main/packages/repo-l10n#readme",
|
|
6
6
|
"repository": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"remark-parse": "^11.0.0",
|
|
50
50
|
"unified": "^11.0.5",
|
|
51
51
|
"@astralarium/repo-l10n-manifest": "^0.1.0",
|
|
52
|
-
"@astralarium/repo-
|
|
53
|
-
"@astralarium/repo-
|
|
52
|
+
"@astralarium/repo-package-files": "^0.1.0",
|
|
53
|
+
"@astralarium/repo-telemetry": "^0.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@mdx-js/mdx": "^3.1.1",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"typescript": "^6.0.3",
|
|
70
70
|
"vite": "^8.3.4",
|
|
71
71
|
"vitest": "^5.0.3",
|
|
72
|
+
"@astralarium/repo-config-vitest": "^0.1.0",
|
|
72
73
|
"@astralarium/localizable": "^0.1.0",
|
|
73
|
-
"@astralarium/repo-config-typescript": "^0.1.0",
|
|
74
74
|
"@astralarium/repo-config-eslint": "^0.1.0",
|
|
75
|
-
"@astralarium/repo-
|
|
76
|
-
"@astralarium/repo-
|
|
75
|
+
"@astralarium/repo-config-typescript": "^0.1.0",
|
|
76
|
+
"@astralarium/repo-package-build": "^0.1.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@tanstack/react-router": "^1.170.46",
|