File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 14
14
"clean" : " rm -rf dist" ,
15
15
"lint" : " eslint . --ext .js,.ts && tsc --noEmit" ,
16
16
"prebuild" : " npm run clean && npm run lint && mkdir dist" ,
17
- "build" : " tsc && cp src/index.css dist/index.css " ,
17
+ "build" : " tsc" ,
18
18
"pretest" : " npm run build" ,
19
19
"test" : " karma start ./test/karma.config.cjs" ,
20
20
"prepublishOnly" : " npm run build" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -161,6 +161,17 @@ export default class IncludeFragmentElement extends HTMLElement {
161
161
}
162
162
}
163
163
164
+ constructor ( ) {
165
+ super ( )
166
+ this . attachShadow ( { mode : 'open' } ) . innerHTML = `
167
+ <style>
168
+ :host {
169
+ display: block;
170
+ }
171
+ </style>
172
+ <slot></slot>`
173
+ }
174
+
164
175
connectedCallback ( ) : void {
165
176
if ( this . src && this . loading === 'eager' ) {
166
177
handleData ( this )
You can’t perform that action at this time.
0 commit comments