File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ - Fix component name check for webpack ([ #14 ] ( https://github.com/bluwy/whyframe/issues/14 ) )
6
+ - Refactor files for unit tests
7
+
3
8
## 0.1.7 (2022-10-14)
4
9
5
10
- Bump dependencies
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export function apiPlugin(options = {}) {
46
46
! id . includes ( '__whyframe:' ) &&
47
47
! id . includes ( '__whyframe-' ) &&
48
48
( code . includes ( '<iframe' ) ||
49
- ! ! options . components ?. some ( ( n ) => code . includes ( `<${ n . name } ` ) ) )
49
+ ! ! options . components ?. some ( ( c ) => code . includes ( `<${ c . name } ` ) ) )
50
50
)
51
51
} ,
52
52
getDefaultShowSource ( ) {
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export class WhyframePlugin {
147
147
! id . includes ( '__whyframe:' ) &&
148
148
! id . includes ( '__whyframe-' ) &&
149
149
( code . includes ( '<iframe' ) ||
150
- ! ! this . #options. components ?. some ( ( n ) => code . includes ( `<${ n } ` ) ) )
150
+ ! ! this . #options. components ?. some ( ( c ) => code . includes ( `<${ c . name } ` ) ) )
151
151
)
152
152
}
153
153
You can’t perform that action at this time.
0 commit comments