Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
8b0a93b0
Unverified
Commit
8b0a93b0
authored
Jul 25, 2019
by
Joe Haddad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix extension for module/nomodule
parent
e68307df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
_document.tsx
packages/next/pages/_document.tsx
+4
-4
No files found.
packages/next/pages/_document.tsx
View file @
8b0a93b0
...
@@ -167,7 +167,7 @@ export class Head extends Component<
...
@@ -167,7 +167,7 @@ export class Head extends Component<
return
(
return
(
dedupe
(
dynamicImports
)
dedupe
(
dynamicImports
)
.
map
((
bundle
:
any
)
=>
{
.
map
((
bundle
:
any
)
=>
{
// `dynamicImports` will contain both `.js` and `.mod
ern
.js` when the
// `dynamicImports` will contain both `.js` and `.mod
ule
.js` when the
// feature is enabled. This clause will filter down to the modern
// feature is enabled. This clause will filter down to the modern
// variants only.
// variants only.
if
(
!
bundle
.
file
.
endsWith
(
getOptionalModernScriptVariant
(
'.js'
)))
{
if
(
!
bundle
.
file
.
endsWith
(
getOptionalModernScriptVariant
(
'.js'
)))
{
...
@@ -201,7 +201,7 @@ export class Head extends Component<
...
@@ -201,7 +201,7 @@ export class Head extends Component<
return
files
return
files
.
map
((
file
:
string
)
=>
{
.
map
((
file
:
string
)
=>
{
// `dynamicImports` will contain both `.js` and `.mod
ern
.js` when the
// `dynamicImports` will contain both `.js` and `.mod
ule
.js` when the
// feature is enabled. This clause will filter down to the modern
// feature is enabled. This clause will filter down to the modern
// variants only.
// variants only.
// This also filters out non-JS assets.
// This also filters out non-JS assets.
...
@@ -661,8 +661,8 @@ export class NextScript extends Component<OriginProps> {
...
@@ -661,8 +661,8 @@ export class NextScript extends Component<OriginProps> {
src=
{
src=
{
assetPrefix
+
assetPrefix
+
(
dynamicBuildId
(
dynamicBuildId
?
`/_next/static/client/pages/_app.${buildId}.mod
ern
.js`
?
`/_next/static/client/pages/_app.${buildId}.mod
ule
.js`
:
`/_next/static/${buildId}/pages/_app.mod
ern
.js`
)
+
:
`/_next/static/${buildId}/pages/_app.mod
ule
.js`
)
+
_devOnlyInvalidateCacheQueryString
_devOnlyInvalidateCacheQueryString
}
}
nonce=
{
this
.
props
.
nonce
}
nonce=
{
this
.
props
.
nonce
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment