Skip to content

Commit

Permalink
Add exports exception for loadConfigFile (#4483)
Browse files Browse the repository at this point in the history
* Add exception for loadConfigFile

* Allow loading directly via /loadConfigFile
  • Loading branch information
lukastaegert committed Apr 30, 2022
1 parent edd971e commit 51972b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/02-javascript-api.md
Expand Up @@ -260,7 +260,7 @@ See above for details on `inputOptions` and `outputOptions`, or consult the [big
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:

```js
const loadConfigFile = require('rollup/dist/loadConfigFile');
const loadConfigFile = require('rollup/loadConfigFile');
const path = require('path');
const rollup = require('rollup');

Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -136,6 +136,8 @@
},
"default": "./dist/es/rollup.browser.js"
},
"./loadConfigFile": "./dist/loadConfigFile.js",
"./dist/loadConfigFile": "./dist/loadConfigFile.js",
"./dist/*": "./dist/*"
}
}

0 comments on commit 51972b0

Please sign in to comment.