diff --git a/.nvmrc b/.nvmrc index f7b1c8f..3cacc0b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -8.9 \ No newline at end of file +12 \ No newline at end of file diff --git a/package.json b/package.json index e1467a6..4a5ebfc 100644 --- a/package.json +++ b/package.json @@ -18,30 +18,27 @@ "devDependencies": { "blue-tape": "^1.0.0", "compose-function": "^3.0.3", - "cross-env": "^6.0.3", + "cross-env": "^7.0.3", "enforce-node-version": "^0.1.0", "es6-promisify": "^6.0.2", - "escape-string-regexp": "^2.0.0", + "escape-string-regexp": "^4.0.0", "get-value": "^3.0.1", "has-prop": "^0.1.2", "joi": "^14.3.1", "jshint": "^2.10.3", - "micromatch": "^4.0.2", - "ms": "^2.1.2", - "outdent": "^0.7.0", + "micromatch": "^4.0.4", + "ms": "^2.1.3", + "outdent": "^0.8.0", "promise-compose": "^1.1.2", "recursive-readdir": "^2.2.2", - "rework": "1.0.1", - "rework-visit": "1.0.0", - "sinon": "^8.0.2", + "sinon": "^10.0.0", "tap-diff": "^0.1.1", "vlq": "^1.0.1" }, "engines": { - "node": ">=8.9" + "node": ">=12" }, "resolutions": { - "diff": "^3.5.0", - "lodash": "^4.17.21" + "diff": "^4.0.2" } } diff --git a/packages/resolve-url-loader-filesearch/package.json b/packages/resolve-url-loader-filesearch/package.json index ce9ca1e..adbb49a 100644 --- a/packages/resolve-url-loader-filesearch/package.json +++ b/packages/resolve-url-loader-filesearch/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/bholloway/resolve-url-loader", "engines": { - "node": ">=8.9" + "node": ">=12" }, "files": [ "index.js", diff --git a/packages/resolve-url-loader/index.js b/packages/resolve-url-loader/index.js index 3d74e63..d989bdf 100644 --- a/packages/resolve-url-loader/index.js +++ b/packages/resolve-url-loader/index.js @@ -20,7 +20,7 @@ var valueProcessor = require('./lib/value-processor'), const DEPRECATED_OPTIONS = { engine: [ 'DEP_RESOLVE_URL_LOADER_OPTION_ENGINE', - 'the "engine" option is deprecated, "postcss" engine is the default, using "rework" engine is not advised' + 'the "engine" option is deprecated, "postcss" engine is the default, there are no other available engines' ], keepQuery: [ 'DEP_RESOLVE_URL_LOADER_OPTION_KEEP_QUERY', diff --git a/packages/resolve-url-loader/lib/engine/postcss.js b/packages/resolve-url-loader/lib/engine/postcss.js index 41db992..0bafb9d 100644 --- a/packages/resolve-url-loader/lib/engine/postcss.js +++ b/packages/resolve-url-loader/lib/engine/postcss.js @@ -4,14 +4,14 @@ */ 'use strict'; -var os = require('os'), - path = require('path'), - postcss = require('postcss'); +const os = require('os'); +const path = require('path'); +const postcss = require('postcss'); -var fileProtocol = require('../file-protocol'); -var algerbra = require('../position-algerbra'); +const fileProtocol = require('../file-protocol'); +const algerbra = require('../position-algerbra'); -var ORPHAN_CR_REGEX = /\r(?!\n)(.|\n)?/g; +const ORPHAN_CR_REGEX = /\r(?!\n)(.|\n)?/g; /** * Process the given CSS content into reworked CSS content. @@ -24,66 +24,96 @@ var ORPHAN_CR_REGEX = /\r(?!\n)(.|\n)?/g; */ function process(sourceFile, sourceContent, params) { // #107 libsass emits orphan CR not considered newline, postcss does consider newline (content vs source-map mismatch) - var correctedContent = params.removeCR && (os.EOL !== '\r') ? + const correctedContent = params.removeCR && (os.EOL !== '\r') ? sourceContent.replace(ORPHAN_CR_REGEX, ' $1') : sourceContent; - /** - * Plugin for postcss that follows SASS transpilation. - */ - const postcssPlugin = { - postcssPlugin: 'postcss-resolve-url', - Declaration: (declaration) => { - var prefix, - isValid = declaration.value && (declaration.value.indexOf('url') >= 0); - if (isValid) { - prefix = declaration.prop + declaration.raws.between; - declaration.value = params.transformDeclaration(declaration.value, getPathsAtChar); - } + // IMPORTANT - prepend file protocol to all sources to avoid problems with source map + const plugin = Object.assign( + () => ({ + postcssPlugin: 'postcss-resolve-url', + prepare: () => { + const visited = new Set(); + + /** + * Given an apparent position find the directory of the original file. + * + * @param startPosApparent {{line: number, column: number}} + * @returns {false|string} Directory of original file or false on invalid + */ + const positionToOriginalDirectory = (startPosApparent) => { + // reverse the original source-map to find the original source file before transpilation + const startPosOriginal = + !!params.sourceMapConsumer && + params.sourceMapConsumer.originalPositionFor(startPosApparent); - /** - * Create a hash of base path strings. - * - * Position in the declaration is supported by postcss at the position of the url() statement. - * - * @param {number} index Index in the declaration value at which to evaluate - * @throws Error on invalid source map - * @returns {{subString:string, value:string, property:string, selector:string}} Hash of base path strings - */ - function getPathsAtChar(index) { - var subString = declaration.value.slice(0, index), - posSelector = algerbra.sanitise(declaration.parent.source.start), - posProperty = algerbra.sanitise(declaration.source.start), - posValue = algerbra.add([posProperty, algerbra.strToOffset(prefix)]), - posSubString = algerbra.add([posValue, algerbra.strToOffset(subString)]); + // we require a valid directory for the specified file + const directory = + !!startPosOriginal && + !!startPosOriginal.source && + fileProtocol.remove(path.dirname(startPosOriginal.source)); - var result = { - subString: positionToOriginalDirectory(posSubString), - value : positionToOriginalDirectory(posValue), - property : positionToOriginalDirectory(posProperty), - selector : positionToOriginalDirectory(posSelector) + return directory; }; - var isValid = [result.subString, result.value, result.property, result.selector].every(Boolean); - if (isValid) { - return result; - } - else if (params.sourceMapConsumer) { - throw new Error( - 'source-map information is not available at url() declaration ' + - (ORPHAN_CR_REGEX.test(sourceContent) ? '(found orphan CR, try removeCR option)' : '(no orphan CR found)') - ); - } else { - throw new Error('a valid source-map is not present (ensure preceding loaders output a source-map)'); - } + return { + Declaration: (declaration) => { + var prefix, + isValid = declaration.value && (declaration.value.indexOf('url') >= 0) && !visited.has(declaration); + if (isValid) { + prefix = declaration.prop + declaration.raws.between; + declaration.value = params.transformDeclaration(declaration.value, getPathsAtChar); + visited.add(declaration); + } + + /** + * Create a hash of base path strings. + * + * Position in the declaration is supported by postcss at the position of the url() statement. + * + * @param {number} index Index in the declaration value at which to evaluate + * @throws Error on invalid source map + * @returns {{subString:string, value:string, property:string, selector:string}} Hash of base path strings + */ + function getPathsAtChar(index) { + var subString = declaration.value.slice(0, index), + posSelector = algerbra.sanitise(declaration.parent.source.start), + posProperty = algerbra.sanitise(declaration.source.start), + posValue = algerbra.add([posProperty, algerbra.strToOffset(prefix)]), + posSubString = algerbra.add([posValue, algerbra.strToOffset(subString)]); + + var result = { + subString: positionToOriginalDirectory(posSubString), + value : positionToOriginalDirectory(posValue), + property : positionToOriginalDirectory(posProperty), + selector : positionToOriginalDirectory(posSelector) + }; + + var isValid = [result.subString, result.value, result.property, result.selector].every(Boolean); + if (isValid) { + return result; + } + else if (params.sourceMapConsumer) { + throw new Error( + 'source-map information is not available at url() declaration ' + ( + ORPHAN_CR_REGEX.test(sourceContent) ? + '(found orphan CR, try removeCR option)' : + '(no orphan CR found)' + ) + ); + } else { + throw new Error('a valid source-map is not present (ensure preceding loaders output a source-map)'); + } + } + } + }; } - } - } + }), + { postcss: true } + ); - // prepend file protocol to all sources to avoid problems with source map - return postcss([ - postcssPlugin - ]) + // IMPORTANT - prepend file protocol to all sources to avoid problems with source map + return postcss([plugin]) .process(correctedContent, { from: fileProtocol.prepend(sourceFile), map : params.outputSourceMap && { @@ -93,31 +123,10 @@ function process(sourceFile, sourceContent, params) { sourcesContent: true // #98 sourcesContent missing from output map } }) - .then(result => ({ - content: result.css, - map : params.outputSourceMap ? fileProtocol.remove(result.map.toJSON()) : null + .then(({css, map}) => ({ + content: css, + map : params.outputSourceMap ? fileProtocol.remove(map.toJSON()) : null })); - - /** - * Given an apparent position find the directory of the original file. - * - * @param startPosApparent {{line: number, column: number}} - * @returns {false|string} Directory of original file or false on invalid - */ - function positionToOriginalDirectory(startPosApparent) { - // reverse the original source-map to find the original source file before transpilation - var startPosOriginal = - !!params.sourceMapConsumer && - params.sourceMapConsumer.originalPositionFor(startPosApparent); - - // we require a valid directory for the specified file - var directory = - !!startPosOriginal && - !!startPosOriginal.source && - fileProtocol.remove(path.dirname(startPosOriginal.source)); - - return directory; - } } module.exports = process; diff --git a/packages/resolve-url-loader/lib/engine/rework.js b/packages/resolve-url-loader/lib/engine/rework.js deleted file mode 100644 index c76ad69..0000000 --- a/packages/resolve-url-loader/lib/engine/rework.js +++ /dev/null @@ -1,155 +0,0 @@ -/* - * MIT License http://opensource.org/licenses/MIT - * Author: Ben Holloway @bholloway - */ -'use strict'; - -var path = require('path'), - convert = require('convert-source-map'); - -var fileProtocol = require('../file-protocol'); - -var rework = requireOptionalPeerDependency('rework'), - visit = requireOptionalPeerDependency('rework-visit'); - -/** - * Process the given CSS content into reworked CSS content. - * - * @param {string} sourceFile The absolute path of the file being processed - * @param {string} sourceContent CSS content without source-map - * @param {{outputSourceMap: boolean, transformDeclaration:function, absSourceMap:object, - * sourceMapConsumer:object}} params Named parameters - * @return {{content: string, map: object}} Reworked CSS and optional source-map - */ -function process(sourceFile, sourceContent, params) { - - // embed source-map in css - // prepend file protocol to all sources to avoid problems with source map - var contentWithMap = sourceContent + ( - params.absSourceMap ? - convert.fromObject(fileProtocol.prepend(params.absSourceMap)).toComment({multiline: true}) : - '' - ); - - // need to prepend file protocol to source as well to avoid problems with source map - var reworked = rework(contentWithMap, {source: fileProtocol.prepend(sourceFile)}) - .use(reworkPlugin) - .toString({ - sourcemap : params.outputSourceMap, - sourcemapAsObject: params.outputSourceMap - }); - - // complete with source-map - if (params.outputSourceMap) { - return { - content: reworked.code, - map : fileProtocol.remove(reworked.map) - }; - } - // complete without source-map - else { - return { - content: reworked, - map : null - }; - } - - /** - * Plugin for css rework that follows SASS transpilation. - * - * @param {object} stylesheet AST for the CSS output from SASS - */ - function reworkPlugin(stylesheet) { - - // visit each node (selector) in the stylesheet recursively using the official utility method - // each node may have multiple declarations - visit(stylesheet, function visitor(declarations) { - if (declarations) { - declarations.forEach(eachDeclaration); - } - }); - - /** - * Process a declaration from the syntax tree. - * @param declaration - */ - function eachDeclaration(declaration) { - var isValid = declaration.value && (declaration.value.indexOf('url') >= 0); - if (isValid) { - declaration.value = params.transformDeclaration(declaration.value, getPathsAtChar); - } - - /** - * Create a hash of base path strings. - * - * Position in the declaration is not supported since rework does not refine sourcemaps to this detail. - * - * @throws Error on invalid source map - * @returns {{selector:string, property:string}} Hash of base path strings - */ - function getPathsAtChar() { - var posSelector = declaration.parent && declaration.parent.position.start, - posProperty = declaration.position.start; - - var result = { - property: positionToOriginalDirectory(posProperty), - selector: positionToOriginalDirectory(posSelector) - }; - - var isValid = [result.property, result.selector].every(Boolean); - if (isValid) { - return result; - } - else if (params.sourceMapConsumer) { - throw new Error('source-map information is not available at url() declaration'); - } else { - throw new Error('a valid source-map is not present (ensure preceding loaders output a source-map)'); - } - } - } - } - - /** - * Given an apparent position find the directory of the original file. - * - * @param startPosApparent {{line: number, column: number}} - * @returns {false|string} Directory of original file or false on invalid - */ - function positionToOriginalDirectory(startPosApparent) { - // reverse the original source-map to find the original source file before transpilation - var startPosOriginal = - !!params.sourceMapConsumer && - params.sourceMapConsumer.originalPositionFor(startPosApparent); - - // we require a valid directory for the specified file - var directory = - !!startPosOriginal && - !!startPosOriginal.source && - fileProtocol.remove(path.dirname(startPosOriginal.source)); - - return directory; - } -} - -module.exports = process; - -/** - * Require the given filename but fail with an error that `requireOptionalPeerDependencies` must be installed. - * - * @param moduleName The module to require - * @returns {*} The module - * @throws Error when module is not found - */ -function requireOptionalPeerDependency(moduleName) { - try { - return require(moduleName); - } - catch (error) { - if (error.message === 'Cannot find module \'' + moduleName + '\'') { - throw new Error('to use the "rework" engine you must install the optionalPeerDependencies'); - } - else { - throw error; - } - } -} diff --git a/packages/resolve-url-loader/lib/join-function/debug.js b/packages/resolve-url-loader/lib/join-function/debug.js index 7224f3d..eafe3f8 100644 --- a/packages/resolve-url-loader/lib/join-function/debug.js +++ b/packages/resolve-url-loader/lib/join-function/debug.js @@ -22,7 +22,7 @@ const pathToString = (absolutePath) => { const segments = (relative[0] !== '..') ? ['.'].concat(relative).filter(Boolean) : (relative.lastIndexOf('..') < 2) ? relative : - absolutePath.split(path.sep); + absolutePath.replace(/^[A-Z]\:/, '').split(path.sep); return segments.join('/'); } }; diff --git a/packages/resolve-url-loader/lib/join-function/debug.test.js b/packages/resolve-url-loader/lib/join-function/debug.test.js index 07067e0..0c1f35f 100644 --- a/packages/resolve-url-loader/lib/join-function/debug.test.js +++ b/packages/resolve-url-loader/lib/join-function/debug.test.js @@ -4,7 +4,8 @@ */ 'use strict'; -const {resolve} = require('path'); +const {resolve, sep} = require('path'); +const {platform} = require('os'); const tape = require('blue-tape'); const sinon = require('sinon'); const outdent = require('outdent'); @@ -17,6 +18,15 @@ const json = (strings, ...substitutions) => ...substitutions.map(v => JSON.stringify(v, (_, vv) => Number.isNaN(vv) ? 'NaN' : vv)) ); +const cwd = (...args) => + resolve(...String.raw(...args).split('/')); + +const root = (...args) => + resolve( + platform() === 'win32' ? (process.cwd().split(sep).shift() + sep) : sep, + ...String.raw(...args).split('/') + ); + tape( 'debug', ({name, test, end: end1, equal, looseEqual}) => { @@ -25,16 +35,16 @@ tape( // absolute within cwd [ [ - resolve('my-source-file.js'), + cwd`my-source-file.js`, 'my-asset.png', [ { - base: resolve('foo'), - joined: resolve('foo', 'my-asset.png'), + base: cwd`foo`, + joined: cwd`foo/my-asset.png`, isSuccess: false }, { - base: resolve('bar', 'baz'), - joined: resolve('bar', 'baz', 'my-asset.png'), + base: cwd`bar/baz`, + joined: cwd`bar/baz/my-asset.png`, isSuccess: true } ] @@ -49,24 +59,24 @@ tape( // absolute otherwise [ [ - '/my-source-file.js', - '#anything\\./goes', + root`my-source-file.js`, + '#anything@./goes', [ { - base: '/foo', - joined: '/foo/#anything\\./goes', + base: root`foo`, + joined: root`foo/#anything@./goes`, isSuccess: false }, { - base: '/bar/baz', - joined: '/bar/baz/#anything\\./goes', + base: root`bar/baz`, + joined: root`bar/baz/#anything@./goes`, isSuccess: false } ] ], outdent` - resolve-url-loader: /my-source-file.js: #anything\\./goes - /foo --> /foo/#anything\\./goes - /bar/baz --> /bar/baz/#anything\\./goes + resolve-url-loader: /my-source-file.js: #anything@./goes + /foo --> /foo/#anything@./goes + /bar/baz --> /bar/baz/#anything@./goes NOT FOUND ` ], diff --git a/packages/resolve-url-loader/package.json b/packages/resolve-url-loader/package.json index 27d2985..567b559 100644 --- a/packages/resolve-url-loader/package.json +++ b/packages/resolve-url-loader/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/bholloway/resolve-url-loader/tree/v4-maintenance/packages/resolve-url-loader", "engines": { - "node": "^10 || ^12 || >=14" + "node": ">=12" }, "files": [ "index.js", @@ -38,19 +38,7 @@ "adjust-sourcemap-loader": "^4.0.0", "convert-source-map": "^1.7.0", "loader-utils": "^2.0.0", - "postcss": "^8.1.9", + "postcss": "^8.2.14", "source-map": "0.6.1" - }, - "peerDependencies": { - "rework": "1.0.1", - "rework-visit": "1.0.0" - }, - "peerDependenciesMeta": { - "rework": { - "optional": true - }, - "rework-visit": { - "optional": true - } } } diff --git a/packages/resolve-url-loader/test/webpack2-sassloader6-sass4/package.json b/packages/resolve-url-loader/test/webpack2-sassloader6-sass4/package.json deleted file mode 100644 index c6c284d..0000000 --- a/packages/resolve-url-loader/test/webpack2-sassloader6-sass4/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "webpack2-sassloader6-sass4", - "version": "1.0.0", - "engines": { - "node": ">=8.9" - }, - "dependencies": { - "css-loader": "0.28.9", - "extract-text-webpack-plugin": "^2.1.2", - "file-loader": "1.1.9", - "node-sass": "^4.5.0", - "sass-loader": "^6.0.7", - "webpack": "^2.7.0" - }, - "scripts": { - "webpack-d": "webpack --debug --output-pathinfo", - "webpack-p": "webpack -p" - } -} diff --git a/packages/resolve-url-loader/test/webpack2-sassloader6-sass4/webpack.config.js b/packages/resolve-url-loader/test/webpack2-sassloader6-sass4/webpack.config.js deleted file mode 100644 index 07f5116..0000000 --- a/packages/resolve-url-loader/test/webpack2-sassloader6-sass4/webpack.config.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -const path = require('path'); -const ExtractTextPlugin = require('extract-text-webpack-plugin'); -const templateFn = require('adjust-sourcemap-loader').moduleFilenameTemplate({format: 'projectRootRelative'}); - -const extractSass = new ExtractTextPlugin({ - filename: '[name].[contenthash].css', - disable: false, - allChunks: true -}); - -module.exports = { - entry: path.join(__dirname, process.env.ENTRY), - output: { - path: path.join(__dirname, process.env.OUTPUT), - filename: '[name].js', - devtoolModuleFilenameTemplate: templateFn, - devtoolFallbackModuleFilenameTemplate: templateFn - }, - devtool: JSON.parse(process.env.DEVTOOL) && 'source-map', - resolve: { - modules: [path.join(__dirname, 'modules'), 'node_modules'] // specifically for isolation in module-relative test - }, - module: { - rules: [{ - test: /\.scss$/, - use: extractSass.extract({ - use: [ - { - loader: 'css-loader', - options: JSON.parse(process.env.CSS_OPTIONS) - }, { - loader: 'resolve-url-loader', - options: Object.assign( - JSON.parse(process.env.LOADER_OPTIONS), - process.env.LOADER_JOIN && { - join: new Function('require', process.env.LOADER_JOIN)(require) // jshint ignore:line - } - ) - }, { - loader: 'sass-loader', - options: { - sourceMap: true, - sourceMapContents: false - } - } - ] - }) - }, { - test: /\.(woff2?|ttf|eot|svg|jpg)(?:[?#].+)?$/, - use: [{ - loader: 'file-loader' - }] - }] - }, - plugins: [ - extractSass - ] -}; diff --git a/packages/resolve-url-loader/test/webpack3-sassloader6-sass4/package.json b/packages/resolve-url-loader/test/webpack3-sassloader6-sass4/package.json deleted file mode 100644 index aa9b2b8..0000000 --- a/packages/resolve-url-loader/test/webpack3-sassloader6-sass4/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "webpack3-sassloader6-sass4", - "version": "1.0.0", - "engines": { - "node": ">=8.9" - }, - "dependencies": { - "css-loader": "0.28.9", - "extract-text-webpack-plugin": "^3.0.0", - "file-loader": "1.1.9", - "node-sass": "^4.9.0", - "sass-loader": "^6.0.7", - "webpack": "^3.10.0" - }, - "scripts": { - "webpack-d": "webpack --debug --output-pathinfo", - "webpack-p": "webpack -p" - } -} diff --git a/packages/resolve-url-loader/test/webpack3-sassloader6-sass4/webpack.config.js b/packages/resolve-url-loader/test/webpack3-sassloader6-sass4/webpack.config.js deleted file mode 100644 index 07f5116..0000000 --- a/packages/resolve-url-loader/test/webpack3-sassloader6-sass4/webpack.config.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -const path = require('path'); -const ExtractTextPlugin = require('extract-text-webpack-plugin'); -const templateFn = require('adjust-sourcemap-loader').moduleFilenameTemplate({format: 'projectRootRelative'}); - -const extractSass = new ExtractTextPlugin({ - filename: '[name].[contenthash].css', - disable: false, - allChunks: true -}); - -module.exports = { - entry: path.join(__dirname, process.env.ENTRY), - output: { - path: path.join(__dirname, process.env.OUTPUT), - filename: '[name].js', - devtoolModuleFilenameTemplate: templateFn, - devtoolFallbackModuleFilenameTemplate: templateFn - }, - devtool: JSON.parse(process.env.DEVTOOL) && 'source-map', - resolve: { - modules: [path.join(__dirname, 'modules'), 'node_modules'] // specifically for isolation in module-relative test - }, - module: { - rules: [{ - test: /\.scss$/, - use: extractSass.extract({ - use: [ - { - loader: 'css-loader', - options: JSON.parse(process.env.CSS_OPTIONS) - }, { - loader: 'resolve-url-loader', - options: Object.assign( - JSON.parse(process.env.LOADER_OPTIONS), - process.env.LOADER_JOIN && { - join: new Function('require', process.env.LOADER_JOIN)(require) // jshint ignore:line - } - ) - }, { - loader: 'sass-loader', - options: { - sourceMap: true, - sourceMapContents: false - } - } - ] - }) - }, { - test: /\.(woff2?|ttf|eot|svg|jpg)(?:[?#].+)?$/, - use: [{ - loader: 'file-loader' - }] - }] - }, - plugins: [ - extractSass - ] -}; diff --git a/packages/resolve-url-loader/test/webpack4-sassloader7-sass4/package.json b/packages/resolve-url-loader/test/webpack4-sassloader8-nodesass4/package.json similarity index 57% rename from packages/resolve-url-loader/test/webpack4-sassloader7-sass4/package.json rename to packages/resolve-url-loader/test/webpack4-sassloader8-nodesass4/package.json index 747bf69..d843286 100644 --- a/packages/resolve-url-loader/test/webpack4-sassloader7-sass4/package.json +++ b/packages/resolve-url-loader/test/webpack4-sassloader8-nodesass4/package.json @@ -1,16 +1,16 @@ { - "name": "webpack4-sassloader7-sass4", + "name": "webpack4-sassloader8-nodesass4", "version": "1.0.0", "engines": { - "node": ">=8.9" + "node": ">=12.0.0" }, "dependencies": { - "css-loader": "^3.2.0", - "file-loader": "^4.2.0", + "css-loader": "^5.2.4", + "file-loader": "^6.2.0", "last-call-webpack-plugin": "^3.0.0", - "mini-css-extract-plugin": "^0.8.0", - "node-sass": "^4.12.0", - "optimize-css-assets-webpack-plugin": "^5.0.3", + "mini-css-extract-plugin": "^1.6.0", + "node-sass": "^4.14.1", + "optimize-css-assets-webpack-plugin": "^5.0.4", "sass-loader": "^8.0.0", "webpack": "^4.41.0", "webpack-cli": "^3.3.9" diff --git a/packages/resolve-url-loader/test/webpack5-sassloader8-sass4/webpack.config.js b/packages/resolve-url-loader/test/webpack4-sassloader8-nodesass4/webpack.config.js similarity index 87% rename from packages/resolve-url-loader/test/webpack5-sassloader8-sass4/webpack.config.js rename to packages/resolve-url-loader/test/webpack4-sassloader8-nodesass4/webpack.config.js index a7812bc..d6016e3 100644 --- a/packages/resolve-url-loader/test/webpack5-sassloader8-sass4/webpack.config.js +++ b/packages/resolve-url-loader/test/webpack4-sassloader8-nodesass4/webpack.config.js @@ -4,7 +4,6 @@ const path = require('path'); const LastCallWebpackPlugin = require('last-call-webpack-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); -const processFn = require('adjust-sourcemap-loader/lib/process'); module.exports = { entry: path.join(__dirname, process.env.ENTRY), @@ -27,6 +26,12 @@ module.exports = { { loader: 'css-loader', options: JSON.parse(process.env.CSS_OPTIONS) + }, { + loader: 'adjust-sourcemap-loader', + options: { + debug: true, + format: 'projectRelative' + } }, { loader: 'resolve-url-loader', options: Object.assign( @@ -62,8 +67,11 @@ module.exports = { phase: LastCallWebpackPlugin.PHASES.EMIT, regExp: /\.css\.map/, processor: (assetName, asset) => Promise.resolve(JSON.parse(asset.source())) - .then(obj => processFn({}, {format: 'projectRootRelative'}, obj)) - .then(obj => JSON.stringify(obj)) + .then((obj) => ({ + ...obj, + sources: obj.sources.map((source) => source.replace('webpack://', '')) + })) + .then((obj) => JSON.stringify(obj)) }] }) ], diff --git a/packages/resolve-url-loader/test/webpack5-sassloader11-nodesass6/package.json b/packages/resolve-url-loader/test/webpack5-sassloader11-nodesass6/package.json new file mode 100644 index 0000000..9604179 --- /dev/null +++ b/packages/resolve-url-loader/test/webpack5-sassloader11-nodesass6/package.json @@ -0,0 +1,21 @@ +{ + "name": "webpack5-sassloader11-nodesass6", + "version": "1.0.0", + "engines": { + "node": ">=12.0.0" + }, + "dependencies": { + "css-loader": "^5.2.4", + "css-minimizer-webpack-plugin": "^3.0.0", + "file-loader": "^6.2.0", + "mini-css-extract-plugin": "^1.6.0", + "node-sass": "^6.0.0", + "sass-loader": "^11.0.1", + "webpack": "^5.36.2", + "webpack-cli": "^4.7.0" + }, + "scripts": { + "webpack-d": "cross-env NODE_ENV=development webpack --no-color --output-pathinfo", + "webpack-p": "cross-env NODE_ENV=production webpack --no-color" + } +} diff --git a/packages/resolve-url-loader/test/webpack4-sassloader7-sass4/webpack.config.js b/packages/resolve-url-loader/test/webpack5-sassloader11-nodesass6/webpack.config.js similarity index 58% rename from packages/resolve-url-loader/test/webpack4-sassloader7-sass4/webpack.config.js rename to packages/resolve-url-loader/test/webpack5-sassloader11-nodesass6/webpack.config.js index e3d8730..fe44efb 100644 --- a/packages/resolve-url-loader/test/webpack4-sassloader7-sass4/webpack.config.js +++ b/packages/resolve-url-loader/test/webpack5-sassloader11-nodesass6/webpack.config.js @@ -1,20 +1,24 @@ 'use strict'; const path = require('path'); -const LastCallWebpackPlugin = require('last-call-webpack-plugin'); -const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); +const SourceMapDevToolPlugin = require('webpack').SourceMapDevToolPlugin; +const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); -const processFn = require('adjust-sourcemap-loader/lib/process'); + +class DegeneratePlugin { + apply() {} +} module.exports = { entry: path.join(__dirname, process.env.ENTRY), output: { path: path.join(__dirname, process.env.OUTPUT), filename: '[name].js', + publicPath: '', devtoolModuleFilenameTemplate: '[resource-path]', devtoolFallbackModuleFilenameTemplate: '[resource-path]', }, - devtool: JSON.parse(process.env.DEVTOOL) && 'nosources-source-map', + devtool: false, resolve: { modules: [path.join(__dirname, 'modules'), 'node_modules'] // specifically for isolation in module-relative test }, @@ -52,29 +56,27 @@ module.exports = { }] }, plugins: [ + JSON.parse(process.env.DEVTOOL) ? new SourceMapDevToolPlugin({ + filename: '[file].map', + moduleFilenameTemplate: '[resource-path]', + append: process.env.NODE_ENV !== 'production' && undefined, + noSources: true + }) : new DegeneratePlugin(), new MiniCssExtractPlugin({ filename: '[name].[contenthash].css' }), - // currently devtoolModuleFilenameTemplate is not respected by OptimizeCSSAssetsPlugin so we must do it ourselves - new LastCallWebpackPlugin({ - assetProcessors: [{ - phase: LastCallWebpackPlugin.PHASES.EMIT, - regExp: /\.css\.map/, - processor: (assetName, asset) => Promise.resolve(JSON.parse(asset.source())) - .then(obj => processFn({}, {format: 'projectRootRelative'}, obj)) - .then(obj => JSON.stringify(obj)) - }] - }) ], optimization: { minimizer: [ - new OptimizeCSSAssetsPlugin({ - cssProcessorOptions: { - map: !!JSON.parse(process.env.DEVTOOL), - // the following optimisations are fine but e2e assertions are easier without them - cssDeclarationSorter: false, - normalizeUrl: false, - discardUnused: false + new CssMinimizerPlugin({ + minimizerOptions: { + processorOptions: { + map: !!JSON.parse(process.env.DEVTOOL) && {inline: false}, + // the following optimisations are fine but e2e assertions are easier without them + cssDeclarationSorter: false, + normalizeUrl: false, + discardUnused: false + } } }) ] diff --git a/packages/resolve-url-loader/test/webpack5-sassloader8-sass4/package.json b/packages/resolve-url-loader/test/webpack5-sassloader8-sass4/package.json deleted file mode 100644 index 0b261d9..0000000 --- a/packages/resolve-url-loader/test/webpack5-sassloader8-sass4/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "webpack5-sassloader8-sass4", - "version": "1.0.0", - "engines": { - "node": ">=10.0.0" - }, - "dependencies": { - "css-loader": "^5.2.4", - "file-loader": "^6.2.0", - "last-call-webpack-plugin": "^3.0.0", - "mini-css-extract-plugin": "^1.5.1", - "node-sass": "^5.0.0", - "optimize-css-assets-webpack-plugin": "^5.0.4", - "sass-loader": "^11.0.1", - "webpack": "^5.36.1", - "webpack-cli": "^4.6.0" - }, - "scripts": { - "webpack-d": "webpack --no-color --output-pathinfo --mode=development", - "webpack-p": "webpack --no-color --mode=production" - } -} diff --git a/packages/sourcemap-to-string/lib/sourcemap.js b/packages/sourcemap-to-string/lib/sourcemap.js index 62036cc..a00faa7 100644 --- a/packages/sourcemap-to-string/lib/sourcemap.js +++ b/packages/sourcemap-to-string/lib/sourcemap.js @@ -6,7 +6,6 @@ const vlq = require('vlq'); const compose = require('compose-function'); -require('array.prototype.flatmap').shim(); const table = require('./table'); const {formatInt, formatSourceText, formatMultilineText} = require('./text'); diff --git a/packages/sourcemap-to-string/lib/table.js b/packages/sourcemap-to-string/lib/table.js index 56bd0fa..3bd7d3e 100644 --- a/packages/sourcemap-to-string/lib/table.js +++ b/packages/sourcemap-to-string/lib/table.js @@ -4,7 +4,6 @@ */ 'use strict'; -require('Array.prototype.flatmap').shim(); const columns = require('./columns'); const normaliseRowHeight = require('./normalise-multiline-array'); diff --git a/packages/sourcemap-to-string/lib/text.js b/packages/sourcemap-to-string/lib/text.js index c157b48..ff0ddf9 100644 --- a/packages/sourcemap-to-string/lib/text.js +++ b/packages/sourcemap-to-string/lib/text.js @@ -6,7 +6,6 @@ const wordWrap = require('word-wrap'); -require('Array.prototype.flatmap').shim(); const {repeatArray, last} = require('./array'); diff --git a/packages/sourcemap-to-string/package.json b/packages/sourcemap-to-string/package.json index cb41e0a..320cc07 100644 --- a/packages/sourcemap-to-string/package.json +++ b/packages/sourcemap-to-string/package.json @@ -17,17 +17,16 @@ }, "homepage": "https://github.com/bholloway/resolve-url-loader", "engines": { - "node": ">=8.9" + "node": ">=12" }, "directories": { "lib": "lib" }, "scripts": {}, "dependencies": { - "array.prototype.flatmap": "^1.2.2", "compose-function": "^3.0.3", "convert-source-map": "^1.7.0", - "convict": "^6.0.0", + "convict": "^6.1.0", "get-value": "^3.0.1", "promise-compose": "^1.1.2", "vlq": "^1.0.1", diff --git a/packages/test-my-cli/lib/fs.js b/packages/test-my-cli/lib/fs.js index ecd2dfd..bbbc055 100644 --- a/packages/test-my-cli/lib/fs.js +++ b/packages/test-my-cli/lib/fs.js @@ -61,7 +61,7 @@ exports.MkDirOp = class MkDirOp { exec() { return withCatch(this.log, `mkdir: ${this.path}`)( - () => promisify(mkdirp)(this.path) + () => mkdirp(this.path) .then((created) => {this.created = created;}) .then(constant(this)) ); diff --git a/packages/test-my-cli/operations/init.js b/packages/test-my-cli/operations/init.js index 45426a3..2dc0afa 100644 --- a/packages/test-my-cli/operations/init.js +++ b/packages/test-my-cli/operations/init.js @@ -2,7 +2,6 @@ const {readdirSync} = require('fs'); const {join, basename} = require('path'); -const {promisify} = require('es6-promisify'); const mkdirp = require('mkdirp'); const {keys, entries, assign} = Object; @@ -125,6 +124,6 @@ exports.create = (options) => { onActivity, assertTape(`${NAME}() expected tape Test instance, ensure ${NAME} occurs once as first item`), (test) => ({test, config, layer}), - lens('layer', null)(({root}) => promisify(mkdirp)(root)) + lens('layer', null)(({root}) => mkdirp(root)) ); }; diff --git a/packages/test-my-cli/operations/layer.js b/packages/test-my-cli/operations/layer.js index 194b740..2443635 100644 --- a/packages/test-my-cli/operations/layer.js +++ b/packages/test-my-cli/operations/layer.js @@ -1,7 +1,6 @@ 'use strict'; const {join, basename} = require('path'); -const {promisify} = require('es6-promisify'); const mkdirp = require('mkdirp'); const compose = require('compose-function'); const {assign} = Object; @@ -58,7 +57,7 @@ exports.create = (directory) => { `layer ${index}`, `mkdirp: "${root}" `)), - lens('root', null)((root) => promisify(mkdirp)(root)) + lens('root', null)((root) => mkdirp(root)) ), compose(doLast, lens('layer', 'layer'))( ({unlayer}) => unlayer() diff --git a/packages/test-my-cli/package.json b/packages/test-my-cli/package.json index e6390e9..32548d3 100644 --- a/packages/test-my-cli/package.json +++ b/packages/test-my-cli/package.json @@ -16,7 +16,7 @@ }, "homepage": "https://github.com/bholloway/resolve-url-loader", "engines": { - "node": ">=8.9" + "node": ">=12" }, "directories": { "lib": "lib" @@ -28,9 +28,9 @@ "es6-promisify": "^6.0.2", "get-value": "^3.0.1", "joi": "^14.3.1", - "micromatch": "^4.0.2", - "mkdirp": "^0.5.1", - "ms": "^2.1.2", + "micromatch": "^4.0.4", + "mkdirp": "^1.0.4", + "ms": "^2.1.3", "object-path-immutable": "^4.1.1", "promise-compose": "^1.1.2", "recursive-readdir": "^2.2.2", diff --git a/test/cases/absolute-asset.js b/test/cases/absolute-asset.js index f6d8be8..99959e6 100644 --- a/test/cases/absolute-asset.js +++ b/test/cases/absolute-asset.js @@ -13,7 +13,7 @@ const { } = require('./common/exec'); const {assertCssContent} = require('../lib/assert'); const { - onlyOS, onlyMeta, assertWebpackOk, assertWebpackNotOk, assertNoErrors, assertNoMessages, assertStdout, + onlyMeta, assertWebpackOk, assertWebpackNotOk, assertNoErrors, assertNoMessages, assertStdout, assertCssSourceMapComment, assertCssFile, assertSourceMapFile, assertAssetError } = require('../lib/assert'); @@ -57,16 +57,8 @@ module.exports = test( // absolute urls are not processed testRoot(false)( all(buildDevNormal, buildProdNormal)( - compose(onlyOS('posix'), onlyMeta('meta.version.webpack < 5'))( - assertWebpackOk - ), - all( - compose(onlyOS('posix'), onlyMeta('meta.version.webpack >= 5')), - onlyOS('windows') - )( - assertWebpackNotOk, - assertAssetError - ) + assertWebpackNotOk, + assertAssetError ), all(buildDevNoUrl, buildProdNoUrl)( assertWebpackOk @@ -75,7 +67,7 @@ module.exports = test( // absolute urls are processed testRoot('')( all(buildDevNormal, buildProdNormal)( - onlyMeta('meta.version.webpack < 5')( + onlyMeta('meta.version.webpack == 4')( assertWebpackNotOk, assertAssetError ), @@ -98,22 +90,14 @@ module.exports = test( // if webpack passes it is incidental but lets check anyway testDebug( all(buildDevNormal, buildProdNormal)( - onlyOS('posix')( + onlyMeta('meta.version.webpack == 4')( + assertWebpackNotOk, + assertAssetError + ), + onlyMeta('meta.version.webpack >= 5')( assertWebpackOk, assertNoErrors, assertNoMessages - ), - onlyOS('windows')( - onlyMeta('meta.version.webpack != 4')( - assertWebpackOk, - assertNoErrors, - assertNoMessages - ), - // windows paths are not supported - onlyMeta('meta.version.webpack == 4')( - assertWebpackNotOk, - assertAssetError - ) ) ), all(buildDevNoUrl, buildProdNoUrl)( @@ -131,44 +115,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - unquoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - hash: url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } - - .another-class-name { - display: block; } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); @@ -185,20 +132,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework"'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url("../images/img.jpg"); - double-quoted: url("../images/img.jpg"); - unquoted: url(../images/img.jpg); - query: url(../images/img.jpg?query); - hash: url(../images/img.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss"'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url("../images/img.jpg"); double-quoted: url("../images/img.jpg"); @@ -214,19 +148,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);double-quoted: - url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);query: - url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)} - .another-class-name{display:block} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{single-quoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);unquoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);hash:url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash)} @@ -237,22 +160,12 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true), - compose(assertCssContent, trim)` - .some-class-name{single-quoted:url("../images/img.jpg");double-quoted:url("../images/img.jpg");unquoted: - url(../images/img.jpg);query:url(../images/img.jpg?query);hash:url(../images/img.jpg#hash)} - .another-class-name{display:block} - ` - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false), - compose(assertCssContent, trim)` - .some-class-name{single-quoted:url(../images/img.jpg);double-quoted:url(../images/img.jpg);unquoted: - url(../images/img.jpg);query:url(../images/img.jpg?query);hash:url(../images/img.jpg#hash)} - .another-class-name{display:block} - ` - ) + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` + .some-class-name{single-quoted:url(../images/img.jpg);double-quoted:url(../images/img.jpg);unquoted: + url(../images/img.jpg);query:url(../images/img.jpg?query);hash:url(../images/img.jpg#hash)} + .another-class-name{display:block} + ` ), buildProdNoDevtool( assertWebpackOk, diff --git a/test/cases/adjacent-asset.js b/test/cases/adjacent-asset.js index c34dfcc..7cfd9d5 100644 --- a/test/cases/adjacent-asset.js +++ b/test/cases/adjacent-asset.js @@ -72,44 +72,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - unquoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - hash: url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } - - .another-class-name { - display: block; } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); @@ -127,167 +90,11 @@ module.exports = test( assertDebugMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.32a9fc6ea0b1860d3a207e9e38de3cef.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/image 02:3 ░░single-quoted: url("../../packageB/images/i - s/img.jpg');⏎ mg.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/image 03:3 ░░double-quoted: url("../../packageB/images/i - s/img.jpg");⏎ mg.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img. 04:3 ░░unquoted: url(../../packageB/images/img.jpg - jpg);⏎ );⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jpg 05:3 ░░query: url(../../packageB/images/img.jpg?qu - ?query);⏎ ery);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../../../packageB/images/img.jpg# 06:3 ░░hash: url(../../packageB/images/img.jpg#has - hash);⏎ h);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:2 ░⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.32a9fc6ea0b1860d3a2 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07e9e38de3cef.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.cb82f46362f9ca315ba7.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/image 02:3 ░░single-quoted: url("../../packageB/images/i - s/img.jpg');⏎ mg.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/image 03:3 ░░double-quoted: url("../../packageB/images/i - s/img.jpg");⏎ mg.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img. 04:3 ░░unquoted: url(../../packageB/images/img.jpg - jpg);⏎ );⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jpg 05:3 ░░query: url(../../packageB/images/img.jpg?qu - ?query);⏎ ery);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../../../packageB/images/img.jpg# 06:3 ░░hash: url(../../packageB/images/img.jpg#has - hash);⏎ h);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.cb82f46362f9ca315ba - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.c389f1c4a95b262f2ab0.css'), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.1fa01cad4d921225dd5e.css'), outdent )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/image 02:3 ░░single-quoted: url("../../packageB/images/i - s/img.jpg');⏎ mg.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/image 03:3 ░░double-quoted: url("../../packageB/images/i - s/img.jpg");⏎ mg.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img. 04:3 ░░unquoted: url(../../packageB/images/img.jpg - jpg);⏎ );⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jpg 05:3 ░░query: url(../../packageB/images/img.jpg?qu - ?query);⏎ ery);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../../../packageB/images/img.jpg# 06:3 ░░hash: url(../../packageB/images/img.jpg#has - hash);⏎ h);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.c389f1c4a95b262f2ab - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.d8afb976e857951afc0b2c5d05dfa7d6.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('../../../packageB/imag 2:03 ░░single-quoted: url("../../packageB/images/ - es/img.jpg')░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:57 ░░░░░░░░░░░░;⏎ 2:55 ░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("../../../packageB/imag 3:03 ░░double-quoted: url("../../packageB/images/ - es/img.jpg")░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:57 ░░░░░░░░░░░░;⏎ 3:55 ░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(../../../packageB/images/img 4:03 ░░unquoted: url(../../packageB/images/img.jp - .jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g);░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:50 ░░░░░;⏎ 4:48 ░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(../../../packageB/images/img.jp 5:03 ░░query: url(../../packageB/images/img.jpg?q - g?query)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ uery);░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:53 ░░░░░░░░;⏎ 5:51 ░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(../../../packageB/images/img.jpg 6:03 ░░hash: url(../../packageB/images/img.jpg#ha - #hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ sh);░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:51 ░░░░░░;⏎ 6:49 ░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9:03 ░░display: block;░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:18 ░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.d8afb976e857951afc - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0b2c5d05dfa7d6.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.78ceabcf7e7dcba0707a.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -312,7 +119,7 @@ module.exports = test( 6:51 ░░░░░░;⏎ 6:48 ░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -320,15 +127,15 @@ module.exports = test( 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:17 ░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.78ceabcf7e7dcba070 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7a.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.1fa01cad4d921225dd + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5e.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.d8a71c4765a29b23f124.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -353,7 +160,7 @@ module.exports = test( 6:51 ░░░░░░;⏎ 6:48 ░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -369,19 +176,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);double-quoted: - url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);query: - url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)} - .another-class-name{display:block} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{single-quoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);unquoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);hash:url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash)} @@ -392,178 +188,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.aa63750c6a0b422952024661a1ac51bc.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/imag 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("../../pa - es/img.jpg');⏎ ckageB/images/img.jpg");░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/imag 1:069 ░░░░░░░░░░░░░░░░░░░░░░░░double-quoted:url(". - es/img.jpg");⏎ ./../packageB/images/img.jpg");░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img 1:120 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░unquoted:url( - .jpg);⏎ ../../packageB/images/img.jpg);░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jp 1:164 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(../ - g?query);⏎ ../packageB/images/img.jpg?query);░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../../../packageB/images/img.jpg 1:211 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(. - #hash);⏎ ./../packageB/images/img.jpg#hash)}░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:256 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another- - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:276 ░░░░░░░░░░░display:block}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.aa63750c6a0b422952 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 024661a1ac51bc.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.c1129a624153e83e15c3.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/imag 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(../../pac - es/img.jpg');⏎ kageB/images/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/imag 1:066 ░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░ - es/img.jpg');⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/imag 1:067 ░░░░░░░░░░░░░░░░░░░░░░double-quoted:url(../. - es/img.jpg");⏎ ./packageB/images/img.jpg)░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/imag 1:115 ░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░ - es/img.jpg");⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img 1:116 ░░░░░░░░░░░░░░░░░░░░░░░░░░░unquoted:url(../. - .jpg);⏎ ./packageB/images/img.jpg)░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img 1:159 ░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░ - .jpg);⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jp 1:160 ░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(../../p - g?query);⏎ ackageB/images/img.jpg?query)░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jp 1:206 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░ - g?query);⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../../../packageB/images/img.jpg 1:207 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(../.. - #hash);⏎ /packageB/images/img.jpg#hash)░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:251 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:252 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another-clas - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ s-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:272 ░░░░░░░display:block░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:285 ░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.22ae5884522c82ead25d.css'), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/imag 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(../../pac - es/img.jpg');⏎ kageB/images/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../../../packageB/imag 1:066 ░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░ - es/img.jpg');⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/imag 1:067 ░░░░░░░░░░░░░░░░░░░░░░double-quoted:url(../. - es/img.jpg");⏎ ./packageB/images/img.jpg)░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../../../packageB/imag 1:115 ░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░ - es/img.jpg");⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img 1:116 ░░░░░░░░░░░░░░░░░░░░░░░░░░░unquoted:url(../. - .jpg);⏎ ./packageB/images/img.jpg)░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../../../packageB/images/img 1:159 ░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░ - .jpg);⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jp 1:160 ░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(../../p - g?query);⏎ ackageB/images/img.jpg?query)░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../../../packageB/images/img.jp 1:206 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░ - g?query);⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../../../packageB/images/img.jpg 1:207 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(../.. - #hash);⏎ /packageB/images/img.jpg#hash)░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:251 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:252 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another-clas - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ s-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:272 ░░░░░░░display:block░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:285 ░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.aa63750c6a0b422952024661a1ac51bc.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('../../../packageB/imag 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("../../pa - es/img.jpg');⏎ ckageB/images/img.jpg");░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("../../../packageB/imag 1:069 ░░░░░░░░░░░░░░░░░░░░░░░░double-quoted:url(". - es/img.jpg");⏎ ./../packageB/images/img.jpg");░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(../../../packageB/images/img 1:120 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░unquoted:url( - .jpg);⏎ ../../packageB/images/img.jpg);░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(../../../packageB/images/img.jp 1:164 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(../ - g?query);⏎ ../packageB/images/img.jpg?query);░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(../../../packageB/images/img.jpg 1:211 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(. - #hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ./../packageB/images/img.jpg#hash)░░░░░░░░░░ - 6:51 ░░░░░░;⏎ 1:255 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 1:256 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another- - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:276 ░░░░░░░░░░░display:block░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 1:289 ░░░░░░░░░░░░░░░░░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.aa63750c6a0b422952 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 024661a1ac51bc.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.39a9c5c9928362121403.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.de194efef71b8f0e5e64.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -588,7 +219,7 @@ module.exports = test( 6:51 ░░░░░░;⏎ 1:251 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:252 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another-clas ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ s-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -597,11 +228,11 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.22ae5884522c82ead25d.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -626,7 +257,7 @@ module.exports = test( 6:51 ░░░░░░;⏎ 1:251 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:252 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another-clas ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ s-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/declaration-mixin.postcss.js b/test/cases/declaration-mixin.js similarity index 63% rename from test/cases/declaration-mixin.postcss.js rename to test/cases/declaration-mixin.js index 27a7ed7..b9bb058 100644 --- a/test/cases/declaration-mixin.postcss.js +++ b/test/cases/declaration-mixin.js @@ -74,11 +74,7 @@ module.exports = test( assertNoErrors, assertIncludeMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - background-image: url(d68e763c825dc0e388929ae1b375ce18.jpg); } - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { background-image: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); } ` @@ -88,57 +84,38 @@ module.exports = test( assertNoErrors, assertIncludeMessages, assertCssSourceMapComment(true), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.4f223bc5b560c4a026550f4491acfbd9.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/mixins.scss - --------------------------------------------------------------------------------------------------- - 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 2:03 ░░background-image: url("./img.jpg");░░░░░░░ - 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:38 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.4f223bc5b560c4a026 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 550f4491acfbd9.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.ac9a51ab438078a6f4ae.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.52cfa9838af1696e9321.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 2:03 ░░background-image: url("./img.jpg")░░░░░░░░ 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.ac9a51ab438078a6f4 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ae.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.52cfa9838af1696e93 + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 21.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.00abd28f6856af6b42c9.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 2:03 ░░background-image: url("./img.jpg")░░░░░░░░ 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ @@ -152,16 +129,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertIncludeMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{background-image:url(d68e763c825dc0e388929ae1b375ce18.jpg)} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{background-image:url(9eb57a84abbf8abc636d0faa71f9a800.jpg)} ` ), @@ -169,43 +138,19 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertIncludeMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.4d5011bf8252e9bbc18d8b57151e8684.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/mixins.scss - --------------------------------------------------------------------------------------------------- - 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 1:18 ░░░░░░░░░░░░░░░░░background-image:url("./img - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .jpg")░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:51 ░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.4d5011bf8252e9bbc1 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8d8b57151e8684.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.1989d2b100f23c3bc54e.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.dde052fd081dda9c864c.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 1:18 ░░░░░░░░░░░░░░░░░background-image:url(img.jp ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -217,13 +162,13 @@ module.exports = test( assertCssAndSourceMapContent('main.c7a39e4f9127e1c6b77d.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 1:18 ░░░░░░░░░░░░░░░░░background-image:url(img.jp ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -261,11 +206,7 @@ module.exports = test( assertNoErrors, assertMixinMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - background-image: url(d68e763c825dc0e388929ae1b375ce18.jpg); } - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { background-image: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); } ` @@ -275,58 +216,38 @@ module.exports = test( assertNoErrors, assertMixinMessages, assertCssSourceMapComment(true), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.c766c04a6915d3b7c3f26d15d8de1db9.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/mixins.scss - --------------------------------------------------------------------------------------------------- - 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 2:03 ░░background-image: url("./feature/img.jpg") - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:46 ░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.c766c04a6915d3b7c3 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ f26d15d8de1db9.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.efbf7d7cec35eab2f203.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.1534ff5cd1402fb725ce.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 2:03 ░░background-image: url("./feature/img.jpg") 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:45 ; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.efbf7d7cec35eab2f2 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 03.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.1534ff5cd1402fb725 + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ce.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.613c31543a6423df814a.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 2:03 ░░background-image: url("./feature/img.jpg") 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:45 ; }⏎ @@ -340,16 +261,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertMixinMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{background-image:url(d68e763c825dc0e388929ae1b375ce18.jpg)} - `, - compose(onlyMeta('meta.version.webpack == 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{background-image:url(9eb57a84abbf8abc636d0faa71f9a800.jpg)} ` ), @@ -357,43 +270,19 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertMixinMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.6549357ba014e5f25d88df1c87c53781.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/mixins.scss - --------------------------------------------------------------------------------------------------- - 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 1:18 ░░░░░░░░░░░░░░░░░background-image:url("./fea - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ture/img.jpg")░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:59 ░░░░░░░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.6549357ba014e5f25d - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 88df1c87c53781.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.0ba19ee65019ece2ba37.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.de970111de16ddcf4132.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 1:18 ░░░░░░░░░░░░░░░░░background-image:url(featur ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -405,13 +294,13 @@ module.exports = test( assertCssAndSourceMapContent('main.9da305b887718db0f8b1.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ @include feature;⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/feature/mixins.scss + ./src/feature/mixins.scss --------------------------------------------------------------------------------------------------- 2:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 1:18 ░░░░░░░░░░░░░░░░░background-image:url(featur ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/declaration-variable.postcss.js b/test/cases/declaration-variable.js similarity index 61% rename from test/cases/declaration-variable.postcss.js rename to test/cases/declaration-variable.js index 70bbe13..2a2f630 100644 --- a/test/cases/declaration-variable.postcss.js +++ b/test/cases/declaration-variable.js @@ -84,11 +84,7 @@ module.exports = test( assertNoErrors, assertPropertyMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - background-image: some url(d68e763c825dc0e388929ae1b375ce18.jpg) somewhere; } - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { background-image: some url(9eb57a84abbf8abc636d0faa71f9a800.jpg) somewhere; } ` @@ -98,58 +94,39 @@ module.exports = test( assertNoErrors, assertPropertyMessages, assertCssSourceMapComment(true), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.96f2fd25c7e6a43978e8a5a14d2ebff9.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./img.jpg") som - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ewhere;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/value/variables.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:53 ░░░░░░░ }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.96f2fd25c7e6a43978e - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8a5a14d2ebff9.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.aca6c92b278f2368bc8f.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.84c8362c2f73298314b5.css'), outdent )` - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./img.jpg") som }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ewhere░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:52 ░░░░░░; }⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.aca6c92b278f2368bc8 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ f.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.84c8362c2f73298314b + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.368e6f956d0703b9fef8.css'), outdent )` - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./img.jpg") som }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ewhere░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:52 ░░░░░░; }⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ @@ -162,16 +139,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertPropertyMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{background-image:some url(d68e763c825dc0e388929ae1b375ce18.jpg) somewhere} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{background-image:some url(9eb57a84abbf8abc636d0faa71f9a800.jpg) somewhere} ` ), @@ -179,43 +148,20 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertPropertyMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.f72ea16a0a8071232ec11f243d55dac8.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(". - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /img.jpg") somewhere░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/value/variables.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:66 ░░░░░░░░░░░░░░░░░░░░}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.f72ea16a0a8071232ec - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11f243d55dac8.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.e5eb14ee5e2900a1aecc.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.22ae2c68a8edd3f2e0f6.css'), outdent )` - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(im }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g.jpg) somewhere░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:62 ░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, @@ -224,14 +170,14 @@ module.exports = test( assertCssAndSourceMapContent('main.55aa6b42b829ef8a30e0.css'), outdent )` - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(im }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g.jpg) somewhere░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:62 ░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ` @@ -266,11 +212,7 @@ module.exports = test( assertNoErrors, assertValueMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - background-image: some url(d68e763c825dc0e388929ae1b375ce18.jpg) somewhere; } - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { background-image: some url(9eb57a84abbf8abc636d0faa71f9a800.jpg) somewhere; } ` @@ -280,58 +222,39 @@ module.exports = test( assertNoErrors, assertValueMessages, assertCssSourceMapComment(true), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.38019d7e4f783c5dff4149b402a29c50.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./value/img.jpg - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ") somewhere;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/value/variables.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:59 ░░░░░░░░░░░░░ }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.38019d7e4f783c5dff4 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 149b402a29c50.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.e6d063baf74245631d2f.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.66b031a102af809841d7.css'), outdent )` - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./value/img.jpg }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ") somewhere░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:58 ░░░░░░░░░░░░; }⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.e6d063baf74245631d2 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ f.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.66b031a102af809841d + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.8c5f319b6c3e56b9ea7a.css'), outdent )` - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./value/img.jpg }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ") somewhere░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:58 ░░░░░░░░░░░░; }⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ @@ -344,16 +267,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertValueMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{background-image:some url(d68e763c825dc0e388929ae1b375ce18.jpg) somewhere} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{background-image:some url(9eb57a84abbf8abc636d0faa71f9a800.jpg) somewhere} ` ), @@ -361,43 +276,20 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertValueMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.50223d89c97527cd95d3f457ac73b96f.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(". - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /value/img.jpg") somewhere░░░░░░░░░░░░░░░░░░░ - - /src/value/variables.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:72 ░░░░░░░░░░░░░░░░░░░░░░░░░░}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.50223d89c97527cd95d - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3f457ac73b96f.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.9e1e81e6c8ac95cda014.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.1bb12e0744c6135b50ba.css'), outdent )` - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(va }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ lue/img.jpg) somewhere░░░░░░░░░░░░░░░░░░░░░░░ - value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:68 ░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░ `, @@ -406,14 +298,14 @@ module.exports = test( assertCssAndSourceMapContent('main.e8446b74ad49f80b2cf1.css'), outdent )` - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(va }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ lue/img.jpg) somewhere░░░░░░░░░░░░░░░░░░░░░░░ - /src/value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:68 ░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░ ` @@ -448,11 +340,7 @@ module.exports = test( assertNoErrors, assertSubstringMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - background-image: some url(d68e763c825dc0e388929ae1b375ce18.jpg) somewhere; } - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { background-image: some url(9eb57a84abbf8abc636d0faa71f9a800.jpg) somewhere; } ` @@ -462,58 +350,39 @@ module.exports = test( assertNoErrors, assertSubstringMessages, assertCssSourceMapComment(true), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.51965ae8c4080a520b2112e17ca5fb9d.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./value/substri - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ng/img.jpg") somewhere;░░░░░░░░░░░░░░░░░░░░░░ - - /src/value/variables.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:69 ░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.51965ae8c4080a520b2 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 112e17ca5fb9d.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.e6d81c95e317f9d06421.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.ab3fe05eace280bada83.css'), outdent )` - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./value/substri }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ng/img.jpg") somewhere░░░░░░░░░░░░░░░░░░░░░░░ - value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:68 ░░░░░░░░░░░░░░░░░░░░░░; }⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.e6d81c95e317f9d0642 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.ab3fe05eace280bada8 + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.421db6b7d794d4599810.css'), outdent )` - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 2:03 ░░background-image: some url("./value/substri }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ng/img.jpg") somewhere░░░░░░░░░░░░░░░░░░░░░░░ - /src/value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2:68 ░░░░░░░░░░░░░░░░░░░░░░; }⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ @@ -526,16 +395,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertSubstringMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{background-image:some url(d68e763c825dc0e388929ae1b375ce18.jpg) somewhere} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{background-image:some url(9eb57a84abbf8abc636d0faa71f9a800.jpg) somewhere} ` ), @@ -543,43 +404,20 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertSubstringMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.531f47aa72d61f9b920272e1c1f3d777.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(". - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /value/substring/img.jpg") somewhere░░░░░░░░░ - - /src/value/variables.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:82 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.531f47aa72d61f9b920 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 272e1c1f3d777.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.6aa172c2ed3e739dd3e5.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.2a1af40a25b9fc999ba0.css'), outdent )` - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(va }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ lue/substring/img.jpg) somewhere░░░░░░░░░░░░░ - value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:78 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░ `, @@ -588,14 +426,14 @@ module.exports = test( assertCssAndSourceMapContent('main.3bec6d24c8e52ebb742f.css'), outdent )` - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:1 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:3 ░░background-image: $value;⏎ 1:18 ░░░░░░░░░░░░░░░░░background-image:some url(va }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ lue/substring/img.jpg) somewhere░░░░░░░░░░░░░ - /src/value/variables.scss + ./src/value/variables.scss ---------------------------------------------------------------------------------------------------- -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:78 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░ ` diff --git a/test/cases/deep-asset.js b/test/cases/deep-asset.js index 085727c..d3c9d96 100644 --- a/test/cases/deep-asset.js +++ b/test/cases/deep-asset.js @@ -71,44 +71,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - unquoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - hash: url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } - - .another-class-name { - display: block; } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); @@ -126,159 +89,11 @@ module.exports = test( assertDebugMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.b2b2089e220f45d1a2686d0117aa69aa.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 02:3 ░░single-quoted: url("./feature/images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 03:3 ░░double-quoted: url("./feature/images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 04:3 ░░unquoted: url(./feature/images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 05:3 ░░query: url(./feature/images/img.jpg?query); - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(images/img.jpg#hash);⏎ 06:3 ░░hash: url(./feature/images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:2 ░⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.b2b2089e220f45d1a26 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 86d0117aa69aa.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.5e0dd93fdc2c2f768a45.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.920e56b7953ed8b47ba6.css'), outdent )` - feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 02:3 ░░single-quoted: url("./feature/images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 03:3 ░░double-quoted: url("./feature/images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 04:3 ░░unquoted: url(./feature/images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 05:3 ░░query: url(./feature/images/img.jpg?query); - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(images/img.jpg#hash);⏎ 06:3 ░░hash: url(./feature/images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.5e0dd93fdc2c2f768a4 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.31ac44fb765669424307.css'), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 02:3 ░░single-quoted: url("./feature/images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 03:3 ░░double-quoted: url("./feature/images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 04:3 ░░unquoted: url(./feature/images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 05:3 ░░query: url(./feature/images/img.jpg?query); - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(images/img.jpg#hash);⏎ 06:3 ░░hash: url(./feature/images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.31ac44fb76566942430 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.5783f4340e7af1339e5c373eddccf34d.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('images/img.jpg')░░░░░░ 2:03 ░░single-quoted: url("./feature/images/img.j - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ pg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:39 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:50 ░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("images/img.jpg")░░░░░░ 3:03 ░░double-quoted: url("./feature/images/img.j - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ pg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:39 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 3:50 ░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(images/img.jpg)░░░░░░░░░░░░░ 4:03 ░░unquoted: url(./feature/images/img.jpg);░░ - 4:32 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 4:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(images/img.jpg?query)░░░░░░░░░░ 5:03 ░░query: url(./feature/images/img.jpg?query) - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:46 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(images/img.jpg#hash)░░░░░░░░░░░░ 6:03 ░░hash: url(./feature/images/img.jpg#hash);░ - 6:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:44 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9:03 ░░display: block;░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:18 ░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.5783f4340e7af1339e - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5c373eddccf34d.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.d0c3e9eeed585fb4ae81.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -300,7 +115,7 @@ module.exports = test( 6:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -308,15 +123,15 @@ module.exports = test( 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:17 ░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.d0c3e9eeed585fb4ae - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 81.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.920e56b7953ed8b47b + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ a6.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.a30313feda4d0facbd86.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -338,7 +153,7 @@ module.exports = test( 6:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -354,19 +169,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);double-quoted: - url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);query: - url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)} - .another-class-name{display:block} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{single-quoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);unquoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);hash:url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash)} @@ -377,152 +181,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.ad93e9ebdc2de228afe75ffa82aec99c.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("./featur - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e/images/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 1:064 ░░░░░░░░░░░░░░░░░░░double-quoted:url("./feat - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ure/images/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 1:110 ░░░░░░░░░░░░░░░░░░░░░unquoted:url(./feature/ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ images/img.jpg);░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 1:149 ░░░░░░░░░░░░░░░░query:url(./feature/images/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg?query);░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(images/img.jpg#hash);⏎ 1:191 ░░░░░░░░░░░░░░hash:url(./feature/images/img. - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ jpg#hash)}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:231 ░░░░░░░░░░.another-class-name{░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:251 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:block} - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.ad93e9ebdc2de228af - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e75ffa82aec99c.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.5b701848330d6004087b.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(feature/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mages/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 1:059 ░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 1:060 ░░░░░░░░░░░░░░░double-quoted:url(feature/ima - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ges/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 1:101 ░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 1:102 ░░░░░░░░░░░░░unquoted:url(feature/images/img - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 1:138 ░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 1:139 ░░░░░░query:url(feature/images/img.jpg?query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ )░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 1:178 ░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(images/img.jpg#hash);⏎ 1:179 ░░hash:url(feature/images/img.jpg#hash)░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░ - 2:1 .another-class-name {⏎ 1:217 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.ano - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ther-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:237 ░░░░░░░░░░░░░░░░display:block░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:250 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.aa2eec7d288de5858a28.css'), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(feature/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mages/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('images/img.jpg');⏎ 1:059 ░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 1:060 ░░░░░░░░░░░░░░░double-quoted:url(feature/ima - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ges/img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("images/img.jpg");⏎ 1:101 ░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 1:102 ░░░░░░░░░░░░░unquoted:url(feature/images/img - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(images/img.jpg);⏎ 1:138 ░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 1:139 ░░░░░░query:url(feature/images/img.jpg?query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ )░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(images/img.jpg?query);⏎ 1:178 ░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(images/img.jpg#hash);⏎ 1:179 ░░hash:url(feature/images/img.jpg#hash)░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░ - 2:1 .another-class-name {⏎ 1:217 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.ano - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ther-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:237 ░░░░░░░░░░░░░░░░display:block░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:250 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.ad93e9ebdc2de228afe75ffa82aec99c.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("./featur - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e/images/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("images/img.jpg");⏎ 1:064 ░░░░░░░░░░░░░░░░░░░double-quoted:url("./feat - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ure/images/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(images/img.jpg);⏎ 1:110 ░░░░░░░░░░░░░░░░░░░░░unquoted:url(./feature/ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ images/img.jpg);░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(images/img.jpg?query);⏎ 1:149 ░░░░░░░░░░░░░░░░query:url(./feature/images/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg?query);░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(images/img.jpg#hash)░░░░░░░░░░░░ 1:191 ░░░░░░░░░░░░░░hash:url(./feature/images/img. - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ jpg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:230 ░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 1:231 ░░░░░░░░░░.another-class-name{░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:251 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:block░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 1:264 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░} - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.ad93e9ebdc2de228af - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e75ffa82aec99c.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.8a72993acfa0760768e9.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.719def92d65dc07106e6.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -546,7 +211,7 @@ module.exports = test( 6:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:217 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.ano ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ther-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -555,11 +220,11 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.aa2eec7d288de5858a28.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -583,7 +248,7 @@ module.exports = test( 6:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:217 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.ano ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ther-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/http-asset.js b/test/cases/http-asset.js index 5357cf5..4624fe8 100644 --- a/test/cases/http-asset.js +++ b/test/cases/http-asset.js @@ -52,20 +52,7 @@ module.exports = test( assertNoErrors, assertNoMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework"'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url("http://google.com"); - double-quoted: url("http://google.com"); - unquoted: url(http://google.com); - query: url(http://google.com?query); - hash: url(http://google.com#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss"'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url("http://google.com"); double-quoted: url("http://google.com"); @@ -83,147 +70,11 @@ module.exports = test( assertNoMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.21b4ec70f23090c668f5e2f7ec803034.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 02:3 ░░single-quoted: url("http://google.com");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 03:3 ░░double-quoted: url("http://google.com");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 04:3 ░░unquoted: url(http://google.com);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 05:3 ░░query: url(http://google.com?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(http://google.com#hash);⏎ 06:3 ░░hash: url(http://google.com#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:2 ░⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.21b4ec70f23090c668f - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5e2f7ec803034.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.d61cf936f2e7266c60b2.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 02:3 ░░single-quoted: url("http://google.com");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 03:3 ░░double-quoted: url("http://google.com");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 04:3 ░░unquoted: url(http://google.com);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 05:3 ░░query: url(http://google.com?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(http://google.com#hash);⏎ 06:3 ░░hash: url(http://google.com#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.d61cf936f2e7266c60b - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.9c525771d88fcdfeab4a.css'), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.fdc11787c524034f3b4c.css'), outdent )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 02:3 ░░single-quoted: url("http://google.com");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 03:3 ░░double-quoted: url("http://google.com");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 04:3 ░░unquoted: url(http://google.com);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 05:3 ░░query: url(http://google.com?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(http://google.com#hash);⏎ 06:3 ░░hash: url(http://google.com#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.9c525771d88fcdfeab4 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ a.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.fad3a6c0cd1f188298cff52724660e7a.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('http://google.com')░░░ 2:03 ░░single-quoted: url("http://google.com");░░ - 2:42 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("http://google.com")░░░ 3:03 ░░double-quoted: url("http://google.com");░░ - 3:42 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 3:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(http://google.com)░░░░░░░░░░ 4:03 ░░unquoted: url(http://google.com);░░░░░░░░░ - 4:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 4:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(http://google.com?query)░░░░░░░ 5:03 ░░query: url(http://google.com?query);░░░░░░ - 5:38 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:39 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(http://google.com#hash)░░░░░░░░░ 6:03 ░░hash: url(http://google.com#hash);░░░░░░░░ - 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9:03 ░░display: block;░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:18 ░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.fad3a6c0cd1f188298 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ cff52724660e7a.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.f25d294061b9ae04161f.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -243,7 +94,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -251,15 +102,15 @@ module.exports = test( 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:17 ░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.f25d294061b9ae0416 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1f.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.fdc11787c524034f3b + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4c.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.55554baecf6f206a2dac.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -279,7 +130,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -295,14 +146,6 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertNoMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true), - compose(assertCssContent, trim)` - .some-class-name{single-quoted:url("http://google.com");double-quoted:url("http://google.com");unquoted: - url(http://google.com);query:url(http://google.com?query);hash:url(http://google.com#hash)} - .another-class-name{display:block} - ` - ), onlyMeta('meta.version.webpack >= 4')( assertCssSourceMapComment(false), compose(assertCssContent, trim)` @@ -316,152 +159,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertNoMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.a7ee1f272d8fc356ca116892c3d8779c.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("http://g - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ oogle.com");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 1:057 ░░░░░░░░░░░░double-quoted:url("http://google - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .com");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 1:096 ░░░░░░░unquoted:url(http://google.com);░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 1:128 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ :url(http://google.com?query);░░░░░░░░░░░░░░ - 6:3 ░░hash: url(http://google.com#hash);⏎ 1:163 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(http: - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ //google.com#hash)}░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:196 ░░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░ - 3:3 ░░display: block;⏎ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ay:block}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.a7ee1f272d8fc356ca - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 116892c3d8779c.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.b760c70324d4db882a68.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(http://go - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ogle.com)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 1:054 ░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 1:055 ░░░░░░░░░░double-quoted:url(http://google.co - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ m)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 1:091 ░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 1:092 ░░░unquoted:url(http://google.com)░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 1:123 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 1:124 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ (http://google.com/?query=)░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 1:160 ░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(http://google.com#hash);⏎ 1:161 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(http:// - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ google.com/#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:194 ░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:195 ░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displa - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ y:block░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:228 ░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.4337affd4cfe5a9af5a4.css'), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(http://go - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ogle.com)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('http://google.com');⏎ 1:054 ░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 1:055 ░░░░░░░░░░double-quoted:url(http://google.co - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ m)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("http://google.com");⏎ 1:091 ░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 1:092 ░░░unquoted:url(http://google.com)░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(http://google.com);⏎ 1:123 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 1:124 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ (http://google.com/?query=)░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(http://google.com?query);⏎ 1:160 ░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(http://google.com#hash);⏎ 1:161 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(http:// - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ google.com/#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:194 ░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:195 ░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displa - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ y:block░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:228 ░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.a7ee1f272d8fc356ca116892c3d8779c.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('http://google.com');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("http://g - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ oogle.com");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("http://google.com");⏎ 1:057 ░░░░░░░░░░░░double-quoted:url("http://google - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .com");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(http://google.com);⏎ 1:096 ░░░░░░░unquoted:url(http://google.com);░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(http://google.com?query);⏎ 1:128 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ :url(http://google.com?query);░░░░░░░░░░░░░░ - 6:03 ░░hash: url(http://google.com#hash)░░░░░░░░░ 1:163 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(http: - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ //google.com#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:195 ░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 1:196 ░░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ay:block░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 1:229 ░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.a7ee1f272d8fc356ca - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 116892c3d8779c.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.685bfabad316a14fef1c.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.530bf609132c202f1671.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -485,7 +189,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:194 ░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:195 ░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -495,11 +199,11 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.4337affd4cfe5a9af5a4.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -523,7 +227,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:194 ░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:195 ░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/immediate-asset.js b/test/cases/immediate-asset.js index c6eb93d..4275fd2 100644 --- a/test/cases/immediate-asset.js +++ b/test/cases/immediate-asset.js @@ -71,44 +71,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - unquoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - hash: url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } - - .another-class-name { - display: block; } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); @@ -126,147 +89,11 @@ module.exports = test( assertDebugMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.cbe6b627d5564bfb024575ba57f2cc95.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 02:3 ░░single-quoted: url("./feature/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 03:3 ░░double-quoted: url("./feature/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 04:3 ░░unquoted: url(./feature/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 05:3 ░░query: url(./feature/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(img.jpg#hash);⏎ 06:3 ░░hash: url(./feature/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:2 ░⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.cbe6b627d5564bfb024 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 575ba57f2cc95.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.65ffecabae82ac8bc9f0.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.cfac74b092c496795f84.css'), outdent )` - feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 02:3 ░░single-quoted: url("./feature/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 03:3 ░░double-quoted: url("./feature/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 04:3 ░░unquoted: url(./feature/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 05:3 ░░query: url(./feature/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(img.jpg#hash);⏎ 06:3 ░░hash: url(./feature/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.65ffecabae82ac8bc9f - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.fc6aefda8e150b895027.css'), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 02:3 ░░single-quoted: url("./feature/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 03:3 ░░double-quoted: url("./feature/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 04:3 ░░unquoted: url(./feature/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 05:3 ░░query: url(./feature/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(img.jpg#hash);⏎ 06:3 ░░hash: url(./feature/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.fc6aefda8e150b89502 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.7f3d3cdc7ef0fc04f043446f4781a68f.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('img.jpg')░░░░░░░░░░░░░ 2:03 ░░single-quoted: url("./feature/img.jpg");░░ - 2:32 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("img.jpg")░░░░░░░░░░░░░ 3:03 ░░double-quoted: url("./feature/img.jpg");░░ - 3:32 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 3:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(img.jpg)░░░░░░░░░░░░░░░░░░░░ 4:03 ░░unquoted: url(./feature/img.jpg);░░░░░░░░░ - 4:25 ░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 4:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(img.jpg?query)░░░░░░░░░░░░░░░░░ 5:03 ░░query: url(./feature/img.jpg?query);░░░░░░ - 5:28 ░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:39 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(img.jpg#hash)░░░░░░░░░░░░░░░░░░░ 6:03 ░░hash: url(./feature/img.jpg#hash);░░░░░░░░ - 6:26 ░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9:03 ░░display: block;░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:18 ░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.7f3d3cdc7ef0fc04f0 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 43446f4781a68f.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.84b09282b83fd7699c9c.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -286,7 +113,7 @@ module.exports = test( 6:26 ░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -294,15 +121,15 @@ module.exports = test( 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:17 ░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.84b09282b83fd7699c - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9c.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.cfac74b092c496795f + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 84.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.37fc9e8e1d28a3012b75.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -322,7 +149,7 @@ module.exports = test( 6:26 ░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -338,19 +165,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);double-quoted: - url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);query: - url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)} - .another-class-name{display:block} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{single-quoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);unquoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);hash:url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash)} @@ -361,152 +177,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.6f4a37a5c9d41f6beadedaf03bd443ef.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("./featur - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 1:057 ░░░░░░░░░░░░double-quoted:url("./feature/img - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 1:096 ░░░░░░░unquoted:url(./feature/img.jpg);░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 1:128 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ :url(./feature/img.jpg?query);░░░░░░░░░░░░░░ - 6:3 ░░hash: url(img.jpg#hash);⏎ 1:163 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(./fea - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ture/img.jpg#hash)}░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:196 ░░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░ - 3:3 ░░display: block;⏎ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ay:block}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.6f4a37a5c9d41f6bea - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ dedaf03bd443ef.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.da49a16ca6294e61cb18.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(feature/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 1:052 ░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 1:053 ░░░░░░░░double-quoted:url(feature/img.jpg)░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 1:087 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 1:088 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░u - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ nquoted:url(feature/img.jpg)░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 1:117 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 1:118 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(featu - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ re/img.jpg?query)░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 1:150 ░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(img.jpg#hash);⏎ 1:151 ░░░░░░░░░░░░░░░░░░hash:url(feature/img.jpg#h - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:202 ░░░░░░░░░░░░░░░░░░░░░░░░░display:block░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.3e146ef2f55c386aba8d.css'), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(feature/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('img.jpg');⏎ 1:052 ░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 1:053 ░░░░░░░░double-quoted:url(feature/img.jpg)░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("img.jpg");⏎ 1:087 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 1:088 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░u - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ nquoted:url(feature/img.jpg)░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(img.jpg);⏎ 1:117 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 1:118 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(featu - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ re/img.jpg?query)░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(img.jpg?query);⏎ 1:150 ░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(img.jpg#hash);⏎ 1:151 ░░░░░░░░░░░░░░░░░░hash:url(feature/img.jpg#h - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:202 ░░░░░░░░░░░░░░░░░░░░░░░░░display:block░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.6f4a37a5c9d41f6beadedaf03bd443ef.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("./featur - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("img.jpg");⏎ 1:057 ░░░░░░░░░░░░double-quoted:url("./feature/img - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(img.jpg);⏎ 1:096 ░░░░░░░unquoted:url(./feature/img.jpg);░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(img.jpg?query);⏎ 1:128 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ :url(./feature/img.jpg?query);░░░░░░░░░░░░░░ - 6:03 ░░hash: url(img.jpg#hash)░░░░░░░░░░░░░░░░░░░ 1:163 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(./fea - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ture/img.jpg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:26 ░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:195 ░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 1:196 ░░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ay:block░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 1:229 ░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.6f4a37a5c9d41f6bea - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ dedaf03bd443ef.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.f158aa080424b0af8962.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.ea5be2a1c06752259c7c.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -530,7 +207,7 @@ module.exports = test( 6:26 ░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -539,11 +216,11 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.3e146ef2f55c386aba8d.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -567,7 +244,7 @@ module.exports = test( 6:26 ░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/misconfiguration.js b/test/cases/misconfiguration.js index e1bd0f5..ce3731d 100644 --- a/test/cases/misconfiguration.js +++ b/test/cases/misconfiguration.js @@ -16,21 +16,14 @@ const { const {buildDevNormal, buildProdNormal} = require('./common/exec'); const {assertCssContent} = require('../lib/assert'); const { - onlyMeta, assertWebpackOk, assertWebpackNotOk, assertNoErrors, assertStdout, + assertWebpackOk, assertWebpackNotOk, assertNoErrors, assertStdout, assertSilence, assertMisconfigWarning, assertDeprecationWarning, } = require('../lib/assert'); -const assertContentDev = sequence( - compose(onlyMeta('meta.engine == "rework"'), assertCssContent, outdent)` - .some-class-name { - display: none; - } - `, - compose(onlyMeta('meta.engine == "postcss"'), assertCssContent, outdent)` - .some-class-name { - display: none; } - ` -); +const assertContentDev = compose(assertCssContent, outdent)` + .some-class-name { + display: none; } + `; const assertContentProd = compose(assertCssContent, trim)` .some-class-name{display:none} diff --git a/test/cases/module-relative-asset.js b/test/cases/module-relative-asset.js index eeb94af..9ed3336 100644 --- a/test/cases/module-relative-asset.js +++ b/test/cases/module-relative-asset.js @@ -65,44 +65,7 @@ module.exports = test( assertNoErrors, assertNoMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - unquoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - hash: url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } - - .another-class-name { - display: block; } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); @@ -120,147 +83,11 @@ module.exports = test( assertNoMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.5bb7c129ee3108876e852909ee3880ba.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 02:3 ░░single-quoted: url("~images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 03:3 ░░double-quoted: url("~images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 04:3 ░░unquoted: url(~images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 05:3 ░░query: url(~images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(~images/img.jpg#hash);⏎ 06:3 ░░hash: url(~images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:2 ░⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.5bb7c129ee3108876e8 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 52909ee3880ba.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.35d38938a5c66374d60e.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.b291289e488c675f7177.css'), outdent )` - feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 02:3 ░░single-quoted: url("~images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 03:3 ░░double-quoted: url("~images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 04:3 ░░unquoted: url(~images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 05:3 ░░query: url(~images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(~images/img.jpg#hash);⏎ 06:3 ░░hash: url(~images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.35d38938a5c66374d60 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ e.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.dd21022e7d0318fcd62c.css'), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 02:3 ░░single-quoted: url("~images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 03:3 ░░double-quoted: url("~images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 04:3 ░░unquoted: url(~images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 05:3 ░░query: url(~images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(~images/img.jpg#hash);⏎ 06:3 ░░hash: url(~images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.dd21022e7d0318fcd62 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ c.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.625f6e2060afe29b4d331b9d1915c4a7.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('~images/img.jpg')░░░░░ 2:03 ░░single-quoted: url("~images/img.jpg");░░░░ - 2:40 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:41 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("~images/img.jpg")░░░░░ 3:03 ░░double-quoted: url("~images/img.jpg");░░░░ - 3:40 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 3:41 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(~images/img.jpg)░░░░░░░░░░░░ 4:03 ░░unquoted: url(~images/img.jpg);░░░░░░░░░░░ - 4:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 4:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(~images/img.jpg?query)░░░░░░░░░ 5:03 ░░query: url(~images/img.jpg?query);░░░░░░░░ - 5:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(~images/img.jpg#hash)░░░░░░░░░░░ 6:03 ░░hash: url(~images/img.jpg#hash);░░░░░░░░░░ - 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9:03 ░░display: block;░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:18 ░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.625f6e2060afe29b4d - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 331b9d1915c4a7.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.65beeb84e113d8dc332b.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -280,7 +107,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -288,15 +115,15 @@ module.exports = test( 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:17 ░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.65beeb84e113d8dc33 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2b.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.b291289e488c675f71 + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 77.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.55a24b342c08f60295d4.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -316,7 +143,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -332,19 +159,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertNoMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);double-quoted: - url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);query: - url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)} - .another-class-name{display:block} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{single-quoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);unquoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);hash:url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash)} @@ -355,150 +171,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertNoMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.963b61bf92559efa3d9645ef55b87221.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("~images/ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 1:055 ░░░░░░░░░░double-quoted:url("~images/img.jpg - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 1:092 ░░░unquoted:url(~images/img.jpg);░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 1:122 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(~ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ images/img.jpg?query);░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(~images/img.jpg#hash);⏎ 1:155 ░░░░░░░░░░░░░░░░░░░░░░hash:url(~images/img.j - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ pg#hash)}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:186 ░░░░░░░░░.another-class-name{░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:206 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:block}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.963b61bf92559efa3d - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9645ef55b87221.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.6fb02fd46629be7113e3.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(~images/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 1:052 ░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 1:053 ░░░░░░░░double-quoted:url(~images/img.jpg)░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 1:087 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 1:088 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░u - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ nquoted:url(~images/img.jpg)░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 1:117 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 1:118 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(~imag - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ es/img.jpg?query)░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 1:150 ░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(~images/img.jpg#hash);⏎ 1:151 ░░░░░░░░░░░░░░░░░░hash:url(~images/img.jpg#h - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:202 ░░░░░░░░░░░░░░░░░░░░░░░░░display:block░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.7eed15f666debb39092e.css'), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(~images/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('~images/img.jpg');⏎ 1:052 ░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 1:053 ░░░░░░░░double-quoted:url(~images/img.jpg)░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("~images/img.jpg");⏎ 1:087 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 1:088 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░u - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ nquoted:url(~images/img.jpg)░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(~images/img.jpg);⏎ 1:117 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 1:118 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(~imag - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ es/img.jpg?query)░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(~images/img.jpg?query);⏎ 1:150 ░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(~images/img.jpg#hash);⏎ 1:151 ░░░░░░░░░░░░░░░░░░hash:url(~images/img.jpg#h - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:202 ░░░░░░░░░░░░░░░░░░░░░░░░░display:block░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.963b61bf92559efa3d9645ef55b87221.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('~images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("~images/ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("~images/img.jpg");⏎ 1:055 ░░░░░░░░░░double-quoted:url("~images/img.jpg - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(~images/img.jpg);⏎ 1:092 ░░░unquoted:url(~images/img.jpg);░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(~images/img.jpg?query);⏎ 1:122 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(~ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ images/img.jpg?query);░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(~images/img.jpg#hash)░░░░░░░░░░░ 1:155 ░░░░░░░░░░░░░░░░░░░░░░hash:url(~images/img.j - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ pg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:185 ░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 1:186 ░░░░░░░░░.another-class-name{░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:206 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:block░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 1:219 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.963b61bf92559efa3d - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9645ef55b87221.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.6156b39780effbf162c4.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.24285d53eb28038967b0.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -522,7 +201,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -531,11 +210,11 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.7eed15f666debb39092e.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -559,7 +238,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:181 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:182 ░░░░░.another-class-name{░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/nested-import-mixed-quotes.js b/test/cases/nested-import-mixed-quotes.js index a801b01..5b3dd51 100644 --- a/test/cases/nested-import-mixed-quotes.js +++ b/test/cases/nested-import-mixed-quotes.js @@ -52,12 +52,7 @@ module.exports = test( assertNoErrors, assertNoMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name .another-class-name { - background-image: url("data:image/svg+xml;charset=utf8,${iconSvgXml}"); - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name .another-class-name { background-image: url("data:image/svg+xml;charset=utf8,${iconSvgXml}"); } ` @@ -68,119 +63,17 @@ module.exports = test( assertNoMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.22c8a53270be8db37dbf39be1932bad7.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:1 .some-class-name .another-class-name {⏎ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.22c8a53270be8db37db - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ f39be1932bad7.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 2:3 ░░background-image: url("data:image/svg+xml;c 2:3 ░░background-image: url("data:image/svg+xml;c - harset=utf8,%3Csvg viewBox='0 0 30 30' xmlns= harset=utf8,%3Csvg viewBox='0 0 30 30' xmlns= - 'http://www.w3.org/2000/svg'%3E%3Cpath stroke 'http://www.w3.org/2000/svg'%3E%3Cpath stroke - ='red' stroke-width='2' stroke-linecap='round ='red' stroke-width='2' stroke-linecap='round - ' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 ' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 - 23h22'/%3E%3C/svg%3E");⏎ 23h22'/%3E%3C/svg%3E");⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.074afcb0a6aa63ad94a9.css', {sourceRoot: 'src'}), - outdent - )` - index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:1 .some-class-name .another-class-name {⏎ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:1 }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.074afcb0a6aa63ad94a - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - feature/index.scss - --------------------------------------------------------------------------------------------------- - 2:3 ░░background-image: url("data:image/svg+xml;c 2:3 ░░background-image: url("data:image/svg+xml;c - harset=utf8,%3Csvg viewBox='0 0 30 30' xmlns= harset=utf8,%3Csvg viewBox='0 0 30 30' xmlns= - 'http://www.w3.org/2000/svg'%3E%3Cpath stroke 'http://www.w3.org/2000/svg'%3E%3Cpath stroke - ='red' stroke-width='2' stroke-linecap='round ='red' stroke-width='2' stroke-linecap='round - ' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 ' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 - 23h22'/%3E%3C/svg%3E");⏎ 23h22'/%3E%3C/svg%3E");⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.372dead7b35014067d7a.css'), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:1 .some-class-name .another-class-name {⏎ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:1 }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.372dead7b35014067d7 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ a.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 2:3 ░░background-image: url("data:image/svg+xml;c 2:3 ░░background-image: url("data:image/svg+xml;c - harset=utf8,%3Csvg viewBox='0 0 30 30' xmlns= harset=utf8,%3Csvg viewBox='0 0 30 30' xmlns= - 'http://www.w3.org/2000/svg'%3E%3Cpath stroke 'http://www.w3.org/2000/svg'%3E%3Cpath stroke - ='red' stroke-width='2' stroke-linecap='round ='red' stroke-width='2' stroke-linecap='round - ' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 ' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 - 23h22'/%3E%3C/svg%3E");⏎ 23h22'/%3E%3C/svg%3E");⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.3781871968de1c85a9e8a6ead4b634e9.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 1:001 .some-class-name {⏎ 1:001 .some-class-name .another-class-name {⏎ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 2:003 ░░background-image: url("data:image/svg+xml 2:003 ░░background-image: url("data:image/svg+xml - ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm - lns='http://www.w3.org/2000/svg'%3E%3Cpath lns='http://www.w3.org/2000/svg'%3E%3Cpath - stroke='red' stroke-width='2' stroke-lineca stroke='red' stroke-width='2' stroke-lineca - p='round' stroke-miterlimit='10' d='M4 7h22 p='round' stroke-miterlimit='10' d='M4 7h22 - M4 15h22M4 23h22'/%3E%3C/svg%3E")░░░░░░░░░░ M4 15h22M4 23h22'/%3E%3C/svg%3E");░░░░░░░░░ - 2:249 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:250 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.3781871968de1c85a - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9e8a6ead4b634e9.css.map*/░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.043905a16f1a10c6c6c7.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.a69e0714fec5375da4d0.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:001 .some-class-name {⏎ 1:001 .some-class-name .another-class-name {⏎ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 2:003 ░░background-image: url("data:image/svg+xml 2:003 ░░background-image: url("data:image/svg+xml ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm @@ -191,21 +84,21 @@ module.exports = test( 2:249 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:249 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.043905a16f1a10c6c - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6c7.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.a69e0714fec5375da + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4d0.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.0de225be0d103507fb2e.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:001 .some-class-name {⏎ 1:001 .some-class-name .another-class-name {⏎ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 2:003 ░░background-image: url("data:image/svg+xml 2:003 ░░background-image: url("data:image/svg+xml ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm @@ -224,12 +117,7 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertNoMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), + assertCssSourceMapComment(false), compose(assertCssContent, trim)` .some-class-name .another-class-name{background-image:url("data:image/svg+xml;charset=utf8,${iconSvgXml}")} ` @@ -238,113 +126,19 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertNoMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.2c95c3ff72e4a390539d580c0a9d4ae2.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:01 .some-class-name .another-class-name{░░░░░░░░ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 2:3 ░░background-image: url("data:image/svg+xml;c 1:38 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░backgrou - harset=utf8,%3Csvg viewBox='0 0 30 30' xmlns= nd-image:url("data:image/svg+xml;charset=utf8 - 'http://www.w3.org/2000/svg'%3E%3Cpath stroke ,%3Csvg viewBox='0 0 30 30' xmlns='http://www - ='red' stroke-width='2' stroke-linecap='round .w3.org/2000/svg'%3E%3Cpath stroke='red' stro - ' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 ke-width='2' stroke-linecap='round' stroke-mi - 23h22'/%3E%3C/svg%3E");⏎ terlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ %3C/svg%3E")}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.2c95c3ff72e4a390539 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ d580c0a9d4ae2.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.9ebfb43b7c1245edf247.css', {sourceRoot: 'src'}), - outdent - )` - index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name .another-class-name{░░░░░░░ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:1 }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:283 ░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░ - - feature/index.scss - --------------------------------------------------------------------------------------------------- - 2:3 ░░background-image: url("data:image/svg+xml; 1:038 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░backgro - charset=utf8,%3Csvg viewBox='0 0 30 30' xmln und-image:url("data:image/svg+xml;charset=ut - s='http://www.w3.org/2000/svg'%3E%3Cpath str f8,%3Csvg viewBox='0 0 30 30' xmlns='http:// - oke='red' stroke-width='2' stroke-linecap='r www.w3.org/2000/svg'%3E%3Cpath stroke='red' - ound' stroke-miterlimit='10' d='M4 7h22M4 15 stroke-width='2' stroke-linecap='round' stro - h22M4 23h22'/%3E%3C/svg%3E");⏎ ke-miterlimit='10' d='M4 7h22M4 15h22M4 23h2 - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2'/%3E%3C/svg%3E")░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.b720d3274f34b01a782e.css'), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name .another-class-name{░░░░░░░ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:1 }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:283 ░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 2:3 ░░background-image: url("data:image/svg+xml; 1:038 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░backgro - charset=utf8,%3Csvg viewBox='0 0 30 30' xmln und-image:url("data:image/svg+xml;charset=ut - s='http://www.w3.org/2000/svg'%3E%3Cpath str f8,%3Csvg viewBox='0 0 30 30' xmlns='http:// - oke='red' stroke-width='2' stroke-linecap='r www.w3.org/2000/svg'%3E%3Cpath stroke='red' - ound' stroke-miterlimit='10' d='M4 7h22M4 15 stroke-width='2' stroke-linecap='round' stro - h22M4 23h22'/%3E%3C/svg%3E");⏎ ke-miterlimit='10' d='M4 7h22M4 15h22M4 23h2 - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2'/%3E%3C/svg%3E")░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.2c95c3ff72e4a390539d580c0a9d4ae2.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 1:001 .some-class-name {⏎ 1:001 .some-class-name .another-class-name{░░░░░░ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 2:003 ░░background-image: url("data:image/svg+xml 1:038 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░backgr - ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm ound-image:url("data:image/svg+xml;charset= - lns='http://www.w3.org/2000/svg'%3E%3Cpath utf8,%3Csvg viewBox='0 0 30 30' xmlns='http - stroke='red' stroke-width='2' stroke-lineca ://www.w3.org/2000/svg'%3E%3Cpath stroke='r - p='round' stroke-miterlimit='10' d='M4 7h22 ed' stroke-width='2' stroke-linecap='round' - M4 15h22M4 23h22'/%3E%3C/svg%3E")░░░░░░░░░░ stroke-miterlimit='10' d='M4 7h22M4 15h22M - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4 23h22'/%3E%3C/svg%3E")░░░░░░░░░░░░░░░░░░░ - 2:249 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:283 ░░░░░░░░░░░░░░░░░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.2c95c3ff72e4a3905 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 39d580c0a9d4ae2.css.map*/░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.c91f9447fb9b4556134b.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.e412140a3a03ab5a8aa0.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:001 .some-class-name {⏎ 1:001 .some-class-name .another-class-name{░░░░░░ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 2:003 ░░background-image: url("data:image/svg+xml 1:038 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░backgr ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm ound-image:url("data:image/svg+xml;charset= @@ -357,17 +151,17 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.b720d3274f34b01a782e.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:001 .some-class-name {⏎ 1:001 .some-class-name .another-class-name{░░░░░░ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 2:003 ░░background-image: url("data:image/svg+xml 1:038 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░backgr ;charset=utf8,%3Csvg viewBox='0 0 30 30' xm ound-image:url("data:image/svg+xml;charset= diff --git a/test/cases/orphan-carriage-return.postcss.js b/test/cases/orphan-carriage-return.js similarity index 66% rename from test/cases/orphan-carriage-return.postcss.js rename to test/cases/orphan-carriage-return.js index 619d343..7dcaa87 100644 --- a/test/cases/orphan-carriage-return.postcss.js +++ b/test/cases/orphan-carriage-return.js @@ -73,14 +73,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - font-size: calc( ( 1px )); } - - .another-class-name { - background-image: url(d68e763c825dc0e388929ae1b375ce18.jpg); } - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { font-size: calc( ( 1px )); } @@ -93,34 +86,12 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.093ee3cbdee124bd5a8f7c7d42686778.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░font-size: calc(⏎ 2:03 ░░font-size: calc( ( 1px ));░░░░░░░░░░░░░░░ - (⇦1px⇦)⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - )░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:04 ░░░;⏎ 2:30 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 7:01 .another-class-name {⏎ 4:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 8:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 5:03 ░░background-image: url("./img.jpg");░░░░░░░ - 8:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:38 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.093ee3cbdee124bd5a - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8f7c7d42686778.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.6e4443dd51c28c07ae5c.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.35c8d448fb7a58a8c1f2.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -135,15 +106,15 @@ module.exports = test( 8:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.6e4443dd51c28c07ae - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5c.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.35c8d448fb7a58a8c1 + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ f2.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.924a084d68ea78d1c417.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -166,17 +137,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{font-size:1px}.another-class-name{background-image: - url(d68e763c825dc0e388929ae1b375ce18.jpg)} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{font-size:1px}.another-class-name{background-image: url(9eb57a84abbf8abc636d0faa71f9a800.jpg)} ` @@ -185,41 +147,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.c5f2af008d44d3422725753ad64da0cb.css', {sanitiseSources: true}), - outdent - )` - /src/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░font-size: calc(⏎ 1:18 ░░░░░░░░░░░░░░░░░font-size:1px░░░░░░░░░░░░░░ - (⇦1px⇦)⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - )░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:04 ░░░;⏎ 1:31 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:02 ░⏎ 1:32 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another-clas - ⏎ s-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 8:03 ░░background-image: url('img.jpg')░░░░░░░░░░ 1:52 ░░░░░░░background-image:url("./img.jpg")░░░░ - 8:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:85 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.c5f2af008d44d34227 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 25753ad64da0cb.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.86ba9bacab12ac06aa0b.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.a23d4b0b74e7b2ab0779.css'), outdent )` - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -241,7 +175,7 @@ module.exports = test( assertCssAndSourceMapContent('main.e58938fc5e4381ace0b9.css'), outdent )` - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/root-relative-asset.js b/test/cases/root-relative-asset.js index f44df06..f9bca37 100644 --- a/test/cases/root-relative-asset.js +++ b/test/cases/root-relative-asset.js @@ -52,22 +52,7 @@ module.exports = test( ENTRY: join('src', 'index.scss') }), testWithLabel('asset-missing')( - // root-relative urls are not processed - testRoot(false)( - all(buildDevNormal, buildProdNormal)( - onlyMeta('meta.version.webpack < 5')( - assertWebpackOk - ), - onlyMeta('meta.version.webpack >= 5')( - assertWebpackNotOk - ) - ), - all(buildDevNoUrl, buildProdNoUrl)( - assertWebpackOk - ) - ), - // root-relative urls are processed - testRoot(true)( + all(testRoot(false), testRoot(true))( all(buildDevNormal, buildProdNormal)( assertWebpackNotOk, assertAssetError @@ -90,44 +75,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - unquoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - hash: url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } - - .another-class-name { - display: block; } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); @@ -145,147 +93,11 @@ module.exports = test( assertDebugMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.a179b04590885bbf990aa89922474d53.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 02:3 ░░single-quoted: url("../images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 03:3 ░░double-quoted: url("../images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 04:3 ░░unquoted: url(../images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 05:3 ░░query: url(../images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(/images/img.jpg#hash);⏎ 06:3 ░░hash: url(../images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:2 ░⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.a179b04590885bbf990 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ aa89922474d53.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.54b0365e982ff2061362.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 02:3 ░░single-quoted: url("../images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 03:3 ░░double-quoted: url("../images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 04:3 ░░unquoted: url(../images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 05:3 ░░query: url(../images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(/images/img.jpg#hash);⏎ 06:3 ░░hash: url(../images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.54b0365e982ff206136 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.86b6a10512f44483a9ef.css'), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 02:3 ░░single-quoted: url("../images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 03:3 ░░double-quoted: url("../images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 04:3 ░░unquoted: url(../images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 05:3 ░░query: url(../images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(/images/img.jpg#hash);⏎ 06:3 ░░hash: url(../images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.86b6a10512f44483a9e - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ f.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.4574dcc1af6189fe3463fbac2bc0bf8e.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('/images/img.jpg')░░░░░ 2:03 ░░single-quoted: url("../images/img.jpg");░░ - 2:40 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("/images/img.jpg")░░░░░ 3:03 ░░double-quoted: url("../images/img.jpg");░░ - 3:40 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 3:43 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(/images/img.jpg)░░░░░░░░░░░░ 4:03 ░░unquoted: url(../images/img.jpg);░░░░░░░░░ - 4:33 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 4:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(/images/img.jpg?query)░░░░░░░░░ 5:03 ░░query: url(../images/img.jpg?query);░░░░░░ - 5:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:39 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(/images/img.jpg#hash)░░░░░░░░░░░ 6:03 ░░hash: url(../images/img.jpg#hash);░░░░░░░░ - 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9:03 ░░display: block;░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:18 ░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.4574dcc1af6189fe34 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 63fbac2bc0bf8e.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.0e7db4d90a70d13fd992.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.15cdc6770015605aca94.css'), outdent )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -305,7 +117,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -313,15 +125,15 @@ module.exports = test( 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:17 ░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.0e7db4d90a70d13fd9 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 92.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.15cdc6770015605aca + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 94.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.d533b8a2f250d611b119.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -341,7 +153,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -357,19 +169,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);double-quoted: - url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);query: - url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)} - .another-class-name{display:block} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{single-quoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);unquoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);hash:url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash)} @@ -380,152 +181,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.b9fc2983490593a91246c92a19004337.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("../image - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ s/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 1:057 ░░░░░░░░░░░░double-quoted:url("../images/img - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 1:096 ░░░░░░░unquoted:url(../images/img.jpg);░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 1:128 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ :url(../images/img.jpg?query);░░░░░░░░░░░░░░ - 6:3 ░░hash: url(/images/img.jpg#hash);⏎ 1:163 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(../im - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ages/img.jpg#hash)}░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:196 ░░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░ - 3:3 ░░display: block;⏎ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ay:block}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.b9fc2983490593a912 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 46c92a19004337.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.94bf8e862e12a5a2077b.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(../images - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 1:054 ░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 1:055 ░░░░░░░░░░double-quoted:url(../images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 1:091 ░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 1:092 ░░░unquoted:url(../images/img.jpg)░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 1:123 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 1:124 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ (../images/img.jpg?query)░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 1:158 ░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(/images/img.jpg#hash);⏎ 1:159 ░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(../images - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /img.jpg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:191 ░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:192 ░░░░░░░░░░░░░░░.another-class-name{░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:212 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:b - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ lock░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:225 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.b7fbfbe03a106de8b226.css'), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(../images - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /img.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('/images/img.jpg');⏎ 1:054 ░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 1:055 ░░░░░░░░░░double-quoted:url(../images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("/images/img.jpg");⏎ 1:091 ░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 1:092 ░░░unquoted:url(../images/img.jpg)░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(/images/img.jpg);⏎ 1:123 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 1:124 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ (../images/img.jpg?query)░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(/images/img.jpg?query);⏎ 1:158 ░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(/images/img.jpg#hash);⏎ 1:159 ░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(../images - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /img.jpg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:191 ░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:1 .another-class-name {⏎ 1:192 ░░░░░░░░░░░░░░░.another-class-name{░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:212 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:b - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ lock░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:225 ░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.b9fc2983490593a91246c92a19004337.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('/images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("../image - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ s/img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("/images/img.jpg");⏎ 1:057 ░░░░░░░░░░░░double-quoted:url("../images/img - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ .jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(/images/img.jpg);⏎ 1:096 ░░░░░░░unquoted:url(../images/img.jpg);░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(/images/img.jpg?query);⏎ 1:128 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ :url(../images/img.jpg?query);░░░░░░░░░░░░░░ - 6:03 ░░hash: url(/images/img.jpg#hash)░░░░░░░░░░░ 1:163 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(../im - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ages/img.jpg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:195 ░░░░░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 1:196 ░░░░░░░░░░░░░░░░░░░.another-class-name{░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:216 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░displ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ay:block░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 1:229 ░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.b9fc2983490593a912 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 46c92a19004337.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.06d3c235ca5ec72703e6.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.cbae83e074020d68d621.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -549,7 +211,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:191 ░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:192 ░░░░░░░░░░░░░░░.another-class-name{░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -559,11 +221,11 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.b7fbfbe03a106de8b226.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -587,7 +249,7 @@ module.exports = test( 6:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:191 ░░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:192 ░░░░░░░░░░░░░░░.another-class-name{░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/selector-in-directive.postcss.js b/test/cases/selector-in-directive.js similarity index 68% rename from test/cases/selector-in-directive.postcss.js rename to test/cases/selector-in-directive.js index 4acedd1..dbb4ea3 100644 --- a/test/cases/selector-in-directive.postcss.js +++ b/test/cases/selector-in-directive.js @@ -90,27 +90,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, outdent)` - @font-face { - .some-class-name { - src: ${ - trim` - url(d68e763c825dc0e388929ae1b375ce18.eot#iefix) format("embedded-opentype") - , url(d68e763c825dc0e388929ae1b375ce18.ttf) format("truetype") - , url(d68e763c825dc0e388929ae1b375ce18.woff) format(woff) - , url(d68e763c825dc0e388929ae1b375ce18.svg#iefix) format(svg) - ` - }; } } - - @media only screen { - .another-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } } - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` @font-face { .some-class-name { src: ${ @@ -136,62 +116,12 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.04030b110245cc0bf848c5409a4e925c.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 01:01 @font-face {⏎ 01:001 @font-face {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 02:03 ░░src: url('../fonts/font.eot?v=1.0#iefix') 03:005 ░░░░src: url("./fonts/font.eot?v=1.0#iefix" - format('embedded-opentype'),⏎ ) format("embedded-opentype"), url("./fonts - url("../fonts/font.ttf?v=1.0") forma /font.ttf?v=1.0") format("truetype"), url(. - t("truetype"),⏎ /fonts/font.woff?v=1.0) format(woff), url(. - url(../fonts/font.woff?v=1.0) format /fonts/font.svg#iefix) format(svg);░░░░░░░░ - (woff),⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - url(../fonts/font.svg#iefix) format( ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - svg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 05:48 ░░░░;⏎ 03:208 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ } }░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 01:01 .some-class-name { ⏎ 02:003 ░░.some-class-name {⏎ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 03:02 ░⏎ 03:212 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - 04:01 @media only screen {⏎ 05:001 @media only screen {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 05:03 ░░.another-class-name {⏎ 06:003 ░░.another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 06:05 ░░░░single-quoted: url('images/img.jpg')░░░ 07:005 ░░░░single-quoted: url("./images/img.jpg"); - 06:41 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 07:044 ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 07:05 ░░░░double-quoted: url("images/img.jpg")░░░ 08:005 ░░░░double-quoted: url("./images/img.jpg"); - 07:41 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 08:044 ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 08:05 ░░░░unquoted: url(images/img.jpg)░░░░░░░░░░ 09:005 ░░░░unquoted: url(./images/img.jpg);░░░░░░░ - 08:34 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 09:037 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 09:05 ░░░░query: url(images/img.jpg?query)░░░░░░░ 10:005 ░░░░query: url(./images/img.jpg?query);░░░░ - 09:37 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 10:040 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 10:05 ░░░░hash: url(images/img.jpg#hash)░░░░░░░░░ 11:005 ░░░░hash: url(./images/img.jpg#hash);░░░░░░ - 10:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 11:038 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ } }░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 11:04 ░░░⏎ 11:042 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.04030b110245cc0bf - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 848c5409a4e925c.css.map*/░░░░░░░░░░░░░░░░░░ - `, compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.844d34240f4c1ad0b8eb.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.206d76989e078b87f572.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 01:01 @font-face {⏎ 01:001 @font-face {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -206,7 +136,7 @@ module.exports = test( 05:48 ░░░░;⏎ 03:207 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; } ░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 01:01 .some-class-name { ⏎ 02:003 ░░.some-class-name {⏎ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -236,15 +166,15 @@ module.exports = test( 11:04 ░░░⏎ 11:041 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.844d34240f4c1ad0b - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8eb.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.206d76989e078b87f + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 572.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.f0dfbe5f728d06bc202b.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 01:01 @font-face {⏎ 01:001 @font-face {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -259,7 +189,7 @@ module.exports = test( 05:48 ░░░░;⏎ 03:207 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; } ░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 01:01 .some-class-name { ⏎ 02:003 ░░.some-class-name {⏎ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -297,22 +227,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - @font-face{.some-class-name{src:url(d68e763c825dc0e388929ae1b375ce18.eot#iefix) format("embedded-opentype"), - url(d68e763c825dc0e388929ae1b375ce18.ttf) format("truetype"), - url(d68e763c825dc0e388929ae1b375ce18.woff) format(woff), - url(d68e763c825dc0e388929ae1b375ce18.svg#iefix) format(svg)}} - @media only screen{.another-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg); - query:url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)}} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` @font-face{.some-class-name{src:url(9eb57a84abbf8abc636d0faa71f9a800.eot#iefix) format("embedded-opentype"), url(9eb57a84abbf8abc636d0faa71f9a800.ttf) format("truetype"), url(9eb57a84abbf8abc636d0faa71f9a800.woff) format(woff), @@ -326,64 +242,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.c198cdf109d5e2d9a966831381afad9f.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 01:01 @font-face {⏎ 1:001 @font-face{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 02:03 ░░src: url('../fonts/font.eot?v=1.0#iefix') 1:029 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░src:url("./font - format('embedded-opentype'),⏎ s/font.eot?v=1.0#iefix") format("embedded-o - url("../fonts/font.ttf?v=1.0") forma pentype"),url("./fonts/font.ttf?v=1.0") for - t("truetype"),⏎ mat("truetype"),url(./fonts/font.woff?v=1.0 - url(../fonts/font.woff?v=1.0) format ) format(woff),url(./fonts/font.svg#iefix) - (woff),⏎ format(svg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - url(../fonts/font.svg#iefix) format( ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - svg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 05:48 ░░░░;⏎ 1:227 ░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 01:01 .some-class-name { ⏎ 1:012 ░░░░░░░░░░░.some-class-name{░░░░░░░░░░░░░░░ - @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 03:02 ░⏎ 1:228 ░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 04:01 @media only screen {⏎ 1:229 ░░░░░░░░░░░░░@media only screen{░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 05:03 ░░.another-class-name {⏎ 1:248 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░.another-cl - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ass-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 06:05 ░░░░single-quoted: url('images/img.jpg');⏎ 1:268 ░░░░░░░░░single-quoted:url("./images/img.jp - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 07:05 ░░░░double-quoted: url("images/img.jpg");⏎ 1:306 ░░░░double-quoted:url("./images/img.jpg");░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 08:05 ░░░░unquoted: url(images/img.jpg);⏎ 1:344 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░u - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ nquoted:url(./images/img.jpg);░░░░░░░░░░░░░ - 09:05 ░░░░query: url(images/img.jpg?query);⏎ 1:375 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(./i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mages/img.jpg?query);░░░░░░░░░░░░░░░░░░░░░░ - 10:05 ░░░░hash: url(images/img.jpg#hash)░░░░░░░░░ 1:409 ░░░░░░░░░░░░░░░░░░░░░hash:url(./images/img. - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ jpg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 10:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:440 ░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 11:04 ░░░⏎ 1:441 ░░░░░░░░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.c198cdf109d5e2d9a - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 966831381afad9f.css.map*/░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( onlyMeta('meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.452c075bf6e432b8fc1c.css', {sourceRoot: 'src'}), + assertCssAndSourceMapContent('main.afa2eb6cb9f65e7e1a7b.css'), outdent )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 01:01 @font-face {⏎ 1:001 @font-face{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -398,7 +263,7 @@ module.exports = test( 05:48 ░░░░;⏎ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░} }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 01:01 .some-class-name { ⏎ 1:012 ░░░░░░░░░░░.some-class-name{░░░░░░░░░░░░░░░ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -435,7 +300,7 @@ module.exports = test( assertCssAndSourceMapContent('main.9a84e059d13225129139.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 01:01 @font-face {⏎ 1:001 @font-face{░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -450,7 +315,7 @@ module.exports = test( 05:48 ░░░░;⏎ 1:215 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░} }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 01:01 .some-class-name { ⏎ 1:012 ░░░░░░░░░░░.some-class-name{░░░░░░░░░░░░░░░ @import "feature/index.scss";⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/cases/shallow-asset.js b/test/cases/shallow-asset.js index 52b5f88..7f1c6ef 100644 --- a/test/cases/shallow-asset.js +++ b/test/cases/shallow-asset.js @@ -71,44 +71,7 @@ module.exports = test( assertNoErrors, assertDebugMessages, assertCssSourceMapComment(true), - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - unquoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); - hash: url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash); - } - - .another-class-name { - display: block; - } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack < 5'), assertCssContent, outdent)` - .some-class-name { - single-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - double-quoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - unquoted: url(d68e763c825dc0e388929ae1b375ce18.jpg); - query: url(d68e763c825dc0e388929ae1b375ce18.jpg); - hash: url(d68e763c825dc0e388929ae1b375ce18.jpg#hash); } - - .another-class-name { - display: block; } - `, - compose(onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), assertCssContent, outdent)` + compose(assertCssContent, outdent)` .some-class-name { single-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg); @@ -126,147 +89,11 @@ module.exports = test( assertDebugMessages, assertCssSourceMapComment(true), compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.32c4504d8c32b54ccc8dbcb267e7d346.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 02:3 ░░single-quoted: url("./images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 03:3 ░░double-quoted: url("./images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 04:3 ░░unquoted: url(./images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 05:3 ░░query: url(./images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../images/img.jpg#hash);⏎ 06:3 ░░hash: url(./images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:2 ░⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:2 ░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.32c4504d8c32b54ccc8 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ dbcb267e7d346.css.map*/░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.396809da2257de61bd34.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.b67c7fa8898401fabb69.css'), outdent )` - feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 02:3 ░░single-quoted: url("./images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 03:3 ░░double-quoted: url("./images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 04:3 ░░unquoted: url(./images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 05:3 ░░query: url(./images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../images/img.jpg#hash);⏎ 06:3 ░░hash: url(./images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.396809da2257de61bd3 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.2b85995d7b98b1983408.css'), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 01:1 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 02:3 ░░single-quoted: url("./images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 03:3 ░░double-quoted: url("./images/img.jpg");⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 04:3 ░░unquoted: url(./images/img.jpg);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 05:3 ░░query: url(./images/img.jpg?query);⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../images/img.jpg#hash);⏎ 06:3 ░░hash: url(./images/img.jpg#hash);⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 07:1 }⏎ - 2:1 .another-class-name {⏎ 09:1 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 10:3 ░░display: block;⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11:1 }⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.2b85995d7b98b198340 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.c9ee633f834b27367f21f4acc50bc994.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('../images/img.jpg')░░░ 2:03 ░░single-quoted: url("./images/img.jpg");░░░ - 2:42 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 2:42 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("../images/img.jpg")░░░ 3:03 ░░double-quoted: url("./images/img.jpg");░░░ - 3:42 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 3:42 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(../images/img.jpg)░░░░░░░░░░ 4:03 ░░unquoted: url(./images/img.jpg);░░░░░░░░░░ - 4:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 4:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(../images/img.jpg?query)░░░░░░░ 5:03 ░░query: url(./images/img.jpg?query);░░░░░░░ - 5:38 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 5:38 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(../images/img.jpg#hash)░░░░░░░░░ 6:03 ░░hash: url(./images/img.jpg#hash);░░░░░░░░░ - 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9:03 ░░display: block;░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:18 ░░░░░░░░░░░░░░░░░ }⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.c9ee633f834b27367f - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 21f4acc50bc994.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.58a7ea10d6a0a517963d.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -286,7 +113,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -294,15 +121,15 @@ module.exports = test( 3:17 ░░░░░░░░░░░░░░░░;⏎ 9:17 ░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.58a7ea10d6a0a51796 - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3d.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.b67c7fa8898401fabb + ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 69.css.map*/░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.e33b0d45841261871eac.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss --------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:01 .some-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -322,7 +149,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 6:35 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░; }⏎ }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss --------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 8:01 .another-class-name {⏎ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -338,19 +165,8 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose(onlyMeta('meta.version.webpack < 5'), assertCssContent, trim)` - .some-class-name{single-quoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);double-quoted: - url(d68e763c825dc0e388929ae1b375ce18.jpg);unquoted:url(d68e763c825dc0e388929ae1b375ce18.jpg);query: - url(d68e763c825dc0e388929ae1b375ce18.jpg);hash:url(d68e763c825dc0e388929ae1b375ce18.jpg#hash)} - .another-class-name{display:block} - `, - compose(onlyMeta('meta.version.webpack >= 5'), assertCssContent, trim)` + assertCssSourceMapComment(false), + compose(assertCssContent, trim)` .some-class-name{single-quoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);double-quoted: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);unquoted:url(9eb57a84abbf8abc636d0faa71f9a800.jpg);query: url(9eb57a84abbf8abc636d0faa71f9a800.jpg);hash:url(9eb57a84abbf8abc636d0faa71f9a800.jpg#hash)} @@ -361,152 +177,13 @@ module.exports = test( assertWebpackOk, assertNoErrors, assertDebugMessages, - onlyMeta('meta.version.webpack < 4')( - assertCssSourceMapComment(true) - ), - onlyMeta('meta.version.webpack >= 4')( - assertCssSourceMapComment(false) - ), - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.9435e12abd638ce4ed1f9f3e54a2fb9a.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("./images - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 1:056 ░░░░░░░░░░░double-quoted:url("./images/img.j - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ pg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 1:094 ░░░░░unquoted:url(./images/img.jpg);░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 1:125 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:ur - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ l(./images/img.jpg?query);░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../images/img.jpg#hash);⏎ 1:159 ░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(./images/ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ img.jpg#hash)}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:191 ░░░░░░░░░░░░░░.another-class-name{░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:211 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:bl - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ock}⏎ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.9435e12abd638ce4ed - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1f9f3e54a2fb9a.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.26c25020cf3fb0dd68a8.css', {sourceRoot: 'src'}), - outdent - )` - feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(images/im - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 1:051 ░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 1:052 ░░░░░░░double-quoted:url(images/img.jpg)░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 1:085 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 1:086 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░unq - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ uoted:url(images/img.jpg)░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 1:114 ░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 1:115 ░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(images/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg?query)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 1:146 ░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../images/img.jpg#hash);⏎ 1:147 ░░░░░░░░░░░░░░hash:url(images/img.jpg#hash)░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:176 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░} - 2:1 .another-class-name {⏎ 1:177 .another-class-name{░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:197 ░░░░░░░░░░░░░░░░░░░░display:block░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:210 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "rework" && meta.version.webpack >= 5'), - assertCssAndSourceMapContent('main.1bcd5ac18d16cb1a7d4e.css'), - outdent - )` - /src/feature/index.scss - --------------------------------------------------------------------------------------------------- - 1:1 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url(images/im - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ g.jpg)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:3 ░░single-quoted: url('../images/img.jpg');⏎ 1:051 ░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 1:052 ░░░░░░░double-quoted:url(images/img.jpg)░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░double-quoted: url("../images/img.jpg");⏎ 1:085 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 1:086 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░unq - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ uoted:url(images/img.jpg)░░░░░░░░░░░░░░░░░░░ - 4:3 ░░unquoted: url(../images/img.jpg);⏎ 1:114 ░░░░░░░░░░░░░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 1:115 ░░░░░░░░░░░░░░░░░░░░░░░░░░query:url(images/i - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ mg.jpg?query)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:3 ░░query: url(../images/img.jpg?query);⏎ 1:146 ░░░░░░░░░░░░░;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:3 ░░hash: url(../images/img.jpg#hash);⏎ 1:147 ░░░░░░░░░░░░░░hash:url(images/img.jpg#hash)░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - --------------------------------------------------------------------------------------------------- - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:176 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░} - 2:1 .another-class-name {⏎ 1:177 .another-class-name{░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:3 ░░display: block;⏎ 1:197 ░░░░░░░░░░░░░░░░░░░░display:block░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:210 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░}░░░░░░░░░░ - `, - compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack < 4'), - assertCssAndSourceMapContent('main.9435e12abd638ce4ed1f9f3e54a2fb9a.css', {sanitiseSources: true}), - outdent - )` - /src/feature/index.scss - ---------------------------------------------------------------------------------------------------- - 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 2:03 ░░single-quoted: url('../images/img.jpg');⏎ 1:018 ░░░░░░░░░░░░░░░░░single-quoted:url("./images - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /img.jpg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░double-quoted: url("../images/img.jpg");⏎ 1:056 ░░░░░░░░░░░double-quoted:url("./images/img.j - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ pg");░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 4:03 ░░unquoted: url(../images/img.jpg);⏎ 1:094 ░░░░░unquoted:url(./images/img.jpg);░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 5:03 ░░query: url(../images/img.jpg?query);⏎ 1:125 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░query:ur - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ l(./images/img.jpg?query);░░░░░░░░░░░░░░░░░░ - 6:03 ░░hash: url(../images/img.jpg#hash)░░░░░░░░░ 1:159 ░░░░░░░░░░░░░░░░░░░░░░░░░░hash:url(./images/ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ img.jpg#hash)░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:190 ░░░░░░░░░░░░░}░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - - /src/index.scss - ---------------------------------------------------------------------------------------------------- - 2:01 .another-class-name {⏎ 1:191 ░░░░░░░░░░░░░░.another-class-name{░░░░░░░░░░ - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:03 ░░display: block░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1:211 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░display:bl - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ock░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - 3:17 ░░░░░░░░░░░░░░░░;⏎ 1:224 ░░░}⏎ - }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ /*# sourceMappingURL=main.9435e12abd638ce4ed - ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1f9f3e54a2fb9a.css.map*/░░░░░░░░░░░░░░░░░░░░ - `, + assertCssSourceMapComment(false), compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack == 4'), - assertCssAndSourceMapContent('main.d5db88dc83a3bbb17efa.css', {sourceRoot: 'src'}), + onlyMeta('meta.version.webpack == 4'), + assertCssAndSourceMapContent('main.ac26e08780c55cc53f88.css'), outdent )` - feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -529,7 +206,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:176 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░} }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:177 .another-class-name{░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -538,11 +215,11 @@ module.exports = test( }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ `, compose( - onlyMeta('meta.engine == "postcss" && meta.version.webpack >= 5'), + onlyMeta('meta.version.webpack >= 5'), assertCssAndSourceMapContent('main.1bcd5ac18d16cb1a7d4e.css'), outdent )` - /src/feature/index.scss + ./src/feature/index.scss ---------------------------------------------------------------------------------------------------- 1:01 .some-class-name {⏎ 1:001 .some-class-name{░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ @@ -565,7 +242,7 @@ module.exports = test( 6:36 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;⏎ 1:176 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░} }░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - /src/index.scss + ./src/index.scss ---------------------------------------------------------------------------------------------------- 2:01 .another-class-name {⏎ 1:177 .another-class-name{░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ diff --git a/test/index.js b/test/index.js index 3199d78..7001d3c 100644 --- a/test/index.js +++ b/test/index.js @@ -48,7 +48,7 @@ console.log(`timestamp: ${epoch}`); // platforms, engines, cases const tests = permute( readdirSync(PLATFORMS_DIR), - ['rework', 'postcss'], + ['postcss'], readdirSync(CASES_DIR).filter((v) => v.endsWith('.js')).map((v) => v.split('.').slice(0, -1).join('.')) ) .filter(testCaseVsEngine) diff --git a/test/lib/assert/stream.js b/test/lib/assert/stream.js index 0ae09b6..a02b580 100644 --- a/test/lib/assert/stream.js +++ b/test/lib/assert/stream.js @@ -88,16 +88,10 @@ const assertChildCompilationWarning = exports.assertStdout('webpack warning')(1) `; exports.assertMisconfigWarning = (message) => sequence( - onlyMeta('meta.version.webpack < 5')(assertMisconfigWarningWithMessage(message)), + onlyMeta('meta.version.webpack == 4')(assertMisconfigWarningWithMessage(message)), onlyMeta('meta.version.webpack >= 5')(assertChildCompilationWarning) ); -// Webpack may repeat errors with a header line taken from the parent loader so we allow range 1-2 -const assertModuleNotFoundError = exports.assertStdout('webpack "Module not found" error')([1, 2])` - ^[ ]*ERROR[^\n]* - [ ]*Module build failed(:|[^\n]*\n)[ ]*ModuleNotFoundError: Module not found: - `; - const assertCantResolveError = exports.assertStdout('webpack "Can\'t resolve" error')(1)` ^[ ]*ERROR[^\n]* [ ]*Module build failed[^\n]* @@ -105,7 +99,5 @@ const assertCantResolveError = exports.assertStdout('webpack "Can\'t resolve" er [ ]*Error: Can't resolve[^\n]* `; -exports.assertAssetError = sequence( - onlyMeta('meta.version.webpack < 5')(assertModuleNotFoundError), - onlyMeta('meta.version.webpack >= 5')(assertCantResolveError) -); +// TODO inline this +exports.assertAssetError = assertCantResolveError; diff --git a/yarn.lock b/yarn.lock index 34e4949..0336ee4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,25 +2,31 @@ # yarn lockfile v1 -"@sinonjs/commons@^1", "@sinonjs/commons@^1.6.0", "@sinonjs/commons@^1.7.0": +"@sinonjs/commons@^1.6.0", "@sinonjs/commons@^1.7.0": version "1.8.1" resolved "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz#e7df00f98a203324f6dc7cc606cad9d4a8ab2217" integrity sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw== dependencies: type-detect "4.0.8" -"@sinonjs/formatio@^4.0.1": - version "4.0.1" - resolved "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-4.0.1.tgz#50ac1da0c3eaea117ca258b06f4f88a471668bdb" - integrity sha512-asIdlLFrla/WZybhm0C8eEzaDNNrzymiTqHMeJl6zPW2881l3uuVRpm0QlRQEjqYWv6CcKMGYME3LbrLJsORBw== +"@sinonjs/commons@^1.8.1": + version "1.8.3" + resolved "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d" + integrity sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ== dependencies: - "@sinonjs/commons" "^1" - "@sinonjs/samsam" "^4.2.0" + type-detect "4.0.8" -"@sinonjs/samsam@^4.2.0", "@sinonjs/samsam@^4.2.2": - version "4.2.2" - resolved "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-4.2.2.tgz#0f6cb40e467865306d8a20a97543a94005204e23" - integrity sha512-z9o4LZUzSD9Hl22zV38aXNykgFeVj8acqfFabCY6FY83n/6s/XwNJyYYldz6/9lBJanpno9h+oL6HTISkviweA== +"@sinonjs/fake-timers@^6.0.0", "@sinonjs/fake-timers@^6.0.1": + version "6.0.1" + resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" + integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== + dependencies: + "@sinonjs/commons" "^1.7.0" + +"@sinonjs/samsam@^5.3.1": + version "5.3.1" + resolved "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.1.tgz#375a45fe6ed4e92fca2fb920e007c48232a6507f" + integrity sha512-1Hc0b1TtyfBu8ixF/tpfSHTVWKwCBLY4QJbkgnE7HcwyvT2xArDxb4K7dMgqRm3szI+LJbzmW/s4xxEhv6hwDg== dependencies: "@sinonjs/commons" "^1.6.0" lodash.get "^4.4.2" @@ -61,20 +67,6 @@ arity-n@^1.0.4: resolved "https://registry.npmjs.org/arity-n/-/arity-n-1.0.4.tgz#d9e76b11733e08569c0847ae7b39b2860b30b745" integrity sha1-2edrEXM+CFacCEeuezmyhgswt0U= -array.prototype.flatmap@^1.2.2: - version "1.2.3" - resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.3.tgz#1c13f84a178566042dd63de4414440db9222e443" - integrity sha512-OOEk+lkePcg+ODXIpvuU9PAryCikCJyo7GlDG1upleEpQRx6mzL9puEBkozQ5iAx20KV0l3DbyQwqciJtqe5Pg== - dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.0-next.1" - function-bind "^1.1.1" - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -131,10 +123,10 @@ cli@~1.0.0: exit "0.1.2" glob "^7.1.1" -colorette@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/colorette/-/colorette-1.2.1.tgz#4d0b921325c14faf92633086a536db6e89564b1b" - integrity sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw== +colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== compose-function@^3.0.3: version "3.0.3" @@ -155,11 +147,6 @@ console-browserify@1.1.x: dependencies: date-now "^0.1.4" -convert-source-map@^0.3.3: - version "0.3.5" - resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz#f1d802950af7dd2631a1febe0596550c86ab3190" - integrity sha1-8dgClQr33SYxof6+BZZVDIarMZA= - convert-source-map@^1.7.0: version "1.7.0" resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" @@ -167,10 +154,10 @@ convert-source-map@^1.7.0: dependencies: safe-buffer "~5.1.1" -convict@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/convict/-/convict-6.0.0.tgz#4be829f001a778d337d32ec79e9ae7f2e39df1a6" - integrity sha512-osfPkv5yjVoZqrTWBXuh/ABGpFoaJplbt0WXr0CodR4CSWt8UnzY4PSUyRz/+5BX5YUtWcToG29Kr0B6xhdIMg== +convict@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/convict/-/convict-6.1.0.tgz#5b393bd675a0e743390abd0c5bf9e2b9a2edf4b5" + integrity sha512-8dzppr6Z9URlm6P8N9NiydFRq2NWtQyf4RZOK5m0Q48fWWuKamHLXD7Qz/SiLvRXnjQcKCuHayIk9Fk51sax0w== dependencies: lodash.clonedeep "^4.5.0" yargs-parser "^18.1.3" @@ -180,14 +167,14 @@ core-util-is@~1.0.0: resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= -cross-env@^6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/cross-env/-/cross-env-6.0.3.tgz#4256b71e49b3a40637a0ce70768a6ef5c72ae941" - integrity sha512-+KqxF6LCvfhWvADcDPqo64yVIB31gv/jQulX2NGzKS/g3GEVz6/pt4wjHFtFWsHMddebWD/sDthJemzM4MaAag== +cross-env@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" + integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== dependencies: - cross-spawn "^7.0.0" + cross-spawn "^7.0.1" -cross-spawn@^7.0.0, cross-spawn@^7.0.3: +cross-spawn@^7.0.1, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -196,16 +183,6 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -css@^2.0.0: - version "2.2.4" - resolved "https://registry.npmjs.org/css/-/css-2.2.4.tgz#c646755c73971f2bba6a601e2cf2fd71b1298929" - integrity sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw== - dependencies: - inherits "^2.0.3" - source-map "^0.6.1" - source-map-resolve "^0.5.2" - urix "^0.1.0" - date-now@^0.1.4: version "0.1.4" resolved "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" @@ -216,11 +193,6 @@ decamelize@^1.2.0: resolved "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - deep-equal@~1.1.1: version "1.1.1" resolved "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a" @@ -245,12 +217,7 @@ defined@~1.0.0: resolved "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" integrity sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM= -diff@^2.2.1: - version "2.2.3" - resolved "https://registry.npmjs.org/diff/-/diff-2.2.3.tgz#60eafd0d28ee906e4e8ff0a52c1229521033bf99" - integrity sha1-YOr9DSjukG5Oj/ClLBIpUhAzv5k= - -diff@^4.0.2: +diff@^2.2.1, diff@^4.0.2: version "4.0.2" resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== @@ -358,10 +325,10 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== esprima@^4.0.0: version "4.0.1" @@ -489,7 +456,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4: +inherits@2, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -611,9 +578,9 @@ json5@^2.1.2: minimist "^1.2.5" just-extend@^4.0.2: - version "4.1.0" - resolved "https://registry.npmjs.org/just-extend/-/just-extend-4.1.0.tgz#7278a4027d889601640ee0ce0e5a00b992467da4" - integrity sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA== + version "4.1.1" + resolved "https://registry.npmjs.org/just-extend/-/just-extend-4.1.1.tgz#158f1fdb01f128c411dc8b286a7b4837b3545282" + integrity sha512-aWgeGFW67BP3e5181Ep1Fv2v8z//iBJfrvyTnq8wG86vEESwmonn1zPBJ0VfmT9CJq2FIT0VsETtrNFm2a+SHA== loader-utils@^2.0.0: version "2.0.0" @@ -634,25 +601,18 @@ lodash.get@^4.4.2: resolved "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= -lodash@^4.17.21, lodash@~4.17.19: +lodash@~4.17.19: version "4.17.21" resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -lolex@^5.0.1, lolex@^5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz#953694d098ce7c07bc5ed6d0e42bc6c0c6d5a367" - integrity sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A== - dependencies: - "@sinonjs/commons" "^1.7.0" - -micromatch@^4.0.2: - version "4.0.2" - resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" - integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q== +micromatch@^4.0.4: + version "4.0.4" + resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" + integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== dependencies: braces "^3.0.1" - picomatch "^2.0.5" + picomatch "^2.2.3" minimatch@3.0.4, minimatch@^3.0.4, minimatch@~3.0.2: version "3.0.4" @@ -666,33 +626,30 @@ minimist@^1.2.5, minimist@~1.2.5: resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== -mkdirp@^0.5.1: - version "0.5.5" - resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" +mkdirp@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -ms@^2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -nanoid@^3.1.18: - version "3.1.18" - resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.1.18.tgz#0680db22ab01c372e89209f5d18283d98de3e96d" - integrity sha512-rndlDjbbHbcV3xi+R2fpJ+PbGMdfBxz5v1fATIQFq0DP64FsicQdwnKLy47K4kZHdRpmQXtz24eGsxQqamzYTA== +nanoid@^3.1.22: + version "3.1.22" + resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.1.22.tgz#b35f8fb7d151990a8aebd5aa5015c03cf726f844" + integrity sha512-/2ZUaJX2ANuLtTvqTlgqBQNJoQO398KyJgZloL0PZkC0dpysjncRUPsFe3DUPzz/y3h+u7C46np8RMuvF3jsSQ== -nise@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/nise/-/nise-3.0.1.tgz#0659982af515e5aac15592226246243e8da0013d" - integrity sha512-fYcH9y0drBGSoi88kvhpbZEsenX58Yr+wOJ4/Mi1K4cy+iGP/a73gNoyNhu5E9QxPdgTlVChfIaAlnyOy/gHUA== +nise@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/nise/-/nise-4.1.0.tgz#8fb75a26e90b99202fa1e63f448f58efbcdedaf6" + integrity sha512-eQMEmGN/8arp0xsvGoQ+B1qvSkR73B1nWSCh7nOt5neMCtwcQVYQGdzQMhcNscktTsWB54xnlSQFzOAPJD8nXA== dependencies: "@sinonjs/commons" "^1.7.0" - "@sinonjs/formatio" "^4.0.1" + "@sinonjs/fake-timers" "^6.0.0" "@sinonjs/text-encoding" "^0.7.1" just-extend "^4.0.2" - lolex "^5.0.1" path-to-regexp "^1.7.0" object-assign@^4.1.0: @@ -723,18 +680,18 @@ object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -object-path-immutable@^4.0.2: - version "4.1.0" - resolved "https://registry.npmjs.org/object-path-immutable/-/object-path-immutable-4.1.0.tgz#dc156c830c3774a8ba6b4a89ceb2639a2c9d068f" - integrity sha512-5TQ2fYe5Boyr8+9lf4EB5xK1Hb9YPwq9NNdoyiBi+QaSvBmaS7cZdf0Np9Xi3srYKP9IbPBVX76T6EgFo2LjjQ== +object-path-immutable@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/object-path-immutable/-/object-path-immutable-4.1.1.tgz#f657e9120075a9866227cb6324b90edda042118d" + integrity sha512-kaH7a+jzt8WhPUeA26qrBwiJFBGFCkXaa4CbCuv4+8oZgb2Qo4/NV9KN1fyd8xPzAutJvVw0mjywn+FqU1MbTA== dependencies: is-plain-object "^3.0.0" - object-path "^0.11.4" + object-path "^0.11.5" -object-path@^0.11.4: - version "0.11.4" - resolved "https://registry.npmjs.org/object-path/-/object-path-0.11.4.tgz#370ae752fbf37de3ea70a861c23bba8915691949" - integrity sha1-NwrnUvvzfePqcKhhwju6iRVpGUk= +object-path@^0.11.5: + version "0.11.5" + resolved "https://registry.npmjs.org/object-path/-/object-path-0.11.5.tgz#d4e3cf19601a5140a55a16ad712019a9c50b577a" + integrity sha512-jgSbThcoR/s+XumvGMTMf81QVBmah+/Q7K7YduKeKVWL7N111unR2d6pZZarSk6kY/caeNxUDyxOvMWyzoU2eg== object.assign@^4.1.0: version "4.1.0" @@ -753,10 +710,10 @@ once@^1.3.0: dependencies: wrappy "1" -outdent@^0.7.0: - version "0.7.1" - resolved "https://registry.npmjs.org/outdent/-/outdent-0.7.1.tgz#e9b400443622a97760b0bc74fa3223252ccd02a2" - integrity sha512-VjIzdUHunL74DdhcwMDt5FhNDQ8NYmTkuW0B+usIV2afS9aWT/1c9z1TsnFW349TP3nxmYeUl7Z++XpJRByvgg== +outdent@^0.8.0: + version "0.8.0" + resolved "https://registry.npmjs.org/outdent/-/outdent-0.8.0.tgz#2ebc3e77bf49912543f1008100ff8e7f44428eb0" + integrity sha512-KiOAIsdpUTcAXuykya5fnVVT+/5uS0Q1mrkRHcF89tpieSmY33O/tmc54CqwA+bfhbtEfZUNLHaPUiB9X3jt1A== parse-ms@^1.0.0: version "1.0.1" @@ -785,25 +742,24 @@ path-to-regexp@^1.7.0: dependencies: isarray "0.0.1" -picomatch@^2.0.5: - version "2.2.2" - resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" - integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== +picomatch@^2.2.3: + version "2.2.3" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.2.3.tgz#465547f359ccc206d3c48e46a1bcb89bf7ee619d" + integrity sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg== plur@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/plur/-/plur-1.0.0.tgz#db85c6814f5e5e5a3b49efc28d604fec62975156" integrity sha1-24XGgU9eXlo7Se/CjWBP7GKXUVY= -postcss@^8.1.9: - version "8.1.9" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.1.9.tgz#20ff4b598a6f5015c5f7fe524b8ed5313d7ecade" - integrity sha512-oWuBpEl1meaMKkQXn0ic78TUrgsMvrAZLE/6ZY0H3LTteq2O3L8PGWwMbPLctpksTJIHjQeossMUMNQW7qRIHQ== +postcss@^8.2.14: + version "8.2.14" + resolved "https://registry.npmjs.org/postcss/-/postcss-8.2.14.tgz#dcf313eb8247b3ce8078d048c0e8262ca565ad2b" + integrity sha512-+jD0ZijcvyCqPQo/m/CW0UcARpdFylq04of+Q7RKX6f/Tu+dvpUI/9Sp81+i6/vJThnOBX09Quw0ZLOVwpzX3w== dependencies: - colorette "^1.2.1" - nanoid "^3.1.18" + colorette "^1.2.2" + nanoid "^3.1.22" source-map "^0.6.1" - vfile-location "^3.2.0" pretty-ms@^2.1.0: version "2.1.0" @@ -872,11 +828,6 @@ regexp.prototype.flags@^1.2.0: define-properties "^1.1.3" es-abstract "^1.17.0-next.1" -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= - resolve@~1.17.0: version "1.17.0" resolved "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" @@ -891,19 +842,6 @@ resumer@~0.0.0: dependencies: through "~2.3.4" -rework-visit@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/rework-visit/-/rework-visit-1.0.0.tgz#9945b2803f219e2f7aca00adb8bc9f640f842c9a" - integrity sha1-mUWygD8hni96ygCtuLyfZA+ELJo= - -rework@1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/rework/-/rework-1.0.1.tgz#30806a841342b54510aa4110850cd48534144aa7" - integrity sha1-MIBqhBNCtUUQqkEQhQzUhTQUSqc= - dependencies: - convert-source-map "^0.3.3" - css "^2.0.0" - rimraf@^3.0.0: version "3.0.2" resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" @@ -938,35 +876,18 @@ shelljs@0.3.x: resolved "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz#3596e6307a781544f591f37da618360f31db57b1" integrity sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E= -sinon@^8.0.2: - version "8.1.1" - resolved "https://registry.npmjs.org/sinon/-/sinon-8.1.1.tgz#21fffd5ad0a2d072a8aa7f8a3cf7ed2ced497497" - integrity sha512-E+tWr3acRdoe1nXbHMu86SSqA1WGM7Yw3jZRLvlCMnXwTHP8lgFFVn5BnKnF26uc5SfZ3D7pA9sN7S3Y2jG4Ew== +sinon@^10.0.0: + version "10.0.0" + resolved "https://registry.npmjs.org/sinon/-/sinon-10.0.0.tgz#52279f97e35646ff73d23207d0307977c9b81430" + integrity sha512-XAn5DxtGVJBlBWYrcYKEhWCz7FLwZGdyvANRyK06419hyEpdT0dMc5A8Vcxg5SCGHc40CsqoKsc1bt1CbJPfNw== dependencies: - "@sinonjs/commons" "^1.7.0" - "@sinonjs/formatio" "^4.0.1" - "@sinonjs/samsam" "^4.2.2" + "@sinonjs/commons" "^1.8.1" + "@sinonjs/fake-timers" "^6.0.1" + "@sinonjs/samsam" "^5.3.1" diff "^4.0.2" - lolex "^5.1.2" - nise "^3.0.1" + nise "^4.1.0" supports-color "^7.1.0" -source-map-resolve@^0.5.2: - version "0.5.3" - resolved "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= - source-map@0.6.1, source-map@^0.6.1: version "0.6.1" resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" @@ -1115,21 +1036,11 @@ type-detect@4.0.8, type-detect@^4.0.8: resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= - util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= -vfile-location@^3.2.0: - version "3.2.0" - resolved "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz#d8e41fbcbd406063669ebf6c33d56ae8721d0f3c" - integrity sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA== - vlq@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468"