Skip to content

Commit cd84cc7

Browse files
committed
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.
1 parent 8c40b70 commit cd84cc7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/core/feature-detection.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
html.classList.add("js");
1111
}
1212

13+
// NOTE: Modernizr will be removed in an upcoming minor release.
14+
1315
// Do not load modernizr if disabled. It's enabled by default.
1416
// You might want to disable it for your project by setting:
1517
// window.__patternslib_disable_modernizr = true;

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Load modernizr and the `html.js` feature class.
2+
// NOTE: Modernizr will be removed in an upcoming minor release.
23
import "./core/feature-detection";
34

45
// Webpack entry point for module federation.

0 commit comments

Comments
 (0)