@@ -53,7 +53,7 @@ module.exports = async function (config) {
5353 writeFileSync ( template , content ) ;
5454 }
5555
56- const htmlWebpackConfig = ( values ) => {
56+ const htmlWebpackConfig = values => {
5757 const { url, title, ...routeData } = values ;
5858 return Object . assign ( values , {
5959 filename : resolve ( dest , url . substring ( 1 ) , 'index.html' ) ,
@@ -140,9 +140,9 @@ module.exports = async function (config) {
140140
141141 return pages
142142 . map ( htmlWebpackConfig )
143- . map ( ( conf ) => new HtmlWebpackPlugin ( conf ) )
143+ . map ( conf => new HtmlWebpackPlugin ( conf ) )
144144 . concat ( [ new HtmlWebpackExcludeAssetsPlugin ( ) ] )
145- . concat ( [ ...pages . map ( ( page ) => new PrerenderDataExtractPlugin ( page ) ) ] ) ;
145+ . concat ( [ ...pages . map ( page => new PrerenderDataExtractPlugin ( page ) ) ] ) ;
146146} ;
147147
148148// Adds a preact_prerender_data in every folder so that the data could be fetched separately.
@@ -154,7 +154,7 @@ class PrerenderDataExtractPlugin {
154154 this . data_ = JSON . stringify ( cliData . preRenderData || { } ) ;
155155 }
156156 apply ( compiler ) {
157- compiler . hooks . emit . tap ( 'PrerenderDataExtractPlugin' , ( compilation ) => {
157+ compiler . hooks . emit . tap ( 'PrerenderDataExtractPlugin' , compilation => {
158158 let path = this . location_ + PRERENDER_DATA_FILE_NAME ;
159159 if ( path . startsWith ( '/' ) ) {
160160 path = path . substr ( 1 ) ;
0 commit comments