Skip to content

Pass adapters directly to config#579

Merged
Rich-Harris merged 3 commits intomasterfrom
commonjs-adapters
Mar 19, 2021
Merged

Pass adapters directly to config#579
Rich-Harris merged 3 commits intomasterfrom
commonjs-adapters

Conversation

@Rich-Harris
Copy link
Member

Closes #439. Slightly unfortunate that this requires turning the adapters back into CommonJS packages, but I think this is a fundamentally better design.

Copy link
Member

@benmccann benmccann left a comment

Choose a reason for hiding this comment

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

I like this API more. Hopefully this still works with "type": "module" in the user's package.json. I think it should

@Rich-Harris
Copy link
Member Author

It will work, yeah, you just can't go the other way (a CommonJS file can't import ESM)

@Rich-Harris Rich-Harris merged commit 8805c6d into master Mar 19, 2021
@Rich-Harris Rich-Harris deleted the commonjs-adapters branch March 19, 2021 21:54
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.

Pass adapters to config directly?

2 participants