Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Tencent/omi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 22a76ebb2147d915679cf16ca80372f012f1eaae
Choose a base ref
...
head repository: Tencent/omi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b6aa72f8dd197656fa0a2dd086d4edcc260bc555
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Jan 14, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    b6aa72f View commit details
Showing with 3 additions and 3 deletions.
  1. +1 −1 packages/omi/package.json
  2. +1 −1 packages/omi/src/component.ts
  3. +1 −1 packages/omi/src/index.ts
2 changes: 1 addition & 1 deletion packages/omi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omi",
"version": "7.5.8",
"version": "7.5.9",
"scripts": {
"start": "vite",
"dev-vite": "vite",
2 changes: 1 addition & 1 deletion packages/omi/src/component.ts
Original file line number Diff line number Diff line change
@@ -178,7 +178,7 @@ export class Component extends HTMLElement {
}

// add globalCSS
styleSheets = [...styleSheets, ...options.globalCSS];
styleSheets = [...options.globalCSS, ...styleSheets];

;(this.renderRoot as ShadowRoot).adoptedStyleSheets = styleSheets
adoptedStyleSheetsMap.set(this.constructor, styleSheets)
2 changes: 1 addition & 1 deletion packages/omi/src/index.ts
Original file line number Diff line number Diff line change
@@ -18,4 +18,4 @@ export { Signal } from './signal'
export { css } from './css-tag'
export { mixin, globalCSS } from './options'
export { registerDirective } from './directive'
export const version = '7.5.8'
export const version = '7.5.9'