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

fix: inline style css sourcemap #7434

Merged
merged 8 commits into from Mar 24, 2022

Conversation

sapphi-red
Copy link
Member

Description

#7432

fixes Sourcemap for "something.html" points to missing source files.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@sapphi-red sapphi-red marked this pull request as ready for review March 24, 2022 13:41
Comment on lines +41 to +43
return decodeURIComponent(
normalizePath(path.join(server.config.root, url.slice(1)))
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filename of transformIndexHtml hook was not normalized. This PR also fixes that. (it was required to fix the issue)

@patak-dev patak-dev merged commit 47668b5 into vitejs:main Mar 24, 2022
@patak-dev
Copy link
Member

Thanks for the quick fix @sapphi-red! Let's release a new patch so we can continue to test this in the wild.

@sapphi-red
Copy link
Member Author

sapphi-red commented Mar 24, 2022

@patak-dev This PR still does not fix storybook-builder-vite completely. I will describe it why in storybookjs/builder-vite#288.

@patak-dev
Copy link
Member

@sapphi-red ok, let's wait then for releasing the patch. No rush 👍🏼

@sapphi-red sapphi-red deleted the fix/inline-style-css-sourcemap branch March 24, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants