File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export class NextScript extends Component {
108
108
109
109
return (
110
110
< script
111
+ key = { filename }
111
112
type = 'text/javascript'
112
113
src = { `${ assetPrefix } /_next/${ hash } /${ filename } ` }
113
114
{ ...additionalProps }
@@ -118,18 +119,16 @@ export class NextScript extends Component {
118
119
getScripts ( ) {
119
120
const { dev } = this . context . _documentProps
120
121
if ( dev ) {
121
- return (
122
- < div >
123
- { this . getChunkScript ( 'manifest.js' ) }
124
- { this . getChunkScript ( 'commons.js' ) }
125
- { this . getChunkScript ( 'main.js' ) }
126
- </ div >
127
- )
122
+ return [
123
+ this . getChunkScript ( 'manifest.js' ) ,
124
+ this . getChunkScript ( 'commons.js' ) ,
125
+ this . getChunkScript ( 'main.js' )
126
+ ]
128
127
}
129
128
130
129
// In the production mode, we have a single asset with all the JS content.
131
130
// So, we can load the script with async
132
- return this . getChunkScript ( 'app.js' , { async : true } )
131
+ return [ this . getChunkScript ( 'app.js' , { async : true } ) ]
133
132
}
134
133
135
134
render ( ) {
You can’t perform that action at this time.
0 commit comments