Skip to content

fix: export rollup.defineConfig at runtime#4134

Merged
lukastaegert merged 4 commits into
rollup:masterfrom
tasshi-me:fix/export-defineConfig
Jun 8, 2021
Merged

fix: export rollup.defineConfig at runtime#4134
lukastaegert merged 4 commits into
rollup:masterfrom
tasshi-me:fix/export-defineConfig

Conversation

@tasshi-me

@tasshi-me tasshi-me commented Jun 8, 2021

Copy link
Copy Markdown
Contributor

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

This PR fixes #4133.
I expose defineConfig from entrypoint(node-entry.ts, browser-entry.ts).
As a result, type definition and runtime correspond.

@github-actions

github-actions Bot commented Jun 8, 2021

Copy link
Copy Markdown

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install mshrtsr/rollup#fix/export-defineConfig

or load it into the REPL:
https://rollupjs.org/repl/?pr=4134

@tasshi-me tasshi-me changed the title fix: export rollup.defineConfig at Node.js runtime fix: export rollup.defineConfig at runtime Jun 8, 2021
@tasshi-me tasshi-me marked this pull request as ready for review June 8, 2021 01:49

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, and ouch, this was really a mess. Reminds me why we usually test like mad...

@lukastaegert lukastaegert merged commit f46b80a into rollup:master Jun 8, 2021
@tasshi-me tasshi-me deleted the fix/export-defineConfig branch June 8, 2021 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rollup.defineConfig is undefined at runtime.

2 participants