@gjsify/vite-plugin-gjsify 0.42.0 → 0.44.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +8 -7
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.42.0",
3
+ "version": "0.44.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",
@@ -22,7 +22,8 @@
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "git+https://github.com/gjsify/gjsify.git"
25
+ "url": "git+https://github.com/gjsify/gjsify.git",
26
+ "directory": "packages/infra/vite-plugin-gjsify"
26
27
  },
27
28
  "bugs": {
28
29
  "url": "https://github.com/gjsify/gjsify/issues"
@@ -39,11 +40,11 @@
39
40
  ],
40
41
  "license": "MIT",
41
42
  "dependencies": {
42
- "@gjsify/empty": "^0.42.0",
43
- "@gjsify/resolve-npm": "^0.42.0",
44
- "@gjsify/rolldown-plugin-deepkit": "^0.42.0",
45
- "@gjsify/rolldown-plugin-gjsify": "^0.42.0",
46
- "@gjsify/vite-plugin-blueprint": "^0.42.0"
43
+ "@gjsify/empty": "^0.44.0",
44
+ "@gjsify/resolve-npm": "^0.44.0",
45
+ "@gjsify/rolldown-plugin-deepkit": "^0.44.0",
46
+ "@gjsify/rolldown-plugin-gjsify": "^0.44.0",
47
+ "@gjsify/vite-plugin-blueprint": "^0.44.0"
47
48
  },
48
49
  "peerDependencies": {
49
50
  "vite": "^8.1.3"