Skip to content

Commit 128d1c6

Browse files
committed
fix: comment-parser for browser build
1 parent 4469f46 commit 128d1c6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packages/analyzer/browser/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/analyzer/demo/browser/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<script type="module">
66
import {ts, create} from '../../browser/index.js';
77

8-
const code = `export function foo() {}`;
8+
const code = `export class MyEl extends HTMLElement {
9+
/**
10+
* @attr
11+
*/
12+
foo;
13+
}`;
914

1015
const modules = [ts.createSourceFile(
1116
'',

packages/analyzer/rollup.browser.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default [
3030
if (id === commentParser) {
3131
return `
3232
import { parse } from 'comment-parser/es6/index.js'
33-
export default parse;
33+
export default { parse: parse };
3434
`;
3535
}
3636
}

0 commit comments

Comments
 (0)