@oxc-angular-testing/transform 0.0.12 → 0.0.13
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/index.d.ts +17 -0
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -52,6 +52,23 @@ export interface TransformOptions {
|
|
|
52
52
|
* Derive from tsconfig `target`. Default `"esnext"`.
|
|
53
53
|
*/
|
|
54
54
|
target?: string
|
|
55
|
+
/**
|
|
56
|
+
* Keep component styles instead of stripping them (default `false`).
|
|
57
|
+
* `styleUrl`/`styleUrls` become default imports (`"esm"`) or `require(...)`
|
|
58
|
+
* calls (`"commonjs"`), merged after any inline `styles` — the bundler's
|
|
59
|
+
* CSS pipeline (e.g. vite + sass) compiles them. No CSS is compiled by the
|
|
60
|
+
* transform itself. See `keepStylesQuery` for the query parameter that
|
|
61
|
+
* makes the bundler return the CSS as a string.
|
|
62
|
+
*/
|
|
63
|
+
keepStyles?: boolean
|
|
64
|
+
/**
|
|
65
|
+
* Query parameter appended to each style URL rewritten under `keepStyles`:
|
|
66
|
+
* e.g. `"inline"` turns `./a.scss` into `./a.scss?inline` (`&inline` when
|
|
67
|
+
* the URL already has a query), which makes vite return the compiled CSS
|
|
68
|
+
* as a string. Default: unset — URLs are emitted verbatim. The vitest
|
|
69
|
+
* plugin passes `"inline"`.
|
|
70
|
+
*/
|
|
71
|
+
keepStylesQuery?: string
|
|
55
72
|
/**
|
|
56
73
|
* Master switch for TS→JS + decorator lowering (default `true`; set `false`
|
|
57
74
|
* only to inspect the pre-lowering TypeScript AST).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxc-angular-testing/transform",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Fast Angular test transforms (resource inlining, decorator downleveling, signal initializer APIs) on oxc, with optional istanbul coverage instrumentation in a single AST pass.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"typescript": "^5.6.0"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@oxc-angular-testing/binding-darwin-arm64": "0.0.
|
|
59
|
-
"@oxc-angular-testing/binding-darwin-x64": "0.0.
|
|
60
|
-
"@oxc-angular-testing/binding-linux-x64-gnu": "0.0.
|
|
61
|
-
"@oxc-angular-testing/binding-linux-arm64-gnu": "0.0.
|
|
62
|
-
"@oxc-angular-testing/binding-linux-x64-musl": "0.0.
|
|
63
|
-
"@oxc-angular-testing/binding-win32-x64-msvc": "0.0.
|
|
64
|
-
"@oxc-angular-testing/binding-win32-arm64-msvc": "0.0.
|
|
58
|
+
"@oxc-angular-testing/binding-darwin-arm64": "0.0.13",
|
|
59
|
+
"@oxc-angular-testing/binding-darwin-x64": "0.0.13",
|
|
60
|
+
"@oxc-angular-testing/binding-linux-x64-gnu": "0.0.13",
|
|
61
|
+
"@oxc-angular-testing/binding-linux-arm64-gnu": "0.0.13",
|
|
62
|
+
"@oxc-angular-testing/binding-linux-x64-musl": "0.0.13",
|
|
63
|
+
"@oxc-angular-testing/binding-win32-x64-msvc": "0.0.13",
|
|
64
|
+
"@oxc-angular-testing/binding-win32-arm64-msvc": "0.0.13"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "napi build --platform --release && tsc -p tsconfig.json",
|