Skip to content

Commit 2ab7842

Browse files
committed
docs(readme): revoke recommendation to set fullySpecified: true
1 parent e77ac3c commit 2ab7842

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ exports = {
7171
]
7272
},
7373
resolve: {
74-
fullySpecified: true,
7574
plugins: [new ResolveTypeScriptPlugin()]
7675
}
7776
};
@@ -80,12 +79,12 @@ exports = {
8079
You will also need to have [ts-loader][4] (or another TypeScript loader)
8180
installed and configured.
8281

83-
The `resolve.fullySpecified` option configures webpack to require file
84-
extensions except when importing external modules by name. This is consistent
85-
with node's implementation of ES Modules.
82+
Previous versions of this README recommended setting `resolve.fullySpecified` to
83+
`true`. This is no longer recommended because it breaks compatibility with
84+
webpack-dev-server and possibly other webpack tooling.
8685

87-
If you set `resolve.fullySpecified` you should also delete the
88-
`resolve.extensions` option, if any.
86+
If you use this plugin, you should probably remove `.ts` and `.tsx` from
87+
`resolve.extensions`.
8988

9089
## Options
9190

0 commit comments

Comments
 (0)