@jscutlery/swc-angular 0.15.0 → 0.16.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/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## 0.16.1 (2024-10-31)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - 📦 update dependency tslib to v2.8.0 ([#638](https://github.com/jscutlery/devkit/pull/638))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Edouard Bozon @edbzn
12
+ - Younes Jaaidi @yjaaidi
13
+
14
+ ## 0.16.0 (2024-10-14)
15
+
16
+
17
+ ### 🚀 Features
18
+
19
+ - **swc-plugin-angular:** ✨ optional transform styleUrl and styleUrls ([#421](https://github.com/jscutlery/devkit/pull/421))
20
+
21
+
22
+ ### ❤️ Thank You
23
+
24
+ - 56789a1987 @56789a1987
25
+
1
26
  ## 0.15.0 (2024-10-14)
2
27
 
3
28
 
package/index.cjs.js CHANGED
@@ -43,6 +43,8 @@ function swcAngularPreset(options = {}) {
43
43
  [
44
44
  '@jscutlery/swc-angular-plugin',
45
45
  {
46
+ importStyles: options.importStyles,
47
+ styleInlineSuffix: options.styleInlineSuffix,
46
48
  templateRawSuffix: options.templateRawSuffix
47
49
  }
48
50
  ]
@@ -65,6 +67,8 @@ function swcAngularJestTransformer() {
65
67
  }
66
68
  function swcAngularVitePreset() {
67
69
  return swcAngularPreset({
70
+ importStyles: true,
71
+ styleInlineSuffix: true,
68
72
  templateRawSuffix: true
69
73
  });
70
74
  }
package/index.esm.js CHANGED
@@ -39,6 +39,8 @@ function swcAngularPreset(options = {}) {
39
39
  [
40
40
  '@jscutlery/swc-angular-plugin',
41
41
  {
42
+ importStyles: options.importStyles,
43
+ styleInlineSuffix: options.styleInlineSuffix,
42
44
  templateRawSuffix: options.templateRawSuffix
43
45
  }
44
46
  ]
@@ -61,6 +63,8 @@ function swcAngularJestTransformer() {
61
63
  }
62
64
  function swcAngularVitePreset() {
63
65
  return swcAngularPreset({
66
+ importStyles: true,
67
+ styleInlineSuffix: true,
64
68
  templateRawSuffix: true
65
69
  });
66
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscutlery/swc-angular",
3
- "version": "0.15.0",
3
+ "version": "0.16.1",
4
4
  "repository": {
5
5
  "url": "https://github.com/jscutlery/devkit"
6
6
  },
package/src/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import type { Options } from '@swc/core';
2
2
  export interface AngularPresetOptions {
3
+ importStyles?: boolean;
4
+ styleInlineSuffix?: boolean;
3
5
  templateRawSuffix?: boolean;
4
6
  }
5
7
  export declare function swcAngularPreset(options?: AngularPresetOptions): {
@@ -47,6 +49,7 @@ export declare function swcAngularUnpluginOptions(): Options & {
47
49
  tsconfigFile?: boolean;
48
50
  };
49
51
  interface SwcPluginAngularOptions {
52
+ styleInlineSuffix?: boolean;
50
53
  templateRawSuffix?: boolean;
51
54
  }
52
55
  /**