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

[v2.0.0] Use unplugin #64

Merged
merged 13 commits into from
May 28, 2024
Merged

Conversation

yoannmoinet
Copy link
Member

@yoannmoinet yoannmoinet commented Apr 26, 2024

What and why?

We want to use unplugin in order to easily support more bundlers (in the future).

How?

We've migrated the existing features in a telemetry plugin that supports webpack and esbuild.

This change should be iso, and the tests are used to confirm this.

allow: ['warn', 'error', 'info'],
},
],
'no-console': 0,
Copy link
Collaborator

@Ayc0 Ayc0 Apr 26, 2024

Choose a reason for hiding this comment

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

prefer a string (I can never remember is 0 = off or error)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also if it's off, maybe we can just remove the line

Copy link
Member Author

Choose a reason for hiding this comment

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

Did it in #65

@@ -0,0 +1,15 @@
{
"name": "@dd/factory",
Copy link
Collaborator

@Ayc0 Ayc0 Apr 26, 2024

Choose a reason for hiding this comment

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

Do we have the rights on @dd?
And shouldn't it be @datadog/ for consistency?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not published, only internal dependencies.

Comment on lines +7 to +15
"exports": {
".": "./src/index.ts",
"./esbuild-plugin/*": "./src/esbuild-plugin/*.ts",
"./webpack-plugin/*": "./src/webpack-plugin/*.ts",
"./common/*": "./src/common/*.ts",
"./common/metrics/*": "./src/common/metrics/*.ts",
"./common/output/*": "./src/common/output/*.ts",
"./*": "./src/*.ts"
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll need a publishConfig otherwise those won't be valid for the built code

Also isn't "./**": "./src/**.ts" already working for all those options? (except .)

And you may want to add ./package.json (common to include)

Copy link
Member Author

Choose a reason for hiding this comment

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

Most of the publication work is done in #65

@yoannmoinet yoannmoinet force-pushed the yoann/re-design-with-unpluggin branch from e5bdca9 to c1b40d9 Compare April 26, 2024 13:05
@yoannmoinet yoannmoinet marked this pull request as ready for review May 14, 2024 09:20
@yoannmoinet yoannmoinet mentioned this pull request May 27, 2024
Copy link
Collaborator

@Ayc0 Ayc0 left a comment

Choose a reason for hiding this comment

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

As most of my comments are solved in #65, let's merge this for now

Base automatically changed from yoann/re-design to yoann/v2.0.0 May 28, 2024 14:19
@yoannmoinet yoannmoinet merged commit 793e861 into yoann/v2.0.0 May 28, 2024
5 checks passed
@yoannmoinet yoannmoinet deleted the yoann/re-design-with-unpluggin branch May 28, 2024 14:19
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