@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 +1 -1
- package/preset.mjs +17 -0
- package/src/lib/builders.json +2 -1
package/package.json
CHANGED
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
|