Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ yarn-error.log
packages/**/yarn.lock

.DS_Store
packages/bundler-plugin-core/src/version.ts
packages/bundler-plugins/src/core/version.ts
packages/integration-tests-next/fixtures/**/pnpm-lock.yaml
6 changes: 5 additions & 1 deletion .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"printWidth": 100,
"experimentalSortPackageJson": false,
"trailingComma": "es5",
"ignorePatterns": ["packages/bundler-plugin-core/test/fixtures", ".nxcache"]
"ignorePatterns": [
"packages/bundler-plugin-core/test/fixtures",
"packages/bundler-plugins/test/core/fixtures",
".nxcache"
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"workspaces": [
"packages/babel-plugin-component-annotate",
"packages/bundler-plugin-core",
"packages/bundler-plugins",
"packages/dev-utils",
"packages/esbuild-plugin",
"packages/playground",
Expand Down
10 changes: 4 additions & 6 deletions packages/babel-plugin-component-annotate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@
"clean": "run-s clean:build",
"clean:all": "run-p clean clean:deps",
"clean:build": "premove ./dist *.tgz",
"clean:deps": "premove node_modules",
"test": "vitest run"
"clean:deps": "premove node_modules"
},
"dependencies": {
"@sentry/bundler-plugins": "5.3.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
"@types/babel__core": "^7.20.5",
"@babel/preset-react": "^7.23.3",
"@types/node": "^18.6.3",
"vitest": "^4.0.0",
"premove": "^4.0.0",
"rolldown": "^1.0.0"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/babel-plugin-component-annotate/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import packageJson from "./package.json" with { type: "json" };

const deps = Object.keys(packageJson.dependencies ?? {});

export default {
platform: "node",
input: ["src/index.ts"],
external: Object.keys(packageJson.dependencies ?? []),
external: (id) => deps.some((dep) => id === dep || id.startsWith(`${dep}/`)),
output: [
{
file: packageJson.module,
Expand Down
Loading
Loading