From 1d71e3b9e2adf49a1914d909123e5c0be40aa57e Mon Sep 17 00:00:00 2001 From: indooorsman Date: Thu, 17 Feb 2022 14:03:17 +0800 Subject: [PATCH] update changelog --- changelog.md | 4 ++++ index.js | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 7fa9b05..1e27026 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## V2.1.4: + +- [v2] add filename as class prefix, e.g.: `.some-class` in `some.module.css` will be transformed to `.some-module__some-class-[hash]` + ## V2.1.3: - support `@import url(./xxx/xxx.css)` in v2 (path can't be remote url) diff --git a/index.js b/index.js index 863b3c2..2beb27e 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,6 @@ const buildCssModulesJS2 = async (cssFullPath) => { getAbsoluteUrl(resolveDir, url) ); }); - Object.keys(exports) const jsContent = `export default ${classNames};`;