-
Notifications
You must be signed in to change notification settings - Fork 52
build: Build with Rolldown #872
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,5 @@ yarn-error.log | |
| .nxcache | ||
| packages/**/yarn.lock | ||
|
|
||
| .DS_Store | ||
| .DS_Store | ||
| packages/bundler-plugin-core/src/version.ts | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| packages/e2e-tests/scenarios/*/ref/**/* | ||
| packages/bundler-plugin-core/test/fixtures | ||
| .nxcache | ||
| # current prettier version doesn't support import assertions | ||
| rollup.config.mjs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ | |
| "ts-node": "^10.9.2" | ||
| }, | ||
| "volta": { | ||
| "node": "18.20.8", | ||
| "node": "22.22.0", | ||
| "yarn": "1.22.22" | ||
| } | ||
| } | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import packageJson from "./package.json" with { type: "json" }; | ||
| import modulePackage from "module"; | ||
|
|
||
| export default { | ||
| platform: "node", | ||
| input: ["src/index.ts"], | ||
| external: Object.keys(packageJson.dependencies ?? []), | ||
| output: [ | ||
| { | ||
| file: packageJson.module, | ||
| format: "esm", | ||
| exports: "named", | ||
| sourcemap: true, | ||
| }, | ||
| { | ||
| file: packageJson.main, | ||
| format: "cjs", | ||
| exports: "named", | ||
| sourcemap: true, | ||
| }, | ||
| ], | ||
| }; |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import modulePackage from "module"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Rollup config for Suggested FixUpdate the Prompt for AI Agent
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| import packageJson from "./package.json" with { type: "json" }; | ||
|
|
||
| export default { | ||
| platform: "node", | ||
| input: ["src/index.ts"], | ||
| external: Object.keys(packageJson.dependencies), | ||
| output: [ | ||
| { | ||
| file: packageJson.module, | ||
| format: "esm", | ||
| exports: "named", | ||
| sourcemap: true, | ||
| }, | ||
| { | ||
| file: packageJson.main, | ||
| format: "cjs", | ||
| exports: "named", | ||
| sourcemap: true, | ||
| }, | ||
| ], | ||
| }; | ||
This file was deleted.

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.
q: Are there any downsides to upgrade to v22 here? In the JS SDK we use v20, and I'm not sure if we can upgrade that easily (maybe we can)
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.
I can't see any downside! We just have to be aware that every CI job that doesn't override the Node version will use this.