@teambit/webpack.modules.style-regexps
Advanced tools
Comparing version 1.0.8 to 1.0.9
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _styleRegexps = require("./style-regexps"); | ||
Object.keys(_styleRegexps).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _styleRegexps[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _styleRegexps[key]; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./style-regexps"), exports); | ||
}); | ||
}); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.sassRegex = exports.sassNoModuleRegex = exports.sassModuleRegex = exports.lessRegex = exports.lessNoModuleRegex = exports.lessModuleRegex = exports.cssRegex = exports.cssNoModulesRegex = exports.cssModuleRegex = void 0; | ||
// style files regexps | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.lessModuleRegex = exports.lessNoModuleRegex = exports.lessRegex = exports.sassModuleRegex = exports.sassNoModuleRegex = exports.sassRegex = exports.cssModuleRegex = exports.cssNoModulesRegex = exports.cssRegex = void 0; | ||
// css | ||
exports.cssRegex = /\.css$/; | ||
const cssRegex = exports.cssRegex = /\.css$/; | ||
// css regex - will catch .css but not .module.css | ||
exports.cssNoModulesRegex = /(?<!\.module)\.css$/; | ||
exports.cssModuleRegex = /\.module\.css$/; | ||
const cssNoModulesRegex = exports.cssNoModulesRegex = /(?<!\.module)\.css$/; | ||
const cssModuleRegex = exports.cssModuleRegex = /\.module\.css$/; | ||
// sass | scss | ||
exports.sassRegex = /\.(scss|sass)$/; | ||
const sassRegex = exports.sassRegex = /\.(scss|sass)$/; | ||
// scss|sass regex - will catch .scss|sass but not .module.scss|sass | ||
exports.sassNoModuleRegex = /(?<!\.module)\.(scss|sass)$/; | ||
exports.sassModuleRegex = /\.module\.(scss|sass)$/; | ||
const sassNoModuleRegex = exports.sassNoModuleRegex = /(?<!\.module)\.(scss|sass)$/; | ||
const sassModuleRegex = exports.sassModuleRegex = /\.module\.(scss|sass)$/; | ||
// less | ||
exports.lessRegex = /\.less$/; | ||
const lessRegex = exports.lessRegex = /\.less$/; | ||
// less regex - will catch .less but not .module.less | ||
exports.lessNoModuleRegex = /(?<!\.module)\.less$/; | ||
exports.lessModuleRegex = /\.module\.less$/; | ||
const lessNoModuleRegex = exports.lessNoModuleRegex = /(?<!\.module)\.less$/; | ||
const lessModuleRegex = exports.lessModuleRegex = /\.module\.less$/; | ||
//# sourceMappingURL=style-regexps.js.map |
{ | ||
"name": "@teambit/webpack.modules.style-regexps", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"homepage": "https://bit.cloud/teambit/webpack/modules/style-regexps", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "modules/style-regexps", | ||
"version": "1.0.8" | ||
"version": "1.0.9" | ||
}, | ||
@@ -15,4 +15,4 @@ "dependencies": {}, | ||
"@types/mocha": "9.1.0", | ||
"@types/jest": "26.0.20", | ||
"@types/node": "22.10.5" | ||
"chai": "4.3.0", | ||
"@teambit/node.envs.node-babel-mocha": "0.1.4" | ||
}, | ||
@@ -19,0 +19,0 @@ "peerDependencies": {}, |
@@ -8,8 +8,8 @@ declare module '*.png' { | ||
export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>; | ||
export const ReactComponent: FunctionComponent< | ||
SVGProps<SVGSVGElement> & { title?: string } | ||
>; | ||
const src: string; | ||
export default src; | ||
} | ||
// @TODO Gilad | ||
declare module '*.jpg' { | ||
@@ -31,1 +31,13 @@ const value: any; | ||
} | ||
declare module '*.otf' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.woff' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.woff2' { | ||
const value: any; | ||
export = value; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9137
139
13