@htmlplus/element 0.8.0 → 0.8.2
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.
|
@@ -280,7 +280,7 @@ export const customElement = (options) => {
|
|
|
280
280
|
...context.classProperties.map((property) => {
|
|
281
281
|
return toPropertySignature(property);
|
|
282
282
|
}),
|
|
283
|
-
...context.
|
|
283
|
+
...context.classEvents.map((event) => {
|
|
284
284
|
return toPropertySignature(event, {
|
|
285
285
|
optional: true,
|
|
286
286
|
keyTransformer: (key) => camelCase('on-' + key),
|
|
@@ -333,7 +333,8 @@ export const customElement = (options) => {
|
|
|
333
333
|
}
|
|
334
334
|
export type ${context.className}Element = globalThis.${componentInterfaceName}
|
|
335
335
|
`, {
|
|
336
|
-
plugins: ['typescript']
|
|
336
|
+
plugins: ['typescript'],
|
|
337
|
+
preserveComments: true
|
|
337
338
|
});
|
|
338
339
|
path.node.body.push(...ast);
|
|
339
340
|
}
|