mirror of https://github.com/webpack/webpack.git
56 lines
2.4 KiB
JavaScript
56 lines
2.4 KiB
JavaScript
import * as style from "./style.module.css";
|
|
import { local1, local2, local3, local4, ident } from "./style.module.css";
|
|
import { myCssClass } from "./style.module.my-css";
|
|
import * as notACssModule from "./style.module.css.invalid";
|
|
import { UsedClassName } from "./identifiers.module.css";
|
|
|
|
// To prevent analysis export
|
|
const isNotACSSModule = typeof notACssModule["c" + "lass"] === "undefined";
|
|
const hasOwnProperty = (obj, p) => Object.hasOwnProperty.call(obj, p);
|
|
|
|
export default {
|
|
global: style.global,
|
|
class: style.class,
|
|
local: `${local1} ${local2} ${local3} ${local4}`,
|
|
local2: `${style.local5} ${style.local6}`,
|
|
nested: `${style.nested1} ${style.nested2} ${style.nested3}`,
|
|
notWmultiParams: `${style.local7}`,
|
|
isWmultiParams: `${style.local8}`,
|
|
matchesWmultiParams: `${style.local9}`,
|
|
whereWmultiParams: `${style.local10}`,
|
|
hasWmultiParams: `${style.local11}`,
|
|
currentWmultiParams: `${style.local12}`,
|
|
pastWmultiParams: `${style.local13}`,
|
|
futureWmultiParams: `${style.local14}`,
|
|
mozAnyWmultiParams: `${style.local15}`,
|
|
webkitAnyWmultiParams: `${style.local16}`,
|
|
ident,
|
|
keyframes: style.localkeyframes,
|
|
keyframesUPPERCASE: style.localkeyframesUPPERCASE,
|
|
localkeyframes2UPPPERCASE: style.localkeyframes2UPPPERCASE,
|
|
animation: style.animation,
|
|
vars: `${style["local-color"]} ${style.vars} ${style["global-color"]} ${style.globalVars}`,
|
|
media: style.wideScreenClass,
|
|
mediaWithOperator: style.narrowScreenClass,
|
|
supports: style.displayGridInSupports,
|
|
supportsWithOperator: style.floatRightInNegativeSupports,
|
|
mediaInSupports: style.displayFlexInMediaInSupports,
|
|
supportsInMedia: style.displayFlexInSupportsInMedia,
|
|
displayFlexInSupportsInMediaUpperCase: style.displayFlexInSupportsInMediaUpperCase,
|
|
VARS: `${style["LOCAL-COLOR"]} ${style.VARS} ${style["GLOBAL-COLOR"]} ${style.globalVarsUpperCase}`,
|
|
inSupportScope: style.inSupportScope,
|
|
animationName: style.animationName,
|
|
mozAnimationName: style.mozAnimationName,
|
|
myColor: style['my-color'],
|
|
paddingSm: style['padding-sm'],
|
|
paddingLg: style['padding-lg'],
|
|
inLocalGlobalScope: style['in-local-global-scope'],
|
|
classLocalScope: style['class-local-scope'],
|
|
classInContainer: style['class-in-container'],
|
|
deepClassInContainer: style['deep-class-in-container'],
|
|
cssModuleWithCustomFileExtension: myCssClass,
|
|
notAValidCssModuleExtension: isNotACSSModule,
|
|
UsedClassName,
|
|
exportLocalVarsShouldCleanup: `${hasOwnProperty(notACssModule, 'local-color')} ${hasOwnProperty(notACssModule, "LOCAL-COLOR")}`
|
|
};
|