@@ -49,7 +49,7 @@ async function buildCustomElements(outputDirPath) {
4949
5050 // --------------
5151 // Recompile without customElement: true to extract css
52- let results = await vite . build ( {
52+ const results = await vite . build ( {
5353 build : {
5454 emptyOutDir : false ,
5555 write : false ,
@@ -62,14 +62,14 @@ async function buildCustomElements(outputDirPath) {
6262 plugins : [ vue ( ) , svgLoader ( ) ] ,
6363 } ) ;
6464
65- let customElementsCssOutputFilePath = path . join ( distDirPath , 'custom-elements.css' ) ;
65+ const customElementsCssOutputFilePath = path . join ( distDirPath , 'custom-elements.css' ) ;
6666
67- let files = results [ 0 ] . output ;
67+ const files = results [ 0 ] . output ;
6868 for ( const file of files ) {
6969 if ( file . name !== 'style.css' ) {
7070 continue ;
7171 }
72- let cssFileContent = file . source ;
72+ const cssFileContent = file . source ;
7373 await fs . writeFile ( customElementsCssOutputFilePath , cssFileContent , 'utf8' ) ;
7474 }
7575}
@@ -127,6 +127,7 @@ async function buildBrowserExtension(browserType, version, fileExtension) {
127127 // content script
128128 buildContentScript ( path . join ( srcDirPath , 'content' , 'content.stackoverflow.js' ) , outputDirPath ) ;
129129 buildContentScript ( path . join ( srcDirPath , 'content' , 'content.npmjs.js' ) , outputDirPath ) ;
130+ buildContentScript ( path . join ( srcDirPath , 'content' , 'content.pypi.js' ) , outputDirPath ) ;
130131
131132 // --------------
132133 // background.js
@@ -148,7 +149,7 @@ async function buildBrowserExtension(browserType, version, fileExtension) {
148149}
149150
150151gulp . task ( 'compile' , async ( ) => {
151- let version = process . env [ 'BUILD_VERSION' ] || DEV_VERSION ;
152+ const version = process . env [ 'BUILD_VERSION' ] || DEV_VERSION ;
152153 console . log ( `compiling version ${ version } ` ) ;
153154
154155 await buildCustomElements ( distDirPath ) ;
0 commit comments