From f75daab09102a4dd5107deadb55d4a169f86254a Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Tue, 12 Sep 2023 02:27:19 +0200 Subject: Core: Use named exports in `src/` The `default` export is treated differently across tooling when transpiled to CommonJS - tools differ on whether `module.exports` represents the full module object or just its default export. Switch `src/` modules to named exports for tooling consistency. Fixes gh-5262 Closes gh-5292 --- src/css/var/rnumnonpx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/css/var/rnumnonpx.js') diff --git a/src/css/var/rnumnonpx.js b/src/css/var/rnumnonpx.js index 18a9dad6c..0386b0054 100644 --- a/src/css/var/rnumnonpx.js +++ b/src/css/var/rnumnonpx.js @@ -1,3 +1,3 @@ -import pnum from "../../var/pnum.js"; +import { pnum } from "../../var/pnum.js"; -export default new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); +export var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); -- cgit v1.2.3