From cd84cc7c0f05e5c41ae4a642d402eef958cf11a2 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Fri, 31 Jan 2025 01:26:10 +0100 Subject: [PATCH] maint: Add deprecation notice for Modernizr. Modernizr will be removed in an upcoming minor version. It is not really necessary anymore. Most browser support almost latest web technology and IE is dead. A no-js class on the body will still be replaced with a js class. --- src/core/feature-detection.js | 2 ++ src/index.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/core/feature-detection.js b/src/core/feature-detection.js index 76bb4b079..01ff0394a 100644 --- a/src/core/feature-detection.js +++ b/src/core/feature-detection.js @@ -10,6 +10,8 @@ html.classList.add("js"); } + // NOTE: Modernizr will be removed in an upcoming minor release. + // Do not load modernizr if disabled. It's enabled by default. // You might want to disable it for your project by setting: // window.__patternslib_disable_modernizr = true; diff --git a/src/index.js b/src/index.js index e5a869930..b81cd4e81 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ // Load modernizr and the `html.js` feature class. +// NOTE: Modernizr will be removed in an upcoming minor release. import "./core/feature-detection"; // Webpack entry point for module federation.