@gjsify/vite-plugin-gjsify 0.43.0 → 0.45.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.js +2 -2
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
import { createRequire } from 'node:module';
|
|
32
32
|
import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
|
|
33
33
|
import * as nodePath from 'node:path';
|
|
34
|
-
import { gjsImportsEmptyPlugin, platformResolvePlugin, detectNativescriptPlatform, nativescriptPlatformDefines, cssAsStringPlugin, } from '@gjsify/rolldown-plugin-gjsify';
|
|
34
|
+
import { gjsImportsEmptyPlugin, platformResolvePlugin, nativescriptSuffixChain, detectNativescriptPlatform, nativescriptPlatformDefines, cssAsStringPlugin, } from '@gjsify/rolldown-plugin-gjsify';
|
|
35
35
|
import blueprintPlugin from '@gjsify/vite-plugin-blueprint';
|
|
36
36
|
import { deepkitPlugin } from '@gjsify/rolldown-plugin-deepkit';
|
|
37
37
|
import { ALIASES_NODE_FOR_NATIVESCRIPT } from '@gjsify/resolve-npm';
|
|
@@ -321,7 +321,7 @@ export function gjsifyNativescript(options = {}) {
|
|
|
321
321
|
// `*.native`). A `resolveId` HOOK, NOT a `resolve.alias` — so it works
|
|
322
322
|
// under Vite 8 / Rolldown, where @nativescript/vite's function-based
|
|
323
323
|
// alias for the same feature is rejected.
|
|
324
|
-
platformResolvePlugin({ platform }),
|
|
324
|
+
platformResolvePlugin({ suffixes: nativescriptSuffixChain(platform) }),
|
|
325
325
|
// Register `xmlns`-referenced barrel modules that @nativescript/vite's
|
|
326
326
|
// ns-bundler-context leaves unregistered (its tree-shaking gap for
|
|
327
327
|
// barrels with no `.xml` sibling). Reproduces webpack's xml-namespace-loader.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/vite-plugin-gjsify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Vite plugin presets mirroring `gjsify build --app browser` / `--app nativescript` — dev (Vite/HMR) parity with the gjsify CLI targets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
],
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@gjsify/empty": "^0.
|
|
44
|
-
"@gjsify/resolve-npm": "^0.
|
|
45
|
-
"@gjsify/rolldown-plugin-deepkit": "^0.
|
|
46
|
-
"@gjsify/rolldown-plugin-gjsify": "^0.
|
|
47
|
-
"@gjsify/vite-plugin-blueprint": "^0.
|
|
43
|
+
"@gjsify/empty": "^0.45.0",
|
|
44
|
+
"@gjsify/resolve-npm": "^0.45.0",
|
|
45
|
+
"@gjsify/rolldown-plugin-deepkit": "^0.45.0",
|
|
46
|
+
"@gjsify/rolldown-plugin-gjsify": "^0.45.0",
|
|
47
|
+
"@gjsify/vite-plugin-blueprint": "^0.45.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"vite": "^8.1.3"
|