Skip to content

Commit 51972b0

Browse files
authored
Add exports exception for loadConfigFile (#4483)
* Add exception for loadConfigFile * Allow loading directly via /loadConfigFile
1 parent edd971e commit 51972b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/02-javascript-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ See above for details on `inputOptions` and `outputOptions`, or consult the [big
260260
In order to aid in generating such a config, rollup exposes the helper it uses to load config files in its command line interface via a separate entry-point. This helper receives a resolved `fileName` and optionally an object containing command line parameters:
261261

262262
```js
263-
const loadConfigFile = require('rollup/dist/loadConfigFile');
263+
const loadConfigFile = require('rollup/loadConfigFile');
264264
const path = require('path');
265265
const rollup = require('rollup');
266266

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
},
137137
"default": "./dist/es/rollup.browser.js"
138138
},
139+
"./loadConfigFile": "./dist/loadConfigFile.js",
140+
"./dist/loadConfigFile": "./dist/loadConfigFile.js",
139141
"./dist/*": "./dist/*"
140142
}
141143
}

0 commit comments

Comments
 (0)