Skip to content

chore(web-components): Remove define imports from story modules#31622

Merged
radium-v merged 1 commit into
microsoft:masterfrom
radium-v:users/radium-v/remove-define-imports
Jun 24, 2024
Merged

chore(web-components): Remove define imports from story modules#31622
radium-v merged 1 commit into
microsoft:masterfrom
radium-v:users/radium-v/remove-define-imports

Conversation

@radium-v

@radium-v radium-v commented Jun 7, 2024

Copy link
Copy Markdown
Contributor

Previous Behavior

Each storybook module required an import of the component's define.js module to load the component onto the page.

New Behavior

These imports are no longer needed since the preview.js imports index-rollup.js, which includes all of the define modules for every component.

@radium-v
radium-v requested a review from a team as a code owner June 7, 2024 16:59
@fabricteam

fabricteam commented Jun 7, 2024

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

✅ No changes found

Comment thread packages/web-components/src/accordion/accordion.stories.ts
@radium-v
radium-v force-pushed the users/radium-v/remove-define-imports branch from b7dba50 to f712593 Compare June 24, 2024 23:32
@radium-v
radium-v enabled auto-merge (squash) June 24, 2024 23:36
@radium-v
radium-v merged commit 54f5ccc into microsoft:master Jun 24, 2024
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jun 26, 2024
* master: (90 commits)
  fix(react-drawer): do not create global header/footer roles (microsoft#31799)
  release: applying package updates - react v8
  release: applying package updates - web-components
  Add 'allowParentArrowNavigation' prop to `ComboBox`. (microsoft#31805)
  Add drawer web component (microsoft#31521)
  fix: MenuButton is styled correctly when aria-expanded is a string (microsoft#31809)
  chore: Updating version of `@fluentui/react-icons` to `^2.0.245` (microsoft#31802)
  chore:(docs) Migrate e2e Cypress testing doc (microsoft#31796)
  chore:(docs) Update API Extractor file (microsoft#31651)
  chore: migrate to nx 18 (microsoft#31746)
  release: applying package updates - react v8
  release: applying package updates - web-components
  feat: update text to use element internals for custom states (microsoft#31770)
  chore(web-components): Remove define imports from story modules (microsoft#31622)
  fix(`merge-styles`): Correctly processing selectors when value is a class name and they are not wrapped in `selectors` wrapper (microsoft#31798)
  style(react-combobox): turn off react-compiler lints for non compliant code (microsoft#31795)
  docs: Add AriaLiveAnnouncer to all examples (microsoft#31794)
  fix(public-docsite-v9): disable storybook keyboard shortcuts (microsoft#31762)
  feat: V0 Attachment compact component (microsoft#31634)
  release: applying package updates - react v8
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants