@rollup/plugin-node-resolve 15.2.0 → 15.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -175,6 +175,31 @@ rootDir: path.join(process.cwd(), '..')
175
175
 
176
176
  If you use the `sideEffects` property in the package.json, by default this is respected for files in the root package. Set to `true` to ignore the `sideEffects` configuration for the root package.
177
177
 
178
+ ### `allowExportsFolderMapping`
179
+
180
+ Older Node versions supported exports mappings of folders like
181
+
182
+ ```json
183
+ {
184
+ "exports": {
185
+ "./foo/": "./dist/foo/"
186
+ }
187
+ }
188
+ ```
189
+
190
+ This was deprecated with Node 14 and removed in Node 17, instead it is recommended to use exports patterns like
191
+
192
+ ```json
193
+ {
194
+ "exports": {
195
+ "./foo/*": "./dist/foo/*"
196
+ }
197
+ }
198
+ ```
199
+
200
+ But for backwards compatibility this behavior is still supported by enabling the `allowExportsFolderMapping` (defaults to `true`).
201
+ The default value might change in a futur major release.
202
+
178
203
  ## Preserving symlinks
179
204
 
180
205
  This plugin honours the rollup [`preserveSymlinks`](https://rollupjs.org/guide/en/#preservesymlinks) option.