Rslib will soon support Module Federation.
This allows a library to concurrently generate ESM, CJS, Module Federation, and DTS outputs in a single build.
Libraries built with Rslib can not only be published to npm. They can also provide remote modules for use by MF consumers.
If you need to create a deep copy of a value in JS, structuredClone is your tool. A standard utility from the ECMAScript specification that allows tou to easily clone complex data structures without relying on workarounds or third-party libraries
#100daysofcode
The isNaN global function converts the argument to a number then checks if the result is not a number whereas Number.isNaN does not convert the argument
The image-rendering CSS property defines how the browser should render an image, in order to provide a smooth or crispy edges.
You can see below an example of a 20px base64 qrcode scaled to 200px and the same image with two different values for the image-rendering
Did you know that JSON.strigify takes 3 parameters?
If the third parameter is a number, it determines how many space characters should be used for indenting. If it’s a string, that string becomes white-space.
This is useful for formatting log messages in a human-friendly way 🚀
When designing a page, there are many times when one class should have all of the styles of another class as well as its own unique styles. For these cases you can use @extend 👇
📙 HTML tip:
Use the noscript element to provide alternative content for browsers that do not support scripting, or in which javascript has been disabled
@BatsouElef GM
This week I'll finish e2e testing my app (hopefully).
Last week I was on the DEV top 7 of the week with this post 🥳 dev.to/mustapha/where…