@analogjs/storybook-angular 2.0.0-beta.4 → 2.0.0-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@analogjs/storybook-angular",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Storybook Integration for Angular & Vite",
5
5
  "type": "module",
6
6
  "keywords": [
package/preset.mjs CHANGED
@@ -57,6 +57,7 @@ export const viteFinal = async (config, options) => {
57
57
  : 'css',
58
58
  }),
59
59
  angularOptionsPlugin(options, { normalizePath }),
60
+ storybookEsbuildPlugin(),
60
61
  ],
61
62
  define: {
62
63
  STORYBOOK_ANGULAR_OPTIONS: JSON.stringify({
@@ -128,5 +129,21 @@ function angularOptionsPlugin(options, { normalizePath }) {
128
129
  };
129
130
  }
130
131
 
132
+ function storybookEsbuildPlugin() {
133
+ return {
134
+ name: 'analogjs-storybook-esbuild-config',
135
+ apply: 'build',
136
+ config() {
137
+ return {
138
+ esbuild: {
139
+ // Don't mangle class names during the build
140
+ // This fixes display of compodoc argtypes
141
+ keepNames: true,
142
+ },
143
+ };
144
+ },
145
+ };
146
+ }
147
+
131
148
  export { addons, previewAnnotations } from '@storybook/angular/dist/preset.js';
132
149
  //# sourceMappingURL=preset.js.map
@@ -9,6 +9,7 @@
9
9
  "implementation": "./start-storybook/start-storybook.js",
10
10
  "schema": "./start-storybook/schema.json",
11
11
  "description": "Start storybook"
12
- }
12
+ },
13
+ "test-storybook": "@analogjs/vitest-angular:test"
13
14
  }
14
15
  }