Skip to content

Commit

Permalink
fix(extension): make monitor styles work in shadow dom again (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
frontendphil authored Jan 27, 2025
1 parent 144b1e6 commit 1be933b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
9 changes: 8 additions & 1 deletion deployables/extension/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import esbuild from 'esbuild'
import postCssPlugin from 'esbuild-style-plugin'
import stdLibBrowser from 'node-stdlib-browser'
import plugin from 'node-stdlib-browser/helpers/esbuild/plugin'
import replace from 'postcss-replace'
import { fileURLToPath } from 'url'

config()
Expand Down Expand Up @@ -68,8 +69,14 @@ esbuild
plugins: [
plugin(stdLibBrowser),
postCssPlugin({
postcss: { plugins: [tailwindcss] },
postcss: {
plugins: [
tailwindcss,
replace({ pattern: /:root/, data: { replaceAll: ':root, :host' } }),
],
},
}),

// process.env.NODE_ENV !== 'development' &&
// sentryEsbuildPlugin({
// authToken: process.env.SENTRY_AUTH_TOKEN,
Expand Down
1 change: 1 addition & 0 deletions deployables/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"jsdom-testing-mocks": "1.13.1",
"madge": "8.0.0",
"postcss": "8.5.1",
"postcss-replace": "^2.0.1",
"rimraf": "6.0.1",
"tailwindcss": "4.0.0",
"typescript": "5.7.3",
Expand Down
27 changes: 27 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1be933b

Please sign in to comment.