Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exports exception for loadConfigFile #4483

Merged
merged 2 commits into from Apr 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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/*"
}
}