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
d3c1731c
Commit
d3c1731c
authored
Sep 06, 2019
by
Maël Nison
Committed by
Joe Haddad
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds the PnP plugin by default (#8653)
* Adds the PnP plugin by default * Covers loaders * Fixes linting
parent
0c6c1f9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
webpack-config.ts
packages/next/build/webpack-config.ts
+4
-0
package.json
packages/next/package.json
+1
-0
yarn.lock
yarn.lock
+12
-0
No files found.
packages/next/build/webpack-config.ts
View file @
d3c1731c
...
@@ -10,6 +10,8 @@ import resolve from 'next/dist/compiled/resolve/index.js'
...
@@ -10,6 +10,8 @@ import resolve from 'next/dist/compiled/resolve/index.js'
import
path
from
'path'
import
path
from
'path'
import
crypto
from
'crypto'
import
crypto
from
'crypto'
import
webpack
from
'webpack'
import
webpack
from
'webpack'
// @ts-ignore: Currently missing types
import
PnpWebpackPlugin
from
'pnp-webpack-plugin'
import
{
import
{
DOT_NEXT_ALIAS
,
DOT_NEXT_ALIAS
,
...
@@ -153,6 +155,7 @@ export default async function getBaseWebpackConfig(
...
@@ -153,6 +155,7 @@ export default async function getBaseWebpackConfig(
[
DOT_NEXT_ALIAS
]:
distDir
,
[
DOT_NEXT_ALIAS
]:
distDir
,
},
},
mainFields
:
isServer
?
[
'main'
,
'module'
]
:
[
'browser'
,
'module'
,
'main'
],
mainFields
:
isServer
?
[
'main'
,
'module'
]
:
[
'browser'
,
'module'
,
'main'
],
plugins
:
[
PnpWebpackPlugin
],
}
}
const
webpackMode
=
dev
?
'development'
:
'production'
const
webpackMode
=
dev
?
'development'
:
'production'
...
@@ -443,6 +446,7 @@ export default async function getBaseWebpackConfig(
...
@@ -443,6 +446,7 @@ export default async function getBaseWebpackConfig(
'node_modules'
,
'node_modules'
,
...
nodePathList
,
// Support for NODE_PATH environment variable
...
nodePathList
,
// Support for NODE_PATH environment variable
],
],
plugins
:
[
PnpWebpackPlugin
],
},
},
// @ts-ignore this is filtered
// @ts-ignore this is filtered
module
:
{
module
:
{
...
...
packages/next/package.json
View file @
d3c1731c
...
@@ -96,6 +96,7 @@
...
@@ -96,6 +96,7 @@
"mkdirp"
:
"0.5.1"
,
"mkdirp"
:
"0.5.1"
,
"node-fetch"
:
"2.6.0"
,
"node-fetch"
:
"2.6.0"
,
"path-to-regexp"
:
"2.1.0"
,
"path-to-regexp"
:
"2.1.0"
,
"pnp-webpack-plugin"
:
"1.5.0"
,
"prop-types"
:
"15.7.2"
,
"prop-types"
:
"15.7.2"
,
"prop-types-exact"
:
"1.2.0"
,
"prop-types-exact"
:
"1.2.0"
,
"raw-body"
:
"2.4.0"
,
"raw-body"
:
"2.4.0"
,
...
...
yarn.lock
View file @
d3c1731c
...
@@ -10835,6 +10835,13 @@ pn@^1.1.0:
...
@@ -10835,6 +10835,13 @@ pn@^1.1.0:
resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb"
resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb"
integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==
integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==
pnp-webpack-plugin@1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/pnp-webpack-plugin/-/pnp-webpack-plugin-1.5.0.tgz#62a1cd3068f46d564bb33c56eb250e4d586676eb"
integrity sha512-jd9olUr9D7do+RN8Wspzhpxhgp1n6Vd0NtQ4SFkmIACZoEL1nkyAdW9Ygrinjec0vgDcWjscFQQ1gDW8rsfKTg==
dependencies:
ts-pnp "^1.1.2"
posix-character-classes@^0.1.0:
posix-character-classes@^0.1.0:
version "0.1.1"
version "0.1.1"
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
...
@@ -13584,6 +13591,11 @@ tryer@^1.0.0:
...
@@ -13584,6 +13591,11 @@ tryer@^1.0.0:
resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8"
resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8"
integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==
integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==
ts-pnp@^1.1.2:
version "1.1.4"
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.1.4.tgz#ae27126960ebaefb874c6d7fa4729729ab200d90"
integrity sha512-1J/vefLC+BWSo+qe8OnJQfWTYRS6ingxjwqmHMqaMxXMj7kFtKLgAaYW3JeX3mktjgUL+etlU8/B4VUAUI9QGw==
tslib@1.10.0:
tslib@1.10.0:
version "1.10.0"
version "1.10.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
...
...
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