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 admin build with webpack 4 #6934

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Dec 13, 2022

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #6917
Related issues/PRs sulu/skeleton#203
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Fix admin build with webpack 4. Also the HtmlFieldTransformer is required to work like before.

Why?

Currently the admin build is failing, because of sanitze-html 2.8 version which also changed behaviour for numbers which need to be adjusted:

Update other related issues:

@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Dec 13, 2022
@@ -10,7 +10,7 @@ export default class HtmlFieldTransformer implements FieldTransformer {
return null;
}

const sanitizedHtml = sanitizeHtml(value, {
const sanitizedHtml = sanitizeHtml(value.toString(), {
Copy link
Member Author

Choose a reason for hiding this comment

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

The new release also changed the behaviour for numbers and we need todo a toString() here now: apostrophecms/sanitize-html#593

@Prokyonn Prokyonn merged commit b7e3fc5 into sulu:2.4 Dec 13, 2022
@alexander-schranz alexander-schranz deleted the bugfix/babel-webpack-4-build branch December 13, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants