-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
allow: ['warn', 'error', 'info'], | ||
}, | ||
], | ||
'no-console': 0, |
There was a problem hiding this comment.
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
)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
"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" | ||
}, |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
e5bdca9
to
c1b40d9
Compare
There was a problem hiding this 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
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 supportswebpack
andesbuild
.This change should be iso, and the tests are used to confirm this.