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

Restore ability to use console.log in vite #2233

Merged
merged 2 commits into from
Jan 16, 2024
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 packages/desktop-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@svgr/cli": "^8.0.1",
"@swc/core": "^1.3.82",
"@swc/helpers": "^0.5.1",
"@swc/plugin-remove-console": "^1.5.105",
"@swc/plugin-react-remove-properties": "^1.5.108",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3",
"@types/react": "^18.2.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/desktop-client/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ export default defineConfig(async ({ mode }) => {
injectShims(),
addWatchers(),
react({
plugins: [['@swc/plugin-remove-console', {}]],
plugins: [
[
'@swc/plugin-react-remove-properties',
{ properties: ['^data-debug'] },
],
],
devTarget: 'es2022',
}),
viteTsconfigPaths({ root: '../..' }),
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2233.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [twk3]
---

Restore ability to use console.log in vite
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ __metadata:
"@svgr/cli": "npm:^8.0.1"
"@swc/core": "npm:^1.3.82"
"@swc/helpers": "npm:^0.5.1"
"@swc/plugin-remove-console": "npm:^1.5.105"
"@swc/plugin-react-remove-properties": "npm:^1.5.108"
"@testing-library/react": "npm:14.0.0"
"@testing-library/user-event": "npm:14.4.3"
"@types/react": "npm:^18.2.0"
Expand Down Expand Up @@ -3752,10 +3752,10 @@ __metadata:
languageName: node
linkType: hard

"@swc/plugin-remove-console@npm:^1.5.105":
version: 1.5.105
resolution: "@swc/plugin-remove-console@npm:1.5.105"
checksum: b82710090c3202a473771a9c6a67da3fd5136e19d8214b967de8d3010139d95727f0834920cbb3a4fb284d68f363a4650d32f692c5293854e902b5fa33c3fbab
"@swc/plugin-react-remove-properties@npm:^1.5.108":
version: 1.5.108
resolution: "@swc/plugin-react-remove-properties@npm:1.5.108"
checksum: 7d849702d036353f2d58515aa20e4557379fccda3d48b2a38835415e3a37fe1ce1c560fbc64e164a8fc09b833c42ecc4a39775cc1d6da8ba83860a464ddcb24f
languageName: node
linkType: hard

Expand Down