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

fix: set module: ESNext in typescript plugin #574

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

jeswr
Copy link
Contributor

@jeswr jeswr commented Dec 18, 2023

No description provided.

@jeswr jeswr requested a review from a team as a code owner December 18, 2023 12:14
@@ -21,7 +21,9 @@
import typescript from "@rollup/plugin-typescript";

export const createSharedConfig = (pkg) => ({
plugins: [typescript()],
plugins: [typescript({
module: 'ESNext'
Copy link
Contributor

@NSeydoux NSeydoux Dec 18, 2023

Choose a reason for hiding this comment

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

In the example given in the docs, it looks like this should be wrapped in a compilerOptions map: https://github.com/rollup/plugins/tree/master/packages/typescript/#options. Do you have an example or a doc entry aligning with the way it is done here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The type definition allows for both; but lets go with the way the docs specify . Updated in d1541f1 and tested in inrupt/solid-client-js#2290

@jeswr jeswr enabled auto-merge (squash) December 18, 2023 12:49
@jeswr jeswr merged commit c796bcb into main Dec 18, 2023
4 checks passed
@jeswr jeswr deleted the fix/module-parameter branch December 18, 2023 12:51
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.

2 participants