From 1d7a4643fc84bf08d2c2c61c5724469936762ad0 Mon Sep 17 00:00:00 2001 From: Evilebot Tnawi Date: Tue, 28 May 2019 19:18:23 +0300 Subject: [PATCH] feat: modules options now accepts object config (#937) BREAKING CHANGE: - `localIdentName` option was removed in favor `modules.localIdentName` option - `context` option was remove in favor `modules.context` option - `hashPrefix` option was removed in favor `modules.hashPrefix` option - `getLocalIdent` option was removed in favor `modules.getLocalIdent` option - `localIdentRegExp` option was removed in favor `modules.localIdentRegExp` option --- README.md | 237 +- src/options.json | 64 +- src/utils.js | 39 +- test/__snapshots__/errors.test.js.snap | 117 - .../getLocalIdent-option.test.js.snap | 150 - .../localIdentName-option.test.js.snap | 1433 ----- .../__snapshots__/modules-option.test.js.snap | 5416 +++++++++++++++-- .../validate-options.test.js.snap | 185 + test/getLocalIdent-option.test.js | 130 - test/localIdentName-option.test.js | 178 - test/modules-option.test.js | 307 +- ...rrors.test.js => validate-options.test.js} | 54 +- 12 files changed, 5633 insertions(+), 2677 deletions(-) delete mode 100644 test/__snapshots__/errors.test.js.snap delete mode 100644 test/__snapshots__/getLocalIdent-option.test.js.snap delete mode 100644 test/__snapshots__/localIdentName-option.test.js.snap create mode 100644 test/__snapshots__/validate-options.test.js.snap delete mode 100644 test/getLocalIdent-option.test.js delete mode 100644 test/localIdentName-option.test.js rename test/{errors.test.js => validate-options.test.js} (63%) diff --git a/README.md b/README.md index d431314b..9a3323e1 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, use: ['style-loader', 'css-loader'], }, ], @@ -65,7 +65,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, use: ['to-string-loader', 'css-loader'], }, ], @@ -95,7 +95,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, use: [ 'handlebars-loader', // handlebars loader expects raw resource string 'extract-loader', @@ -109,19 +109,15 @@ module.exports = { ## Options -| Name | Type | Default | Description | -| :-----------------------------------------: | :-------------------: | :-------------: | :----------------------------------------------------------------------- | -| **[`url`](#url)** | `{Boolean\|Function}` | `true` | Enable/Disable `url()` handling | -| **[`import`](#import)** | `{Boolean\/Function}` | `true` | Enable/Disable @import handling | -| **[`modules`](#modules)** | `{Boolean\|String}` | `false` | Enable/Disable CSS Modules and setup mode | -| **[`localIdentName`](#localidentname)** | `{String}` | `[hash:base64]` | Configure the generated ident | -| **[`context`](#context)** | `{String}` | `undefined` | Allow to redefine basic loader context for local ident name | -| **[`hashPrefix`](#hashprefix)** | `{String}` | `undefined` | Allow to add custom hash to generate more unique classes | -| **[`getLocalIdent`](#getlocalident)** | `{Function}` | `undefined` | Configure the function to generate classname based on a different schema | -| **[`sourceMap`](#sourcemap)** | `{Boolean}` | `false` | Enable/Disable Sourcemaps | -| **[`camelCase`](#camelcase)** | `{Boolean\|String}` | `false` | Export Classnames in CamelCase | -| **[`importLoaders`](#importloaders)** | `{Number}` | `0` | Number of loaders applied before CSS loader | -| **[`exportOnlyLocals`](#exportonlylocals)** | `{Boolean}` | `false` | Export only locals | +| Name | Type | Default | Description | +| :-----------------------------------------: | :-------------------------: | :-----: | :------------------------------------------------- | +| **[`url`](#url)** | `{Boolean\|Function}` | `true` | Enable/Disable `url()` handling | +| **[`import`](#import)** | `{Boolean\|Function}` | `true` | Enable/Disable @import handling | +| **[`modules`](#modules)** | `{Boolean\|String\|Object}` | `false` | Enable/Disable CSS Modules and setup their options | +| **[`sourceMap`](#sourcemap)** | `{Boolean}` | `false` | Enable/Disable Sourcemaps | +| **[`camelCase`](#camelcase)** | `{Boolean\|String}` | `false` | Export Classnames in CamelCase | +| **[`importLoaders`](#importloaders)** | `{Number}` | `0` | Number of loaders applied before CSS loader | +| **[`exportOnlyLocals`](#exportonlylocals)** | `{Boolean}` | `false` | Export only locals | ### `url` @@ -160,7 +156,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { url: true, @@ -182,7 +178,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { url: (url, resourcePath) => { @@ -236,7 +232,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { import: true, @@ -258,7 +254,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { import: (parsedImport, resourcePath) => { @@ -276,24 +272,15 @@ module.exports = { }; ``` -### [`modules`](https://github.com/css-modules/css-modules) +### `modules` -Type: `Boolean|String` +Type: `Boolean|String|Object` Default: `false` -The `modules` option enables/disables the **CSS Modules** spec and setup basic behaviour. - -| Name | Type | Description | -| :------------: | :---------: | :------------------------------------------------------------------------------------------------------------------------------- | -| **`true`** | `{Boolean}` | Enables local scoped CSS by default (use **local** mode by default) | -| **`false`** | `{Boolean}` | Disable the **CSS Modules** spec, all **CSS Modules** features (like `@value`, `:local`, `:global` and `composes`) will not work | -| **`'local'`** | `{String}` | Enables local scoped CSS by default (same as `true` value) | -| **`'global'`** | `{String}` | Enables global scoped CSS by default | +The `modules` option enables/disables the **[CSS Modules](https://github.com/css-modules/css-modules)** specification and setup basic behaviour. Using `false` value increase performance because we avoid parsing **CSS Modules** features, it will be useful for developers who use vanilla css or use other technologies. -You can read about **modes** below. - **webpack.config.js** ```js @@ -301,7 +288,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { modules: true, @@ -312,6 +299,8 @@ module.exports = { }; ``` +#### `Features` + ##### `Scope` Using `local` value requires you to specify `:global` classes. @@ -437,7 +426,106 @@ To import from multiple modules use multiple `composes:` rules. } ``` -### `localIdentName` +#### `Boolean` + +Enable **CSS Modules** features. + +**webpack.config.js** + +```js +module.exports = { + module: { + rules: [ + { + test: /\.css$/i, + loader: 'css-loader', + options: { + modules: true, + }, + }, + ], + }, +}; +``` + +#### `String` + +Enable **CSS Modules** features and setup `mode`. + +**webpack.config.js** + +```js +module.exports = { + module: { + rules: [ + { + test: /\.css$/i, + loader: 'css-loader', + options: { + // Using `local` value has same effect like using `modules: true` + modules: 'global', + }, + }, + ], + }, +}; +``` + +#### `Object` + +Enable **CSS Modules** features and setup options for them. + +**webpack.config.js** + +```js +module.exports = { + module: { + rules: [ + { + test: /\.css$/i, + loader: 'css-loader', + options: { + modules: { + mode: 'local', + localIdentName: '[path][name]__[local]--[hash:base64:5]', + context: path.resolve(__dirname, 'src'), + hashPrefix: 'my-custom-hash', + }, + }, + }, + ], + }, +}; +``` + +##### `mode` + +Type: `String` +Default: `local` + +Setup `mode` option. You can omit the value when you want `local` mode. + +**webpack.config.js** + +```js +module.exports = { + module: { + rules: [ + { + test: /\.css$/i, + loader: 'css-loader', + options: { + modules: { + mode: 'global', + }, + }, + }, + ], + }, +}; +``` + +##### `localIdentName` Type: `String` Default: `[hash:base64]` @@ -452,11 +540,12 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { - modules: true, - localIdentName: '[path][name]__[local]--[hash:base64:5]', + modules: { + localIdentName: '[path][name]__[local]--[hash:base64:5]', + }, }, }, ], @@ -464,7 +553,7 @@ module.exports = { }; ``` -### `context` +##### `context` Type: `String` Default: `undefined` @@ -479,11 +568,12 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { - modules: true, - context: path.resolve(__dirname, 'context'), + modules: { + context: path.resolve(__dirname, 'context'), + }, }, }, ], @@ -491,7 +581,7 @@ module.exports = { }; ``` -### `hashPrefix` +##### `hashPrefix` Type: `String` Default: `undefined` @@ -505,11 +595,12 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { - modules: true, - hashPrefix: 'hash', + modules: { + hashPrefix: 'hash', + }, }, }, ], @@ -517,7 +608,7 @@ module.exports = { }; ``` -### `getLocalIdent` +##### `getLocalIdent` Type: `Function` Default: `undefined` @@ -532,12 +623,38 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { - modules: true, - getLocalIdent: (context, localIdentName, localName, options) => { - return 'whatever_random_class_name'; + modules: { + getLocalIdent: (context, localIdentName, localName, options) => { + return 'whatever_random_class_name'; + }, + }, + }, + }, + ], + }, +}; +``` + +##### `localIdentRegExp` + +Type: `String|RegExp` +Default: `undefined` + +**webpack.config.js** + +```js +module.exports = { + module: { + rules: [ + { + test: /\.css$/i, + loader: 'css-loader', + options: { + modules: { + localIdentRegExp: /page-(.*)\.css/i, }, }, }, @@ -555,7 +672,9 @@ To include source maps set the `sourceMap` option. I.e. the `mini-css-extract-plugin` can handle them. -They are not enabled by default because they expose a runtime overhead and increase in bundle size (JS source maps do not). In addition to that relative paths are buggy and you need to use an absolute public path which includes the server URL. +They are not enabled by default because they expose a runtime overhead and increase in bundle size (JS source maps do not). + +In addition to that relative paths are buggy and you need to use an absolute public path which includes the server URL. **webpack.config.js** @@ -564,7 +683,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { sourceMap: true, @@ -580,12 +699,12 @@ module.exports = { Type: `Boolean|String` Default: `false` -By default, the exported JSON keys mirror the class names. If you want to camelize class names (useful in JS), pass the query parameter `camelCase` to css-loader. +By default, the exported JSON keys mirror the class names. | Name | Type | Description | | :----------------: | :---------: | :----------------------------------------------------------------------------------------------------------------------- | -| **`false`** | `{Boolean}` | Class names won't be camelized | -| **`true`** | `{Boolean}` | Class names will be camelized, the original class name will not to be removed from the locals | +| **`false`** | `{Boolean}` | Class names won't be camelized | +| **`true`** | `{Boolean}` | Class names will be camelized, the original class name will not to be removed from the locals | | **`'dashes'`** | `{String}` | Only dashes in class names will be camelized | | **`'only'`** | `{String}` | Introduced in `0.27.1`. Class names will be camelized, the original class name will be removed from the locals | | **`'dashesOnly'`** | `{String}` | Introduced in `0.27.1`. Dashes in class names will be camelized, the original class name will be removed from the locals | @@ -610,7 +729,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { camelCase: true, @@ -635,7 +754,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, use: [ 'style-loader', { @@ -671,7 +790,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, loader: 'css-loader', options: { exportOnlyLocals: true, @@ -695,7 +814,7 @@ module.exports = { module: { rules: [ { - test: /\.css$/, + test: /\.css$/i, use: ['style-loader', 'css-loader'], }, { diff --git a/src/options.json b/src/options.json index 45494ec7..0f7f93e6 100644 --- a/src/options.json +++ b/src/options.json @@ -29,35 +29,45 @@ { "type": "string", "enum": ["local", "global"] - } - ] - }, - "localIdentName": { - "type": "string" - }, - "localIdentRegExp": { - "anyOf": [ - { - "type": "string" }, { - "instanceof": "RegExp" - } - ] - }, - "context": { - "type": "string" - }, - "hashPrefix": { - "type": "string" - }, - "getLocalIdent": { - "anyOf": [ - { - "type": "boolean" - }, - { - "instanceof": "Function" + "type": "object", + "additionalProperties": false, + "properties": { + "mode": { + "type": "string", + "enum": ["local", "global"] + }, + "localIdentName": { + "type": "string" + }, + "localIdentRegExp": { + "anyOf": [ + { + "type": "string" + }, + { + "instanceof": "RegExp" + } + ] + }, + "context": { + "type": "string" + }, + "hashPrefix": { + "type": "string" + }, + "getLocalIdent": { + "anyOf": [ + { + "type": "boolean" + }, + { + "instanceof": "Function" + } + ] + } + } } ] }, diff --git a/src/utils.js b/src/utils.js index 64ab8db1..5745b635 100644 --- a/src/utils.js +++ b/src/utils.js @@ -267,22 +267,41 @@ function getImports(messages, importUrlPrefix, loaderContext, callback) { } function getModulesPlugins(options, loaderContext) { - const mode = typeof options.modules === 'boolean' ? 'local' : options.modules; + let modulesOptions = { + mode: 'local', + localIdentName: '[hash:base64]', + getLocalIdent, + context: null, + hashPrefix: '', + localIdentRegExp: null, + }; + + if ( + typeof options.modules === 'boolean' || + typeof options.modules === 'string' + ) { + modulesOptions.mode = + typeof options.modules === 'string' ? options.modules : 'local'; + } else { + modulesOptions = Object.assign({}, modulesOptions, options.modules); + } return [ modulesValues, - localByDefault({ mode }), + localByDefault({ mode: modulesOptions.mode }), extractImports(), modulesScope({ generateScopedName: function generateScopedName(exportName) { - const localIdentName = options.localIdentName || '[hash:base64]'; - const customGetLocalIdent = options.getLocalIdent || getLocalIdent; - - return customGetLocalIdent(loaderContext, localIdentName, exportName, { - regExp: options.localIdentRegExp, - hashPrefix: options.hashPrefix || '', - context: options.context, - }); + return modulesOptions.getLocalIdent( + loaderContext, + modulesOptions.localIdentName, + exportName, + { + context: modulesOptions.context, + hashPrefix: modulesOptions.hashPrefix, + regExp: modulesOptions.localIdentRegExp, + } + ); }, }), ]; diff --git a/test/__snapshots__/errors.test.js.snap b/test/__snapshots__/errors.test.js.snap deleted file mode 100644 index e04c3b08..00000000 --- a/test/__snapshots__/errors.test.js.snap +++ /dev/null @@ -1,117 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`validation 1`] = ` -"CSS Loader Invalid Options - -options.url should be boolean -options.url should pass \\"instanceof\\" keyword validation -options.url should match some schema in anyOf -" -`; - -exports[`validation 2`] = ` -"CSS Loader Invalid Options - -options.import should be boolean -options.import should pass \\"instanceof\\" keyword validation -options.import should match some schema in anyOf -" -`; - -exports[`validation 3`] = ` -"CSS Loader Invalid Options - -options.modules should be boolean -options.modules should be equal to one of the allowed values -options.modules should match some schema in anyOf -" -`; - -exports[`validation 4`] = ` -"CSS Loader Invalid Options - -options.modules should be boolean -options.modules should be equal to one of the allowed values -options.modules should match some schema in anyOf -" -`; - -exports[`validation 5`] = ` -"CSS Loader Invalid Options - -options.modules should be boolean -options.modules should be equal to one of the allowed values -options.modules should match some schema in anyOf -" -`; - -exports[`validation 6`] = ` -"CSS Loader Invalid Options - -options.localIdentName should be string -" -`; - -exports[`validation 7`] = ` -"CSS Loader Invalid Options - -options.localIdentRegExp should be string -options.localIdentRegExp should pass \\"instanceof\\" keyword validation -options.localIdentRegExp should match some schema in anyOf -" -`; - -exports[`validation 8`] = ` -"CSS Loader Invalid Options - -options.context should be string -" -`; - -exports[`validation 9`] = ` -"CSS Loader Invalid Options - -options.hashPrefix should be string -" -`; - -exports[`validation 10`] = ` -"CSS Loader Invalid Options - -options.getLocalIdent should be boolean -options.getLocalIdent should pass \\"instanceof\\" keyword validation -options.getLocalIdent should match some schema in anyOf -" -`; - -exports[`validation 11`] = ` -"CSS Loader Invalid Options - -options.sourceMap should be boolean -" -`; - -exports[`validation 12`] = ` -"CSS Loader Invalid Options - -options.camelCase should be boolean -options.camelCase should be equal to one of the allowed values -options.camelCase should match some schema in anyOf -" -`; - -exports[`validation 13`] = ` -"CSS Loader Invalid Options - -options.importLoaders should be boolean -options.importLoaders should be number -options.importLoaders should match some schema in anyOf -" -`; - -exports[`validation 14`] = ` -"CSS Loader Invalid Options - -options.exportOnlyLocals should be boolean -" -`; diff --git a/test/__snapshots__/getLocalIdent-option.test.js.snap b/test/__snapshots__/getLocalIdent-option.test.js.snap deleted file mode 100644 index 16ce6a7b..00000000 --- a/test/__snapshots__/getLocalIdent-option.test.js.snap +++ /dev/null @@ -1,150 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`getLocalIdent option should accepts arguments: errors 1`] = `Array []`; - -exports[`getLocalIdent option should accepts arguments: locals 1`] = ` -Object { - "abc": "foo", - "def": "foo", - "ghi": "foo", - "jkl": "foo", -} -`; - -exports[`getLocalIdent option should accepts arguments: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".foo .foo { - color: red; -} - -.foo .foo { - color: blue; -} -", - "", - ], -] -`; - -exports[`getLocalIdent option should accepts arguments: warnings 1`] = `Array []`; - -exports[`getLocalIdent option should allow to use \`false\` value: errors 1`] = `Array []`; - -exports[`getLocalIdent option should allow to use \`false\` value: locals 1`] = ` -Object { - "abc": "before_abc__1hk_after", - "def": "before_def__3oo_after", - "ghi": "before_ghi__2ZR_after", - "jkl": "before_jkl__aQ1_after", -} -`; - -exports[`getLocalIdent option should allow to use \`false\` value: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".before_abc__1hk_after .before_def__3oo_after { - color: red; -} - -.before_ghi__2ZR_after .before_jkl__aQ1_after { - color: blue; -} -", - "", - ], -] -`; - -exports[`getLocalIdent option should allow to use \`false\` value: warnings 1`] = `Array []`; - -exports[`getLocalIdent option should respect \`context\` option: errors 1`] = `Array []`; - -exports[`getLocalIdent option should respect \`context\` option: locals 1`] = ` -Object { - "abc": "_1hksQTRR0UD9eKPUBlgn0X", - "def": "_3oo37UGTAgyDe0MeQom-28", - "ghi": "_2ZRWT_7WiIKpOei7U0eJzJ", - "jkl": "aQ1rQfhbWSRMXFXxIfQcx", -} -`; - -exports[`getLocalIdent option should respect \`context\` option: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - "._1hksQTRR0UD9eKPUBlgn0X ._3oo37UGTAgyDe0MeQom-28 { - color: red; -} - -._2ZRWT_7WiIKpOei7U0eJzJ .aQ1rQfhbWSRMXFXxIfQcx { - color: blue; -} -", - "", - ], -] -`; - -exports[`getLocalIdent option should respect \`context\` option: warnings 1`] = `Array []`; - -exports[`getLocalIdent option should work (\`modules: false\`): errors 1`] = `Array []`; - -exports[`getLocalIdent option should work (\`modules: false\`): locals 1`] = ` -Object { - "def": "foo", - "ghi": "foo", - "jkl": "foo", -} -`; - -exports[`getLocalIdent option should work (\`modules: false\`): module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".abc .foo { - color: red; -} - -.foo .foo { - color: blue; -} -", - "", - ], -] -`; - -exports[`getLocalIdent option should work (\`modules: false\`): warnings 1`] = `Array []`; - -exports[`getLocalIdent option should work (\`modules: true\`): errors 1`] = `Array []`; - -exports[`getLocalIdent option should work (\`modules: true\`): locals 1`] = ` -Object { - "abc": "foo", - "def": "foo", - "ghi": "foo", - "jkl": "foo", -} -`; - -exports[`getLocalIdent option should work (\`modules: true\`): module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".foo .foo { - color: red; -} - -.foo .foo { - color: blue; -} -", - "", - ], -] -`; - -exports[`getLocalIdent option should work (\`modules: true\`): warnings 1`] = `Array []`; diff --git a/test/__snapshots__/localIdentName-option.test.js.snap b/test/__snapshots__/localIdentName-option.test.js.snap deleted file mode 100644 index 46aa6411..00000000 --- a/test/__snapshots__/localIdentName-option.test.js.snap +++ /dev/null @@ -1,1433 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`localIdentName option basic: errors 1`] = `Array []`; - -exports[`localIdentName option basic: locals 1`] = ` -Object { - "#": "localIdentName--#--O8Yw6", - "##": "localIdentName--##--3er0D", - "#.#.#": "localIdentName--#.#.#--22RlZ", - "#fake-id": "localIdentName--#fake-id--3i_zU", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "localIdentName--++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.--3hmdG", - "-a-b-c-": "localIdentName---a-b-c---1cY1s", - "-a0-34a___f": "localIdentName---a0-34a___f--3RHUZ", - ".": "localIdentName--.--nfd9M", - "123": "localIdentName--123--3JQcZ", - "1a2b3c": "localIdentName--1a2b3c--3IsxV", - ":)": "localIdentName--:)--3EKgI", - ":\`(": "localIdentName--:\`(--3oWIz", - ":hover": "localIdentName--:hover--B2why", - ":hover:focus:active": "localIdentName--:hover:focus:active--3R7r5", - "<><<<>><>": "localIdentName--<><<<>><>--Tr9vN", - "

": "localIdentName--

--3Lowm", - "?": "localIdentName--?--mRRxx", - "@": "localIdentName--@--3ZlTE", - "B&W?": "localIdentName--B&W?--3d3wg", - "[attr=value]": "localIdentName--[attr=value]--3GgRc", - "_": "localIdentName--_--2V6oB", - "_test": "localIdentName--_test--3Q--B", - "className": "localIdentName--className--3wBIH", - "f!o!o": "localIdentName--f!o!o--2pDEJ", - "f'o'o": "localIdentName--f'o'o--3297S", - "f*o*o": "localIdentName--f*o*o--MI6DP", - "f+o+o": "localIdentName--f+o+o--3aNwy", - "f/o/o": "localIdentName--f/o/o--jbPgr", - "f\\\\o\\\\o": "localIdentName--f\\\\o\\\\o--3x1WT", - "foo.bar": "localIdentName--foo.bar--2FVtF", - "foo/bar": "localIdentName--foo/bar--13Q-T", - "foo/bar/baz": "localIdentName--foo/bar/baz--1I8mG", - "foo\\\\bar": "localIdentName--foo\\\\bar--LKTPJ", - "foo\\\\bar\\\\baz": "localIdentName--foo\\\\bar\\\\baz--xcAsB", - "f~o~o": "localIdentName--f~o~o--1TY6B", - "m_x_@": "localIdentName--m_x_@--3SfN7", - "someId": "localIdentName--someId--mxosG", - "subClass": "localIdentName--subClass--3jIM-", - "test": "localIdentName--test--1Os7J", - "{}": "localIdentName--{}--2ZR3d", - "©": "localIdentName--©--3QaoF", - "“‘’”": "localIdentName--“‘’”--3xI9A", - "⌘⌥": "localIdentName--⌘⌥--1V-to", - "☺☃": "localIdentName--☺☃--uy8uv", - "♥": "localIdentName--♥--kO1_7", - "𝄞♪♩♫♬": "localIdentName--𝄞♪♩♫♬--1tfs0", - "💩": "localIdentName--💩--2Cl61", -} -`; - -exports[`localIdentName option basic: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".localIdentName--test--1Os7J { - background: red; -} - -.localIdentName--_test--3Q--B { - background: blue; -} - -.localIdentName--className--3wBIH { - background: red; -} - -#localIdentName--someId--mxosG { - background: green; -} - -.localIdentName--className--3wBIH .localIdentName--subClass--3jIM- { - color: green; -} - -#localIdentName--someId--mxosG .localIdentName--subClass--3jIM- { - color: blue; -} - -.localIdentName---a0-34a___f--3RHUZ { - color: red; -} - -.localIdentName--m_x_\\\\@--3SfN7 { - margin-left: auto !important; - margin-right: auto !important; -} - -.localIdentName--B\\\\&W\\\\?--3d3wg { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -.localIdentName--\\\\3A \\\\\`\\\\(--3oWIz { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -.localIdentName--\\\\31 a2b3c--3IsxV { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#localIdentName--\\\\#fake-id--3i_zU { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#localIdentName---a-b-c---1cY1s { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#localIdentName--©--3QaoF { - color: black; -} - -.localIdentName--♥--kO1_7 { background: lime; } -.localIdentName--©--3QaoF { background: lime; } -.localIdentName--“‘’”--3xI9A { background: lime; } -.localIdentName--☺☃--uy8uv { background: lime; } -.localIdentName--⌘⌥--1V-to { background: lime; } -.localIdentName--𝄞♪♩♫♬--1tfs0 { background: lime; } -.localIdentName--💩--2Cl61 { background: lime; } -.localIdentName--\\\\?--mRRxx { background: lime; } -.localIdentName--\\\\@--3ZlTE { background: lime; } -.localIdentName--\\\\.--nfd9M { background: lime; } -.localIdentName--\\\\3A \\\\)--3EKgI { background: lime; } -.localIdentName--\\\\3A \\\\\`\\\\(--3oWIz { background: lime; } -.localIdentName--\\\\31 23--3JQcZ { background: lime; } -.localIdentName--\\\\31 a2b3c--3IsxV { background: lime; } -.localIdentName--\\\\--3Lowm { background: lime; } -.localIdentName--\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\>--Tr9vN { background: lime; } -.localIdentName--\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\.--3hmdG { background: lime; } -.localIdentName--\\\\#--O8Yw6 { background: lime; } -.localIdentName--\\\\#\\\\#--3er0D { background: lime; } -.localIdentName--\\\\#\\\\.\\\\#\\\\.\\\\#--22RlZ { background: lime; } -.localIdentName--\\\\_--2V6oB { background: lime; } -.localIdentName--\\\\{\\\\}--2ZR3d { background: lime; } -.localIdentName--\\\\#fake\\\\-id--3i_zU { background: lime; } -.localIdentName--foo\\\\.bar--2FVtF { background: lime; } -.localIdentName--\\\\3A hover--B2why { background: lime; } -.localIdentName--\\\\3A hover\\\\3A focus\\\\3A active--3R7r5 { background: lime; } -.localIdentName--\\\\[attr\\\\=value\\\\]--3GgRc { background: lime; } -.localIdentName--f\\\\/o\\\\/o--jbPgr { background: lime; } -.localIdentName--f\\\\\\\\o\\\\\\\\o--3x1WT { background: lime; } -.localIdentName--f\\\\*o\\\\*o--MI6DP { background: lime; } -.localIdentName--f\\\\!o\\\\!o--2pDEJ { background: lime; } -.localIdentName--f\\\\'o\\\\'o--3297S { background: lime; } -.localIdentName--f\\\\~o\\\\~o--1TY6B { background: lime; } -.localIdentName--f\\\\+o\\\\+o--3aNwy { background: lime; } - -.localIdentName--foo\\\\/bar--13Q-T { - background: hotpink; -} - -.localIdentName--foo\\\\\\\\bar--LKTPJ { - background: hotpink; -} - -.localIdentName--foo\\\\/bar\\\\/baz--1I8mG { - background: hotpink; -} - -.localIdentName--foo\\\\\\\\bar\\\\\\\\baz--xcAsB { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option basic: warnings 1`] = `Array []`; - -exports[`localIdentName option should correctly replace escaped symbols in selector: errors 1`] = `Array []`; - -exports[`localIdentName option should correctly replace escaped symbols in selector: locals 1`] = ` -Object { - "#": "#--1cQh", - "##": "##--1u97", - "#.#.#": "#.#.#--2QoP", - "#fake-id": "#fake-id--1d23", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.--2vJ9", - "-a-b-c-": "-a-b-c---opia", - "-a0-34a___f": "-a0-34a___f--2nJ5", - ".": ".--2hyg", - "123": "123--jOxY", - "1a2b3c": "1a2b3c--1_Xs", - ":)": ":)--2tSN", - ":\`(": ":\`(--3G_T", - ":hover": ":hover--1EAJ", - ":hover:focus:active": ":hover:focus:active--1v8f", - "<><<<>><>": "<><<<>><>--2mic", - "

": "

--dDVm", - "?": "?--2DX4", - "@": "@--mE1z", - "B&W?": "B&W?--1s8i", - "[attr=value]": "[attr=value]--2y3U", - "_": "_--2vOX", - "_test": "_test--23te", - "className": "className--1E8H", - "f!o!o": "f!o!o--3x3B", - "f'o'o": "f'o'o--2fVl", - "f*o*o": "f*o*o--3sRc", - "f+o+o": "f+o+o--38BA", - "f/o/o": "f/o/o--OYOz", - "f\\\\o\\\\o": "f\\\\o\\\\o--1Knj", - "foo.bar": "foo.bar--3ZJa", - "foo/bar": "foo/bar--36uD", - "foo/bar/baz": "foo/bar/baz--oTEb", - "foo\\\\bar": "foo\\\\bar--2KL0", - "foo\\\\bar\\\\baz": "foo\\\\bar\\\\baz--2Id2", - "f~o~o": "f~o~o--lYb3", - "m_x_@": "m_x_@--2G3b", - "someId": "someId--3w7J", - "subClass": "subClass--3lo0", - "test": "test--NW9Y", - "{}": "{}--3lRh", - "©": "©--143H", - "“‘’”": "“‘’”--2yW9", - "⌘⌥": "⌘⌥--6z9v", - "☺☃": "☺☃--3sW7", - "♥": "♥--8xlN", - "𝄞♪♩♫♬": "𝄞♪♩♫♬--1JEq", - "💩": "💩--2i25", -} -`; - -exports[`localIdentName option should correctly replace escaped symbols in selector: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".test--NW9Y { - background: red; -} - -._test--23te { - background: blue; -} - -.className--1E8H { - background: red; -} - -#someId--3w7J { - background: green; -} - -.className--1E8H .subClass--3lo0 { - color: green; -} - -#someId--3w7J .subClass--3lo0 { - color: blue; -} - -.-a0-34a___f--2nJ5 { - color: red; -} - -.m_x_\\\\@--2G3b { - margin-left: auto !important; - margin-right: auto !important; -} - -.B\\\\&W\\\\?--1s8i { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -.\\\\3A \\\\\`\\\\(--3G_T { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -.\\\\31 a2b3c--1_Xs { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#\\\\#fake-id--1d23 { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#-a-b-c---opia { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#©--143H { - color: black; -} - -.♥--8xlN { background: lime; } -.©--143H { background: lime; } -.“‘’”--2yW9 { background: lime; } -.☺☃--3sW7 { background: lime; } -.⌘⌥--6z9v { background: lime; } -.𝄞♪♩♫♬--1JEq { background: lime; } -.💩--2i25 { background: lime; } -.\\\\?--2DX4 { background: lime; } -.\\\\@--mE1z { background: lime; } -.\\\\.--2hyg { background: lime; } -.\\\\3A \\\\)--2tSN { background: lime; } -.\\\\3A \\\\\`\\\\(--3G_T { background: lime; } -.\\\\31 23--jOxY { background: lime; } -.\\\\31 a2b3c--1_Xs { background: lime; } -.\\\\--dDVm { background: lime; } -.\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\>--2mic { background: lime; } -.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\.--2vJ9 { background: lime; } -.\\\\#--1cQh { background: lime; } -.\\\\#\\\\#--1u97 { background: lime; } -.\\\\#\\\\.\\\\#\\\\.\\\\#--2QoP { background: lime; } -.\\\\_--2vOX { background: lime; } -.\\\\{\\\\}--3lRh { background: lime; } -.\\\\#fake\\\\-id--1d23 { background: lime; } -.foo\\\\.bar--3ZJa { background: lime; } -.\\\\3A hover--1EAJ { background: lime; } -.\\\\3A hover\\\\3A focus\\\\3A active--1v8f { background: lime; } -.\\\\[attr\\\\=value\\\\]--2y3U { background: lime; } -.f\\\\/o\\\\/o--OYOz { background: lime; } -.f\\\\\\\\o\\\\\\\\o--1Knj { background: lime; } -.f\\\\*o\\\\*o--3sRc { background: lime; } -.f\\\\!o\\\\!o--3x3B { background: lime; } -.f\\\\'o\\\\'o--2fVl { background: lime; } -.f\\\\~o\\\\~o--lYb3 { background: lime; } -.f\\\\+o\\\\+o--38BA { background: lime; } - -.foo\\\\/bar--36uD { - background: hotpink; -} - -.foo\\\\\\\\bar--2KL0 { - background: hotpink; -} - -.foo\\\\/bar\\\\/baz--oTEb { - background: hotpink; -} - -.foo\\\\\\\\bar\\\\\\\\baz--2Id2 { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option should correctly replace escaped symbols in selector: warnings 1`] = `Array []`; - -exports[`localIdentName option should have only hash: errors 1`] = `Array []`; - -exports[`localIdentName option should have only hash: locals 1`] = ` -Object { - "#": "O8Yw611P", - "##": "_3er0DBiz", - "#.#.#": "_22RlZfs4", - "#fake-id": "_3i_zUQNU", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "_3hmdGGWi", - "-a-b-c-": "_1cY1s7c1", - "-a0-34a___f": "_3RHUZpqp", - ".": "nfd9MoI8", - "123": "_3JQcZq0t", - "1a2b3c": "_3IsxVsEE", - ":)": "_3EKgIWue", - ":\`(": "_3oWIzQc7", - ":hover": "B2whyhV4", - ":hover:focus:active": "_3R7r57b4", - "<><<<>><>": "Tr9vNLcW", - "

": "_3Lowms-R", - "?": "mRRxxKEQ", - "@": "_3ZlTEPhx", - "B&W?": "_3d3wghvo", - "[attr=value]": "_3GgRcos7", - "_": "_2V6oBdW4", - "_test": "_3Q--BATR", - "className": "_3wBIH6Tw", - "f!o!o": "_2pDEJqK-", - "f'o'o": "_3297Sjlr", - "f*o*o": "MI6DPcI5", - "f+o+o": "_3aNwyLoj", - "f/o/o": "jbPgrxdZ", - "f\\\\o\\\\o": "_3x1WTWOH", - "foo.bar": "_2FVtFG40", - "foo/bar": "_13Q-TIeR", - "foo/bar/baz": "_1I8mGSan", - "foo\\\\bar": "LKTPJkpW", - "foo\\\\bar\\\\baz": "xcAsBCbt", - "f~o~o": "_1TY6Bok1", - "m_x_@": "_3SfN7O2q", - "someId": "mxosG-Ww", - "subClass": "_3jIM-zUk", - "test": "_1Os7JVOf", - "{}": "_2ZR3d8gm", - "©": "_3QaoFt--", - "“‘’”": "_3xI9AT1p", - "⌘⌥": "_1V-to4Of", - "☺☃": "uy8uve6R", - "♥": "kO1_7SYu", - "𝄞♪♩♫♬": "_1tfs0VJo", - "💩": "_2Cl61yWh", -} -`; - -exports[`localIdentName option should have only hash: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - "._1Os7JVOf { - background: red; -} - -._3Q--BATR { - background: blue; -} - -._3wBIH6Tw { - background: red; -} - -#mxosG-Ww { - background: green; -} - -._3wBIH6Tw ._3jIM-zUk { - color: green; -} - -#mxosG-Ww ._3jIM-zUk { - color: blue; -} - -._3RHUZpqp { - color: red; -} - -._3SfN7O2q { - margin-left: auto !important; - margin-right: auto !important; -} - -._3d3wghvo { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -._3oWIzQc7 { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -._3IsxVsEE { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#_3i_zUQNU { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#_1cY1s7c1 { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#_3QaoFt-- { - color: black; -} - -.kO1_7SYu { background: lime; } -._3QaoFt-- { background: lime; } -._3xI9AT1p { background: lime; } -.uy8uve6R { background: lime; } -._1V-to4Of { background: lime; } -._1tfs0VJo { background: lime; } -._2Cl61yWh { background: lime; } -.mRRxxKEQ { background: lime; } -._3ZlTEPhx { background: lime; } -.nfd9MoI8 { background: lime; } -._3EKgIWue { background: lime; } -._3oWIzQc7 { background: lime; } -._3JQcZq0t { background: lime; } -._3IsxVsEE { background: lime; } -._3Lowms-R { background: lime; } -.Tr9vNLcW { background: lime; } -._3hmdGGWi { background: lime; } -.O8Yw611P { background: lime; } -._3er0DBiz { background: lime; } -._22RlZfs4 { background: lime; } -._2V6oBdW4 { background: lime; } -._2ZR3d8gm { background: lime; } -._3i_zUQNU { background: lime; } -._2FVtFG40 { background: lime; } -.B2whyhV4 { background: lime; } -._3R7r57b4 { background: lime; } -._3GgRcos7 { background: lime; } -.jbPgrxdZ { background: lime; } -._3x1WTWOH { background: lime; } -.MI6DPcI5 { background: lime; } -._2pDEJqK- { background: lime; } -._3297Sjlr { background: lime; } -._1TY6Bok1 { background: lime; } -._3aNwyLoj { background: lime; } - -._13Q-TIeR { - background: hotpink; -} - -.LKTPJkpW { - background: hotpink; -} - -._1I8mGSan { - background: hotpink; -} - -.xcAsBCbt { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option should have only hash: warnings 1`] = `Array []`; - -exports[`localIdentName option should have path naming with context: errors 1`] = `Array []`; - -exports[`localIdentName option should have path naming with context: locals 1`] = ` -Object { - "#": "fixtures/modules/--localIdentName--#", - "##": "fixtures/modules/--localIdentName--##", - "#.#.#": "fixtures/modules/--localIdentName--#.#.#", - "#fake-id": "fixtures/modules/--localIdentName--#fake-id", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "fixtures/modules/--localIdentName--++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", - "-a-b-c-": "fixtures/modules/--localIdentName---a-b-c-", - "-a0-34a___f": "fixtures/modules/--localIdentName---a0-34a___f", - ".": "fixtures/modules/--localIdentName--.", - "123": "fixtures/modules/--localIdentName--123", - "1a2b3c": "fixtures/modules/--localIdentName--1a2b3c", - ":)": "fixtures/modules/--localIdentName--:)", - ":\`(": "fixtures/modules/--localIdentName--:\`(", - ":hover": "fixtures/modules/--localIdentName--:hover", - ":hover:focus:active": "fixtures/modules/--localIdentName--:hover:focus:active", - "<><<<>><>": "fixtures/modules/--localIdentName--<><<<>><>", - "

": "fixtures/modules/--localIdentName--

", - "?": "fixtures/modules/--localIdentName--?", - "@": "fixtures/modules/--localIdentName--@", - "B&W?": "fixtures/modules/--localIdentName--B&W?", - "[attr=value]": "fixtures/modules/--localIdentName--[attr=value]", - "_": "fixtures/modules/--localIdentName--_", - "_test": "fixtures/modules/--localIdentName--_test", - "className": "fixtures/modules/--localIdentName--className", - "f!o!o": "fixtures/modules/--localIdentName--f!o!o", - "f'o'o": "fixtures/modules/--localIdentName--f'o'o", - "f*o*o": "fixtures/modules/--localIdentName--f*o*o", - "f+o+o": "fixtures/modules/--localIdentName--f+o+o", - "f/o/o": "fixtures/modules/--localIdentName--f/o/o", - "f\\\\o\\\\o": "fixtures/modules/--localIdentName--f\\\\o\\\\o", - "foo.bar": "fixtures/modules/--localIdentName--foo.bar", - "foo/bar": "fixtures/modules/--localIdentName--foo/bar", - "foo/bar/baz": "fixtures/modules/--localIdentName--foo/bar/baz", - "foo\\\\bar": "fixtures/modules/--localIdentName--foo\\\\bar", - "foo\\\\bar\\\\baz": "fixtures/modules/--localIdentName--foo\\\\bar\\\\baz", - "f~o~o": "fixtures/modules/--localIdentName--f~o~o", - "m_x_@": "fixtures/modules/--localIdentName--m_x_@", - "someId": "fixtures/modules/--localIdentName--someId", - "subClass": "fixtures/modules/--localIdentName--subClass", - "test": "fixtures/modules/--localIdentName--test", - "{}": "fixtures/modules/--localIdentName--{}", - "©": "fixtures/modules/--localIdentName--©", - "“‘’”": "fixtures/modules/--localIdentName--“‘’”", - "⌘⌥": "fixtures/modules/--localIdentName--⌘⌥", - "☺☃": "fixtures/modules/--localIdentName--☺☃", - "♥": "fixtures/modules/--localIdentName--♥", - "𝄞♪♩♫♬": "fixtures/modules/--localIdentName--𝄞♪♩♫♬", - "💩": "fixtures/modules/--localIdentName--💩", -} -`; - -exports[`localIdentName option should have path naming with context: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".fixtures\\\\/modules\\\\/--localIdentName--test { - background: red; -} - -.fixtures\\\\/modules\\\\/--localIdentName--_test { - background: blue; -} - -.fixtures\\\\/modules\\\\/--localIdentName--className { - background: red; -} - -#fixtures\\\\/modules\\\\/--localIdentName--someId { - background: green; -} - -.fixtures\\\\/modules\\\\/--localIdentName--className .fixtures\\\\/modules\\\\/--localIdentName--subClass { - color: green; -} - -#fixtures\\\\/modules\\\\/--localIdentName--someId .fixtures\\\\/modules\\\\/--localIdentName--subClass { - color: blue; -} - -.fixtures\\\\/modules\\\\/--localIdentName---a0-34a___f { - color: red; -} - -.fixtures\\\\/modules\\\\/--localIdentName--m_x_\\\\@ { - margin-left: auto !important; - margin-right: auto !important; -} - -.fixtures\\\\/modules\\\\/--localIdentName--B\\\\&W\\\\? { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A \\\\\`\\\\( { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -.fixtures\\\\/modules\\\\/--localIdentName--\\\\31 a2b3c { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#fixtures\\\\/modules\\\\/--localIdentName--\\\\#fake-id { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#fixtures\\\\/modules\\\\/--localIdentName---a-b-c- { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#fixtures\\\\/modules\\\\/--localIdentName--© { - color: black; -} - -.fixtures\\\\/modules\\\\/--localIdentName--♥ { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--© { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--“‘’” { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--☺☃ { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--⌘⌥ { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--𝄞♪♩♫♬ { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--💩 { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\? { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\@ { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\. { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A \\\\) { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A \\\\\`\\\\( { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\31 23 { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\31 a2b3c { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\ { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\# { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\#\\\\# { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\_ { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\{\\\\} { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\#fake\\\\-id { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\.bar { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A hover { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--\\\\[attr\\\\=value\\\\] { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--f\\\\/o\\\\/o { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--f\\\\\\\\o\\\\\\\\o { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--f\\\\*o\\\\*o { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--f\\\\!o\\\\!o { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--f\\\\'o\\\\'o { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--f\\\\~o\\\\~o { background: lime; } -.fixtures\\\\/modules\\\\/--localIdentName--f\\\\+o\\\\+o { background: lime; } - -.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\/bar { - background: hotpink; -} - -.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\\\\\bar { - background: hotpink; -} - -.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\/bar\\\\/baz { - background: hotpink; -} - -.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\\\\\bar\\\\\\\\baz { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option should have path naming with context: warnings 1`] = `Array []`; - -exports[`localIdentName option should prefixes leading hyphen + digit with underscore: errors 1`] = `Array []`; - -exports[`localIdentName option should prefixes leading hyphen + digit with underscore: locals 1`] = ` -Object { - "#": "_-1#", - "##": "_-1##", - "#.#.#": "_-1#.#.#", - "#fake-id": "_-1#fake-id", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "_-1++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", - "-a-b-c-": "_-1-a-b-c-", - "-a0-34a___f": "_-1-a0-34a___f", - ".": "_-1.", - "123": "_-1123", - "1a2b3c": "_-11a2b3c", - ":)": "_-1:)", - ":\`(": "_-1:\`(", - ":hover": "_-1:hover", - ":hover:focus:active": "_-1:hover:focus:active", - "<><<<>><>": "_-1<><<<>><>", - "

": "_-1

", - "?": "_-1?", - "@": "_-1@", - "B&W?": "_-1B&W?", - "[attr=value]": "_-1[attr=value]", - "_": "_-1_", - "_test": "_-1_test", - "className": "_-1className", - "f!o!o": "_-1f!o!o", - "f'o'o": "_-1f'o'o", - "f*o*o": "_-1f*o*o", - "f+o+o": "_-1f+o+o", - "f/o/o": "_-1f/o/o", - "f\\\\o\\\\o": "_-1f\\\\o\\\\o", - "foo.bar": "_-1foo.bar", - "foo/bar": "_-1foo/bar", - "foo/bar/baz": "_-1foo/bar/baz", - "foo\\\\bar": "_-1foo\\\\bar", - "foo\\\\bar\\\\baz": "_-1foo\\\\bar\\\\baz", - "f~o~o": "_-1f~o~o", - "m_x_@": "_-1m_x_@", - "someId": "_-1someId", - "subClass": "_-1subClass", - "test": "_-1test", - "{}": "_-1{}", - "©": "_-1©", - "“‘’”": "_-1“‘’”", - "⌘⌥": "_-1⌘⌥", - "☺☃": "_-1☺☃", - "♥": "_-1♥", - "𝄞♪♩♫♬": "_-1𝄞♪♩♫♬", - "💩": "_-1💩", -} -`; - -exports[`localIdentName option should prefixes leading hyphen + digit with underscore: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - "._-1test { - background: red; -} - -._-1_test { - background: blue; -} - -._-1className { - background: red; -} - -#_-1someId { - background: green; -} - -._-1className ._-1subClass { - color: green; -} - -#_-1someId ._-1subClass { - color: blue; -} - -._-1-a0-34a___f { - color: red; -} - -._-1m_x_\\\\@ { - margin-left: auto !important; - margin-right: auto !important; -} - -._-1B\\\\&W\\\\? { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -._-1\\\\3A \\\\\`\\\\( { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -._-1\\\\31 a2b3c { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#_-1\\\\#fake-id { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#_-1-a-b-c- { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#_-1© { - color: black; -} - -._-1♥ { background: lime; } -._-1© { background: lime; } -._-1“‘’” { background: lime; } -._-1☺☃ { background: lime; } -._-1⌘⌥ { background: lime; } -._-1𝄞♪♩♫♬ { background: lime; } -._-1💩 { background: lime; } -._-1\\\\? { background: lime; } -._-1\\\\@ { background: lime; } -._-1\\\\. { background: lime; } -._-1\\\\3A \\\\) { background: lime; } -._-1\\\\3A \\\\\`\\\\( { background: lime; } -._-1\\\\31 23 { background: lime; } -._-1\\\\31 a2b3c { background: lime; } -._-1\\\\ { background: lime; } -._-1\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } -._-1\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } -._-1\\\\# { background: lime; } -._-1\\\\#\\\\# { background: lime; } -._-1\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } -._-1\\\\_ { background: lime; } -._-1\\\\{\\\\} { background: lime; } -._-1\\\\#fake\\\\-id { background: lime; } -._-1foo\\\\.bar { background: lime; } -._-1\\\\3A hover { background: lime; } -._-1\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } -._-1\\\\[attr\\\\=value\\\\] { background: lime; } -._-1f\\\\/o\\\\/o { background: lime; } -._-1f\\\\\\\\o\\\\\\\\o { background: lime; } -._-1f\\\\*o\\\\*o { background: lime; } -._-1f\\\\!o\\\\!o { background: lime; } -._-1f\\\\'o\\\\'o { background: lime; } -._-1f\\\\~o\\\\~o { background: lime; } -._-1f\\\\+o\\\\+o { background: lime; } - -._-1foo\\\\/bar { - background: hotpink; -} - -._-1foo\\\\\\\\bar { - background: hotpink; -} - -._-1foo\\\\/bar\\\\/baz { - background: hotpink; -} - -._-1foo\\\\\\\\bar\\\\\\\\baz { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option should prefixes leading hyphen + digit with underscore: warnings 1`] = `Array []`; - -exports[`localIdentName option should prefixes two leading hyphens with underscore: errors 1`] = `Array []`; - -exports[`localIdentName option should prefixes two leading hyphens with underscore: locals 1`] = ` -Object { - "#": "_--#", - "##": "_--##", - "#.#.#": "_--#.#.#", - "#fake-id": "_--#fake-id", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "_--++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", - "-a-b-c-": "_---a-b-c-", - "-a0-34a___f": "_---a0-34a___f", - ".": "_--.", - "123": "_--123", - "1a2b3c": "_--1a2b3c", - ":)": "_--:)", - ":\`(": "_--:\`(", - ":hover": "_--:hover", - ":hover:focus:active": "_--:hover:focus:active", - "<><<<>><>": "_--<><<<>><>", - "

": "_--

", - "?": "_--?", - "@": "_--@", - "B&W?": "_--B&W?", - "[attr=value]": "_--[attr=value]", - "_": "_--_", - "_test": "_--_test", - "className": "_--className", - "f!o!o": "_--f!o!o", - "f'o'o": "_--f'o'o", - "f*o*o": "_--f*o*o", - "f+o+o": "_--f+o+o", - "f/o/o": "_--f/o/o", - "f\\\\o\\\\o": "_--f\\\\o\\\\o", - "foo.bar": "_--foo.bar", - "foo/bar": "_--foo/bar", - "foo/bar/baz": "_--foo/bar/baz", - "foo\\\\bar": "_--foo\\\\bar", - "foo\\\\bar\\\\baz": "_--foo\\\\bar\\\\baz", - "f~o~o": "_--f~o~o", - "m_x_@": "_--m_x_@", - "someId": "_--someId", - "subClass": "_--subClass", - "test": "_--test", - "{}": "_--{}", - "©": "_--©", - "“‘’”": "_--“‘’”", - "⌘⌥": "_--⌘⌥", - "☺☃": "_--☺☃", - "♥": "_--♥", - "𝄞♪♩♫♬": "_--𝄞♪♩♫♬", - "💩": "_--💩", -} -`; - -exports[`localIdentName option should prefixes two leading hyphens with underscore: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - "._--test { - background: red; -} - -._--_test { - background: blue; -} - -._--className { - background: red; -} - -#_--someId { - background: green; -} - -._--className ._--subClass { - color: green; -} - -#_--someId ._--subClass { - color: blue; -} - -._---a0-34a___f { - color: red; -} - -._--m_x_\\\\@ { - margin-left: auto !important; - margin-right: auto !important; -} - -._--B\\\\&W\\\\? { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -._--\\\\3A \\\\\`\\\\( { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -._--\\\\31 a2b3c { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#_--\\\\#fake-id { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#_---a-b-c- { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#_--© { - color: black; -} - -._--♥ { background: lime; } -._--© { background: lime; } -._--“‘’” { background: lime; } -._--☺☃ { background: lime; } -._--⌘⌥ { background: lime; } -._--𝄞♪♩♫♬ { background: lime; } -._--💩 { background: lime; } -._--\\\\? { background: lime; } -._--\\\\@ { background: lime; } -._--\\\\. { background: lime; } -._--\\\\3A \\\\) { background: lime; } -._--\\\\3A \\\\\`\\\\( { background: lime; } -._--\\\\31 23 { background: lime; } -._--\\\\31 a2b3c { background: lime; } -._--\\\\ { background: lime; } -._--\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } -._--\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } -._--\\\\# { background: lime; } -._--\\\\#\\\\# { background: lime; } -._--\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } -._--\\\\_ { background: lime; } -._--\\\\{\\\\} { background: lime; } -._--\\\\#fake\\\\-id { background: lime; } -._--foo\\\\.bar { background: lime; } -._--\\\\3A hover { background: lime; } -._--\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } -._--\\\\[attr\\\\=value\\\\] { background: lime; } -._--f\\\\/o\\\\/o { background: lime; } -._--f\\\\\\\\o\\\\\\\\o { background: lime; } -._--f\\\\*o\\\\*o { background: lime; } -._--f\\\\!o\\\\!o { background: lime; } -._--f\\\\'o\\\\'o { background: lime; } -._--f\\\\~o\\\\~o { background: lime; } -._--f\\\\+o\\\\+o { background: lime; } - -._--foo\\\\/bar { - background: hotpink; -} - -._--foo\\\\\\\\bar { - background: hotpink; -} - -._--foo\\\\/bar\\\\/baz { - background: hotpink; -} - -._--foo\\\\\\\\bar\\\\\\\\baz { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option should prefixes two leading hyphens with underscore: warnings 1`] = `Array []`; - -exports[`localIdentName option should saves underscore prefix in exported class names: errors 1`] = `Array []`; - -exports[`localIdentName option should saves underscore prefix in exported class names: locals 1`] = ` -Object { - "#": "#", - "##": "##", - "#.#.#": "#.#.#", - "#fake-id": "#fake-id", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", - "-a-b-c-": "-a-b-c-", - "-a0-34a___f": "-a0-34a___f", - ".": ".", - "123": "123", - "1a2b3c": "1a2b3c", - ":)": ":)", - ":\`(": ":\`(", - ":hover": ":hover", - ":hover:focus:active": ":hover:focus:active", - "<><<<>><>": "<><<<>><>", - "

": "

", - "?": "?", - "@": "@", - "B&W?": "B&W?", - "[attr=value]": "[attr=value]", - "_": "_", - "_test": "_test", - "className": "className", - "f!o!o": "f!o!o", - "f'o'o": "f'o'o", - "f*o*o": "f*o*o", - "f+o+o": "f+o+o", - "f/o/o": "f/o/o", - "f\\\\o\\\\o": "f\\\\o\\\\o", - "foo.bar": "foo.bar", - "foo/bar": "foo/bar", - "foo/bar/baz": "foo/bar/baz", - "foo\\\\bar": "foo\\\\bar", - "foo\\\\bar\\\\baz": "foo\\\\bar\\\\baz", - "f~o~o": "f~o~o", - "m_x_@": "m_x_@", - "someId": "someId", - "subClass": "subClass", - "test": "test", - "{}": "{}", - "©": "©", - "“‘’”": "“‘’”", - "⌘⌥": "⌘⌥", - "☺☃": "☺☃", - "♥": "♥", - "𝄞♪♩♫♬": "𝄞♪♩♫♬", - "💩": "💩", -} -`; - -exports[`localIdentName option should saves underscore prefix in exported class names: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".test { - background: red; -} - -._test { - background: blue; -} - -.className { - background: red; -} - -#someId { - background: green; -} - -.className .subClass { - color: green; -} - -#someId .subClass { - color: blue; -} - -.-a0-34a___f { - color: red; -} - -.m_x_\\\\@ { - margin-left: auto !important; - margin-right: auto !important; -} - -.B\\\\&W\\\\? { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -.\\\\3A \\\\\`\\\\( { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -.\\\\31 a2b3c { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#\\\\#fake-id { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#-a-b-c- { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#© { - color: black; -} - -.♥ { background: lime; } -.© { background: lime; } -.“‘’” { background: lime; } -.☺☃ { background: lime; } -.⌘⌥ { background: lime; } -.𝄞♪♩♫♬ { background: lime; } -.💩 { background: lime; } -.\\\\? { background: lime; } -.\\\\@ { background: lime; } -.\\\\. { background: lime; } -.\\\\3A \\\\) { background: lime; } -.\\\\3A \\\\\`\\\\( { background: lime; } -.\\\\31 23 { background: lime; } -.\\\\31 a2b3c { background: lime; } -.\\\\ { background: lime; } -.\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } -.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } -.\\\\# { background: lime; } -.\\\\#\\\\# { background: lime; } -.\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } -.\\\\_ { background: lime; } -.\\\\{\\\\} { background: lime; } -.\\\\#fake\\\\-id { background: lime; } -.foo\\\\.bar { background: lime; } -.\\\\3A hover { background: lime; } -.\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } -.\\\\[attr\\\\=value\\\\] { background: lime; } -.f\\\\/o\\\\/o { background: lime; } -.f\\\\\\\\o\\\\\\\\o { background: lime; } -.f\\\\*o\\\\*o { background: lime; } -.f\\\\!o\\\\!o { background: lime; } -.f\\\\'o\\\\'o { background: lime; } -.f\\\\~o\\\\~o { background: lime; } -.f\\\\+o\\\\+o { background: lime; } - -.foo\\\\/bar { - background: hotpink; -} - -.foo\\\\\\\\bar { - background: hotpink; -} - -.foo\\\\/bar\\\\/baz { - background: hotpink; -} - -.foo\\\\\\\\bar\\\\\\\\baz { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option should saves underscore prefix in exported class names: warnings 1`] = `Array []`; - -exports[`localIdentName option should use hash prefix: errors 1`] = `Array []`; - -exports[`localIdentName option should use hash prefix: locals 1`] = ` -Object { - "#": "#--8caa1febb853c79bc5740a51d69b0603", - "##": "##--e6e70cede894cf8ecef86891b00438fa", - "#.#.#": "#.#.#--f93b20473b91262c9634348506fe36fe", - "#fake-id": "#fake-id--a0d1d29b3c920aa3985fb11586f994e6", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.--937528d96919903e5a5172d04ced259a", - "-a-b-c-": "-a-b-c---5b1d694462fbb9af324bb0ed2a08d755", - "-a0-34a___f": "-a0-34a___f--e99d667fe0ceff9363b011302ac3f508", - ".": ".--12cd2fe5f9c81510bf687df3b6461cb1", - "123": "123--e5bcdf25b52ca483d65894eae427ccff", - "1a2b3c": "1a2b3c--165cab18879cee9a48ae4cbb5fdd39a8", - ":)": ":)--2f61aa454a9e7fd205da87e665dff51b", - ":\`(": ":\`(--612466e663a46fe230e6db648089b4c4", - ":hover": ":hover--af8b669c2dc29371d450d428f0bfa5d2", - ":hover:focus:active": ":hover:focus:active--5c55d7a925c8ee5de2e8f175badce4d6", - "<><<<>><>": "<><<<>><>--ac5886bfd5b1a8264bdda01deaf52762", - "

": "

--c168cd4e00ec053d5bd509da80f5db38", - "?": "?--4f09eb0a56c6b8f25f7ef4def006df7e", - "@": "@--254139a6858615f890093da92bb4c90b", - "B&W?": "B&W?--8c20b8856e47b8157bf47451b1b6d9a6", - "[attr=value]": "[attr=value]--db83b30c2535d713bd9f8fd195909f24", - "_": "_--f18cdd3b2ff360c3f4c10cc7559ff003", - "_test": "_test--d745495d407559ef605c9072243801fd", - "className": "className--eab624d1bc6b9c6b6a4278d1030dd690", - "f!o!o": "f!o!o--ea3b21fd9d4327fbc9d8b949a2bd5823", - "f'o'o": "f'o'o--95fe160ec21a5b70221e47b09b21fcd2", - "f*o*o": "f*o*o--a5f60f217da867c314860c5b2e28bbfd", - "f+o+o": "f+o+o--1e99689a1b3985adff358f3bd4aea7ed", - "f/o/o": "f/o/o--5de918433a006304ca487065b8626dd4", - "f\\\\o\\\\o": "f\\\\o\\\\o--e9ae2e1857289425acfa40a3f741babd", - "foo.bar": "foo.bar--e1dfb05dd5c7c36228cc87fe2cd0c6b1", - "foo/bar": "foo/bar--5b852e67587217ab19651f30a9b4df53", - "foo/bar/baz": "foo/bar/baz--d917a2cf9531290fbf3aa43e0cc0520f", - "foo\\\\bar": "foo\\\\bar--6cf70ff94feb1257af10e9ddcc47d54f", - "foo\\\\bar\\\\baz": "foo\\\\bar\\\\baz--1900aa5b4b5b2443299cc5e8afa9b3b4", - "f~o~o": "f~o~o--b9707d2eae11417a88a3f638b64eca30", - "m_x_@": "m_x_@--de463fc45a1e6dd0ed23f26a568f1d61", - "someId": "someId--a0ce220cc9bbb1ee0e85cc0d1f0c6aa9", - "subClass": "subClass--2c82998be8a2b2e94ad7be56c9e685cd", - "test": "test--307c32aa793aaec9aecded85a9fdd448", - "{}": "{}--6db4a8e6a78415e8209253db0c3dd7c5", - "©": "©--074c8458dd077a052783bb5f4c5b5911", - "“‘’”": "“‘’”--00f526c32cd5eec8f5de2965f2ca9457", - "⌘⌥": "⌘⌥--c42685a7cfeb3b510a6d8169d58bf02d", - "☺☃": "☺☃--0ea31e7c348b5949a05bce4eebcb59eb", - "♥": "♥--37952b59a9aa684be1d91192f863babf", - "𝄞♪♩♫♬": "𝄞♪♩♫♬--ece85fb9868788feab6a8f1259b9ff9d", - "💩": "💩--1c19fe6dd9ca556af34bbda8a2cbbbdf", -} -`; - -exports[`localIdentName option should use hash prefix: module (evaluated) 1`] = ` -Array [ - Array [ - 1, - ".test--307c32aa793aaec9aecded85a9fdd448 { - background: red; -} - -._test--d745495d407559ef605c9072243801fd { - background: blue; -} - -.className--eab624d1bc6b9c6b6a4278d1030dd690 { - background: red; -} - -#someId--a0ce220cc9bbb1ee0e85cc0d1f0c6aa9 { - background: green; -} - -.className--eab624d1bc6b9c6b6a4278d1030dd690 .subClass--2c82998be8a2b2e94ad7be56c9e685cd { - color: green; -} - -#someId--a0ce220cc9bbb1ee0e85cc0d1f0c6aa9 .subClass--2c82998be8a2b2e94ad7be56c9e685cd { - color: blue; -} - -.-a0-34a___f--e99d667fe0ceff9363b011302ac3f508 { - color: red; -} - -.m_x_\\\\@--de463fc45a1e6dd0ed23f26a568f1d61 { - margin-left: auto !important; - margin-right: auto !important; -} - -.B\\\\&W\\\\?--8c20b8856e47b8157bf47451b1b6d9a6 { - margin-left: auto !important; - margin-right: auto !important; -} - -/* matches elements with class=\\":\`(\\" */ -.\\\\3A \\\\\`\\\\(--612466e663a46fe230e6db648089b4c4 { - color: aqua; -} - -/* matches elements with class=\\"1a2b3c\\" */ -.\\\\31 a2b3c--165cab18879cee9a48ae4cbb5fdd39a8 { - color: aliceblue; -} - -/* matches the element with id=\\"#fake-id\\" */ -#\\\\#fake-id--a0d1d29b3c920aa3985fb11586f994e6 { - color: antiquewhite; -} - -/* matches the element with id=\\"-a-b-c-\\" */ -#-a-b-c---5b1d694462fbb9af324bb0ed2a08d755 { - color: azure; -} - -/* matches the element with id=\\"©\\" */ -#©--074c8458dd077a052783bb5f4c5b5911 { - color: black; -} - -.♥--37952b59a9aa684be1d91192f863babf { background: lime; } -.©--074c8458dd077a052783bb5f4c5b5911 { background: lime; } -.“‘’”--00f526c32cd5eec8f5de2965f2ca9457 { background: lime; } -.☺☃--0ea31e7c348b5949a05bce4eebcb59eb { background: lime; } -.⌘⌥--c42685a7cfeb3b510a6d8169d58bf02d { background: lime; } -.𝄞♪♩♫♬--ece85fb9868788feab6a8f1259b9ff9d { background: lime; } -.💩--1c19fe6dd9ca556af34bbda8a2cbbbdf { background: lime; } -.\\\\?--4f09eb0a56c6b8f25f7ef4def006df7e { background: lime; } -.\\\\@--254139a6858615f890093da92bb4c90b { background: lime; } -.\\\\.--12cd2fe5f9c81510bf687df3b6461cb1 { background: lime; } -.\\\\3A \\\\)--2f61aa454a9e7fd205da87e665dff51b { background: lime; } -.\\\\3A \\\\\`\\\\(--612466e663a46fe230e6db648089b4c4 { background: lime; } -.\\\\31 23--e5bcdf25b52ca483d65894eae427ccff { background: lime; } -.\\\\31 a2b3c--165cab18879cee9a48ae4cbb5fdd39a8 { background: lime; } -.\\\\--c168cd4e00ec053d5bd509da80f5db38 { background: lime; } -.\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\>--ac5886bfd5b1a8264bdda01deaf52762 { background: lime; } -.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\.--937528d96919903e5a5172d04ced259a { background: lime; } -.\\\\#--8caa1febb853c79bc5740a51d69b0603 { background: lime; } -.\\\\#\\\\#--e6e70cede894cf8ecef86891b00438fa { background: lime; } -.\\\\#\\\\.\\\\#\\\\.\\\\#--f93b20473b91262c9634348506fe36fe { background: lime; } -.\\\\_--f18cdd3b2ff360c3f4c10cc7559ff003 { background: lime; } -.\\\\{\\\\}--6db4a8e6a78415e8209253db0c3dd7c5 { background: lime; } -.\\\\#fake\\\\-id--a0d1d29b3c920aa3985fb11586f994e6 { background: lime; } -.foo\\\\.bar--e1dfb05dd5c7c36228cc87fe2cd0c6b1 { background: lime; } -.\\\\3A hover--af8b669c2dc29371d450d428f0bfa5d2 { background: lime; } -.\\\\3A hover\\\\3A focus\\\\3A active--5c55d7a925c8ee5de2e8f175badce4d6 { background: lime; } -.\\\\[attr\\\\=value\\\\]--db83b30c2535d713bd9f8fd195909f24 { background: lime; } -.f\\\\/o\\\\/o--5de918433a006304ca487065b8626dd4 { background: lime; } -.f\\\\\\\\o\\\\\\\\o--e9ae2e1857289425acfa40a3f741babd { background: lime; } -.f\\\\*o\\\\*o--a5f60f217da867c314860c5b2e28bbfd { background: lime; } -.f\\\\!o\\\\!o--ea3b21fd9d4327fbc9d8b949a2bd5823 { background: lime; } -.f\\\\'o\\\\'o--95fe160ec21a5b70221e47b09b21fcd2 { background: lime; } -.f\\\\~o\\\\~o--b9707d2eae11417a88a3f638b64eca30 { background: lime; } -.f\\\\+o\\\\+o--1e99689a1b3985adff358f3bd4aea7ed { background: lime; } - -.foo\\\\/bar--5b852e67587217ab19651f30a9b4df53 { - background: hotpink; -} - -.foo\\\\\\\\bar--6cf70ff94feb1257af10e9ddcc47d54f { - background: hotpink; -} - -.foo\\\\/bar\\\\/baz--d917a2cf9531290fbf3aa43e0cc0520f { - background: hotpink; -} - -.foo\\\\\\\\bar\\\\\\\\baz--1900aa5b4b5b2443299cc5e8afa9b3b4 { - background: hotpink; -} -", - "", - ], -] -`; - -exports[`localIdentName option should use hash prefix: warnings 1`] = `Array []`; diff --git a/test/__snapshots__/modules-option.test.js.snap b/test/__snapshots__/modules-option.test.js.snap index 45d35998..abab561a 100644 --- a/test/__snapshots__/modules-option.test.js.snap +++ b/test/__snapshots__/modules-option.test.js.snap @@ -43,13 +43,58 @@ exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`gl exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "fade-in": "_3XZSV759G141XcbTZgtQkF", + "slide-right": "_2jinakhsfBWcUNZSsOxUHz", +} +`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "a { + animation: _2jinakhsfBWcUNZSsOxUHz 300ms forwards ease-out, _3XZSV759G141XcbTZgtQkF 300ms forwards ease-out; + +} +", + "", + ], +] +`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "a { + animation: slide-right 300ms forwards ease-out, fade-in 300ms forwards ease-out; + +} +", + "", + ], +] +`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "fade-in": "_fade-in", "slide-right": "_slide-right", } `; -exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -63,14 +108,14 @@ Array [ ] `; -exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "fade-in": "_fade-in", - "slide-right": "_slide-right", + "fade-in": "_3XZSV759G141XcbTZgtQkF", + "slide-right": "_2jinakhsfBWcUNZSsOxUHz", } `; @@ -79,7 +124,7 @@ Array [ Array [ 1, "a { - animation: _slide-right 300ms forwards ease-out, _fade-in 300ms forwards ease-out; + animation: _2jinakhsfBWcUNZSsOxUHz 300ms forwards ease-out, _3XZSV759G141XcbTZgtQkF 300ms forwards ease-out; } ", @@ -111,13 +156,34 @@ exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "fade-in": "_3XZSV759G141XcbTZgtQkF", + "slide-right": "_2jinakhsfBWcUNZSsOxUHz", +} +`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "fade-in": "_fade-in", "slide-right": "_slide-right", } `; -exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -125,8 +191,8 @@ exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "fade-in": "_fade-in", - "slide-right": "_slide-right", + "fade-in": "_3XZSV759G141XcbTZgtQkF", + "slide-right": "_2jinakhsfBWcUNZSsOxUHz", } `; @@ -173,6 +239,50 @@ exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \` exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "bar-1": "_3GpM4NK17tELexNK1Szvws", + "class-1": "_1GNZOTxutjEX7cZ3Ec7knU", + "class-10": "_15N9BXxWirSgwhYficwysK", +} +`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1GNZOTxutjEX7cZ3Ec7knU, ._15N9BXxWirSgwhYficwysK ._3GpM4NK17tELexNK1Szvws { + color: green; +} +", + "", + ], +] +`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".class-1, .class-10 .bar-1 { + color: green; +} +", + "", + ], +] +`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "bar-1": "_bar-1", "class-1": "_class-1", @@ -180,7 +290,7 @@ Object { } `; -exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -193,15 +303,15 @@ Array [ ] `; -exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "bar-1": "_bar-1", - "class-1": "_class-1", - "class-10": "_class-10", + "bar-1": "_3GpM4NK17tELexNK1Szvws", + "class-1": "_1GNZOTxutjEX7cZ3Ec7knU", + "class-10": "_15N9BXxWirSgwhYficwysK", } `; @@ -209,7 +319,7 @@ exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \` Array [ Array [ 1, - "._class-1, ._class-10 ._bar-1 { + "._1GNZOTxutjEX7cZ3Ec7knU, ._15N9BXxWirSgwhYficwysK ._3GpM4NK17tELexNK1Szvws { color: green; } ", @@ -241,6 +351,28 @@ exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` val exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "bar-1": "_3GpM4NK17tELexNK1Szvws", + "class-1": "_1GNZOTxutjEX7cZ3Ec7knU", + "class-10": "_15N9BXxWirSgwhYficwysK", +} +`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "bar-1": "_bar-1", "class-1": "_class-1", @@ -248,7 +380,7 @@ Object { } `; -exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -256,9 +388,9 @@ exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` val exports[`modules case \`class-names\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "bar-1": "_bar-1", - "class-1": "_class-1", - "class-10": "_class-10", + "bar-1": "_3GpM4NK17tELexNK1Szvws", + "class-1": "_1GNZOTxutjEX7cZ3Ec7knU", + "class-10": "_15N9BXxWirSgwhYficwysK", } `; @@ -285,8 +417,8 @@ exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "c1": "_c1", - "c3": "_c3", + "c1": "_1xn1UbV-5a_s7ig53fR7Lz", + "c3": "_36mr1nZ1pdjd1s5j3RV-z7", } `; @@ -294,7 +426,7 @@ exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value Array [ Array [ 1, - "._c1/*.c2*/._c3 { background: red; } + "._1xn1UbV-5a_s7ig53fR7Lz/*.c2*/._36mr1nZ1pdjd1s5j3RV-z7 { background: red; } ", "", ], @@ -306,13 +438,35 @@ exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "c1": "_1xn1UbV-5a_s7ig53fR7Lz", + "c3": "_36mr1nZ1pdjd1s5j3RV-z7", +} +`; + +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1xn1UbV-5a_s7ig53fR7Lz/*.c2*/._36mr1nZ1pdjd1s5j3RV-z7 { background: red; } +", + "", + ], +] +`; + +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "c1": "_c1", "c3": "_c3", } `; -exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -323,18 +477,18 @@ Array [ ] `; -exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "c1": "_c1", "c3": "_c3", } `; -exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -345,6 +499,28 @@ Array [ ] `; +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "c1": "_1xn1UbV-5a_s7ig53fR7Lz", + "c3": "_36mr1nZ1pdjd1s5j3RV-z7", +} +`; + +exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1xn1UbV-5a_s7ig53fR7Lz/*.c2*/._36mr1nZ1pdjd1s5j3RV-z7 { background: red; } +", + "", + ], +] +`; + exports[`modules case \`comment-in-local\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -361,8 +537,8 @@ exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\ exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1", - "c3": "_c3", + "c1": "_1xn1UbV-5a_s7ig53fR7Lz", + "c3": "_36mr1nZ1pdjd1s5j3RV-z7", } `; @@ -373,13 +549,39 @@ exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\ exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "c1": "_1xn1UbV-5a_s7ig53fR7Lz", + "c3": "_36mr1nZ1pdjd1s5j3RV-z7", +} +`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Object { "c1": "_c1", "c3": "_c3", } `; -exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "c1": "_c1", + "c3": "_c3", +} +`; + +exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -387,8 +589,8 @@ exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\ exports[`modules case \`comment-in-local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1", - "c3": "_c3", + "c1": "_1xn1UbV-5a_s7ig53fR7Lz", + "c3": "_36mr1nZ1pdjd1s5j3RV-z7", } `; @@ -452,7 +654,7 @@ exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "bg": "_bg", + "bg": "_28-VAWbJ8gQCgX50Jcqtzs", } `; @@ -464,7 +666,7 @@ Array [ * a ' above */ -._bg { +._28-VAWbJ8gQCgX50Jcqtzs { background-image: url(/webpack/public/path/img.png); } @@ -479,11 +681,69 @@ Array [ exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "/* + * a ' above + */ + +.bg { + background-image: url(/webpack/public/path/img.png); +} + +/* + * a ' below + */ +", + "", + ], +] +`; + +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "bg": "_bg", +} +`; + +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "/* + * a ' above + */ + +._bg { + background-image: url(/webpack/public/path/img.png); +} + +/* + * a ' below + */ +", + "", + ], +] +`; + +exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`comments\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "bg": "_bg", + "bg": "_28-VAWbJ8gQCgX50Jcqtzs", } `; @@ -495,7 +755,7 @@ Array [ * a ' above */ -._bg { +._28-VAWbJ8gQCgX50Jcqtzs { background-image: url(/webpack/public/path/img.png); } @@ -532,19 +792,39 @@ exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "bg": "_bg", + "bg": "_28-VAWbJ8gQCgX50Jcqtzs", } `; exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "bg": "_bg", +} +`; + +exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`comments\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "bg": "_bg", + "bg": "_28-VAWbJ8gQCgX50Jcqtzs", } `; @@ -572,8 +852,8 @@ exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`glo exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "c1": "_c1", - "c2": "_c2 _c1", + "c1": "_2lVGKlfYXzywV6_acW1a3J", + "c2": "_2FPXZHdIWogtLWkFQcjYj7 _2lVGKlfYXzywV6_acW1a3J", } `; @@ -581,8 +861,8 @@ exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`glo Array [ Array [ 1, - "._c1 { a: 1; } -._c2 { b: 1; } + "._2lVGKlfYXzywV6_acW1a3J { a: 1; } +._2FPXZHdIWogtLWkFQcjYj7 { b: 1; } ", "", ], @@ -595,8 +875,8 @@ exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "c1": "_c1", - "c2": "_c2 _c1", + "c1": "_2lVGKlfYXzywV6_acW1a3J", + "c2": "_2FPXZHdIWogtLWkFQcjYj7 _2lVGKlfYXzywV6_acW1a3J", } `; @@ -604,8 +884,8 @@ exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`loc Array [ Array [ 1, - "._c1 { a: 1; } -._c2 { b: 1; } + "._2lVGKlfYXzywV6_acW1a3J { a: 1; } +._2FPXZHdIWogtLWkFQcjYj7 { b: 1; } ", "", ], @@ -614,16 +894,16 @@ Array [ exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "c1": "_c1", "c2": "_c2 _c1", } `; -exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -635,6 +915,52 @@ Array [ ] `; +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "c1": "_c1", + "c2": "_c2 _c1", +} +`; + +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._c1 { a: 1; } +._c2 { b: 1; } +", + "", + ], +] +`; + +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "c1": "_2lVGKlfYXzywV6_acW1a3J", + "c2": "_2FPXZHdIWogtLWkFQcjYj7 _2lVGKlfYXzywV6_acW1a3J", +} +`; + +exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._2lVGKlfYXzywV6_acW1a3J { a: 1; } +._2FPXZHdIWogtLWkFQcjYj7 { b: 1; } +", + "", + ], +] +`; + exports[`modules case \`composes\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -651,8 +977,8 @@ exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1", - "c2": "_c2 _c1", + "c1": "_2lVGKlfYXzywV6_acW1a3J", + "c2": "_2FPXZHdIWogtLWkFQcjYj7 _2lVGKlfYXzywV6_acW1a3J", } `; @@ -663,13 +989,39 @@ exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "c1": "_2lVGKlfYXzywV6_acW1a3J", + "c2": "_2FPXZHdIWogtLWkFQcjYj7 _2lVGKlfYXzywV6_acW1a3J", +} +`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Object { "c1": "_c1", "c2": "_c2 _c1", } `; -exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "c1": "_c1", + "c2": "_c2 _c1", +} +`; + +exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -677,8 +1029,8 @@ exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`composes\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1", - "c2": "_c2 _c1", + "c1": "_2lVGKlfYXzywV6_acW1a3J", + "c2": "_2FPXZHdIWogtLWkFQcjYj7 _2lVGKlfYXzywV6_acW1a3J", } `; @@ -707,9 +1059,9 @@ exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`g exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "c1": "_c1 _c2", - "c3": "_c3 _c1 _c2", - "c5": "_c5 _c2 _c4", + "c1": "_1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c3": "_1PKuwglb3xQB3gwJBZx6_G _1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c5": "_1MtdK0_soIbU20fcYBbRAe _1xYJRliqpSHYzUvktbdaCo _1jdJRc6HaM3lHykxBSOeII", } `; @@ -717,11 +1069,11 @@ exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`g Array [ Array [ 2, - "._c2 { + "._1xYJRliqpSHYzUvktbdaCo { color: red; } -._c4 { +._1jdJRc6HaM3lHykxBSOeII { color: blue; } @@ -733,9 +1085,9 @@ Array [ ], Array [ 1, - "._c1 { b: 1; } -._c3 { b: 3; } -._c5 { b: 5; } + "._1DZQbqp1oX8etdFa5oSOnV { b: 1; } +._1PKuwglb3xQB3gwJBZx6_G { b: 3; } +._1MtdK0_soIbU20fcYBbRAe { b: 5; } ", "", ], @@ -747,6 +1099,47 @@ exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`g exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "c1": "_1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c3": "_1PKuwglb3xQB3gwJBZx6_G _1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c5": "_1MtdK0_soIbU20fcYBbRAe _1xYJRliqpSHYzUvktbdaCo _1jdJRc6HaM3lHykxBSOeII", +} +`; + +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + "._1xYJRliqpSHYzUvktbdaCo { + color: red; +} + +._1jdJRc6HaM3lHykxBSOeII { + color: blue; +} + +._3YdnDqqBfyyJ_9JKWIle3X{ + c: d +} +", + "", + ], + Array [ + 1, + "._1DZQbqp1oX8etdFa5oSOnV { b: 1; } +._1PKuwglb3xQB3gwJBZx6_G { b: 3; } +._1MtdK0_soIbU20fcYBbRAe { b: 5; } +", + "", + ], +] +`; + +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "c1": "_c1 _c2", "c3": "_c3 _c1 _c2", @@ -754,7 +1147,7 @@ Object { } `; -exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -766,7 +1159,7 @@ Array [ color: blue; } -._test{ +.test{ c: d } ", @@ -783,11 +1176,11 @@ Array [ ] `; -exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "c1": "_c1 _c2", "c3": "_c3 _c1 _c2", @@ -795,7 +1188,7 @@ Object { } `; -exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -824,6 +1217,47 @@ Array [ ] `; +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "c1": "_1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c3": "_1PKuwglb3xQB3gwJBZx6_G _1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c5": "_1MtdK0_soIbU20fcYBbRAe _1xYJRliqpSHYzUvktbdaCo _1jdJRc6HaM3lHykxBSOeII", +} +`; + +exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + "._1xYJRliqpSHYzUvktbdaCo { + color: red; +} + +._1jdJRc6HaM3lHykxBSOeII { + color: blue; +} + +._3YdnDqqBfyyJ_9JKWIle3X{ + c: d +} +", + "", + ], + Array [ + 1, + "._1DZQbqp1oX8etdFa5oSOnV { b: 1; } +._1PKuwglb3xQB3gwJBZx6_G { b: 3; } +._1MtdK0_soIbU20fcYBbRAe { b: 5; } +", + "", + ], +] +`; + exports[`modules case \`composes-1\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -840,9 +1274,9 @@ exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` valu exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1 _c2", - "c3": "_c3 _c1 _c2", - "c5": "_c5 _c2 _c4", + "c1": "_1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c3": "_1PKuwglb3xQB3gwJBZx6_G _1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c5": "_1MtdK0_soIbU20fcYBbRAe _1xYJRliqpSHYzUvktbdaCo _1jdJRc6HaM3lHykxBSOeII", } `; @@ -853,6 +1287,20 @@ exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` valu exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "c1": "_1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c3": "_1PKuwglb3xQB3gwJBZx6_G _1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c5": "_1MtdK0_soIbU20fcYBbRAe _1xYJRliqpSHYzUvktbdaCo _1jdJRc6HaM3lHykxBSOeII", +} +`; + +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Object { "c1": "_c1 _c2", "c3": "_c3 _c1 _c2", @@ -860,13 +1308,13 @@ Object { } `; -exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; -exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "c1": "_c1 _c2", "c3": "_c3 _c1 _c2", @@ -874,6 +1322,20 @@ Object { } `; +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "c1": "_1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c3": "_1PKuwglb3xQB3gwJBZx6_G _1DZQbqp1oX8etdFa5oSOnV _1xYJRliqpSHYzUvktbdaCo", + "c5": "_1MtdK0_soIbU20fcYBbRAe _1xYJRliqpSHYzUvktbdaCo _1jdJRc6HaM3lHykxBSOeII", +} +`; + exports[`modules case \`composes-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -899,9 +1361,9 @@ exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`g exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "c1": "_c1 _c-2", - "c3": "_c3 _c1 _c-2", - "c5": "_c5 _c-2 _c4", + "c1": "_2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c3": "_1TPNBQGz_snQ6aGvXARYo0 _2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c5": "rkDOmH5RkgZGaQ5Fey09Z _3CxjkH18CkEkRZ4FO4v-NQ G8VU3XI3HtOvZPlSEb9S3", } `; @@ -909,11 +1371,11 @@ exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`g Array [ Array [ 2, - "._c-2 { + "._3CxjkH18CkEkRZ4FO4v-NQ { color: red; } -._c4 { +.G8VU3XI3HtOvZPlSEb9S3 { color: blue; } @@ -925,9 +1387,9 @@ Array [ ], Array [ 1, - "._c1 { b: 1; } -._c3 { b: 3; } -._c5 { b: 5; } + "._2tj5Xzv7Ei8HGFvkrlGXyv { b: 1; } +._1TPNBQGz_snQ6aGvXARYo0 { b: 3; } +.rkDOmH5RkgZGaQ5Fey09Z { b: 5; } ", "", ], @@ -939,6 +1401,47 @@ exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`g exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "c1": "_2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c3": "_1TPNBQGz_snQ6aGvXARYo0 _2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c5": "rkDOmH5RkgZGaQ5Fey09Z _3CxjkH18CkEkRZ4FO4v-NQ G8VU3XI3HtOvZPlSEb9S3", +} +`; + +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + "._3CxjkH18CkEkRZ4FO4v-NQ { + color: red; +} + +.G8VU3XI3HtOvZPlSEb9S3 { + color: blue; +} + +._10rrqoQ7Mb3ZcY6LixlnpR{ + c: d +} +", + "", + ], + Array [ + 1, + "._2tj5Xzv7Ei8HGFvkrlGXyv { b: 1; } +._1TPNBQGz_snQ6aGvXARYo0 { b: 3; } +.rkDOmH5RkgZGaQ5Fey09Z { b: 5; } +", + "", + ], +] +`; + +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "c1": "_c1 _c-2", "c3": "_c3 _c1 _c-2", @@ -946,7 +1449,7 @@ Object { } `; -exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -958,7 +1461,7 @@ Array [ color: blue; } -._test{ +.test{ c: d } ", @@ -975,11 +1478,11 @@ Array [ ] `; -exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "c1": "_c1 _c-2", "c3": "_c3 _c1 _c-2", @@ -987,7 +1490,7 @@ Object { } `; -exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -1016,6 +1519,47 @@ Array [ ] `; +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "c1": "_2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c3": "_1TPNBQGz_snQ6aGvXARYo0 _2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c5": "rkDOmH5RkgZGaQ5Fey09Z _3CxjkH18CkEkRZ4FO4v-NQ G8VU3XI3HtOvZPlSEb9S3", +} +`; + +exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + "._3CxjkH18CkEkRZ4FO4v-NQ { + color: red; +} + +.G8VU3XI3HtOvZPlSEb9S3 { + color: blue; +} + +._10rrqoQ7Mb3ZcY6LixlnpR{ + c: d +} +", + "", + ], + Array [ + 1, + "._2tj5Xzv7Ei8HGFvkrlGXyv { b: 1; } +._1TPNBQGz_snQ6aGvXARYo0 { b: 3; } +.rkDOmH5RkgZGaQ5Fey09Z { b: 5; } +", + "", + ], +] +`; + exports[`modules case \`composes-2\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -1032,9 +1576,9 @@ exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` valu exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1 _c-2", - "c3": "_c3 _c1 _c-2", - "c5": "_c5 _c-2 _c4", + "c1": "_2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c3": "_1TPNBQGz_snQ6aGvXARYo0 _2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c5": "rkDOmH5RkgZGaQ5Fey09Z _3CxjkH18CkEkRZ4FO4v-NQ G8VU3XI3HtOvZPlSEb9S3", } `; @@ -1045,6 +1589,20 @@ exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` valu exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "c1": "_2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c3": "_1TPNBQGz_snQ6aGvXARYo0 _2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c5": "rkDOmH5RkgZGaQ5Fey09Z _3CxjkH18CkEkRZ4FO4v-NQ G8VU3XI3HtOvZPlSEb9S3", +} +`; + +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Object { "c1": "_c1 _c-2", "c3": "_c3 _c1 _c-2", @@ -1052,13 +1610,13 @@ Object { } `; -exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; -exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "c1": "_c1 _c-2", "c3": "_c3 _c1 _c-2", @@ -1066,11 +1624,25 @@ Object { } `; -exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; -exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "c1": "_2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c3": "_1TPNBQGz_snQ6aGvXARYo0 _2tj5Xzv7Ei8HGFvkrlGXyv _3CxjkH18CkEkRZ4FO4v-NQ", + "c5": "rkDOmH5RkgZGaQ5Fey09Z _3CxjkH18CkEkRZ4FO4v-NQ G8VU3XI3HtOvZPlSEb9S3", +} +`; + +exports[`modules case \`composes-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = ` Array [ @@ -1092,7 +1664,7 @@ exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "abc": "_abc _def1 _def2", + "abc": "_1bAv4bLL8-hE3a7MyZXrT- _3hEvHUTrMHercKPgTBsK6W _1UYEX_kWsPgokwmdBHI8pU", } `; @@ -1100,7 +1672,7 @@ exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value Array [ Array [ 2, - "._def1 { + "._3hEvHUTrMHercKPgTBsK6W { color: red; } ", @@ -1108,7 +1680,7 @@ Array [ ], Array [ 3, - "._def2 { + "._1UYEX_kWsPgokwmdBHI8pU { color: blue; } ", @@ -1116,7 +1688,7 @@ Array [ ], Array [ 1, - "._abc { + "._1bAv4bLL8-hE3a7MyZXrT- { } ", "", @@ -1130,11 +1702,49 @@ exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "abc": "_abc _def1 _def2", + "abc": "_1bAv4bLL8-hE3a7MyZXrT- _3hEvHUTrMHercKPgTBsK6W _1UYEX_kWsPgokwmdBHI8pU", } `; exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + "._3hEvHUTrMHercKPgTBsK6W { + color: red; +} +", + "", + ], + Array [ + 3, + "._1UYEX_kWsPgokwmdBHI8pU { + color: blue; +} +", + "", + ], + Array [ + 1, + "._1bAv4bLL8-hE3a7MyZXrT- { +} +", + "", + ], +] +`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "abc": "_abc _def1 _def2", +} +`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -1162,17 +1772,17 @@ Array [ ] `; -exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "abc": "_abc _def1 _def2", } `; -exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -1200,6 +1810,44 @@ Array [ ] `; +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "abc": "_1bAv4bLL8-hE3a7MyZXrT- _3hEvHUTrMHercKPgTBsK6W _1UYEX_kWsPgokwmdBHI8pU", +} +`; + +exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + "._3hEvHUTrMHercKPgTBsK6W { + color: red; +} +", + "", + ], + Array [ + 3, + "._1UYEX_kWsPgokwmdBHI8pU { + color: blue; +} +", + "", + ], + Array [ + 1, + "._1bAv4bLL8-hE3a7MyZXrT- { +} +", + "", + ], +] +`; + exports[`modules case \`composes-multiple\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -1216,7 +1864,7 @@ exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc _def1 _def2", + "abc": "_1bAv4bLL8-hE3a7MyZXrT- _3hEvHUTrMHercKPgTBsK6W _1UYEX_kWsPgokwmdBHI8pU", } `; @@ -1228,19 +1876,43 @@ exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc _def1 _def2", + "abc": "_1bAv4bLL8-hE3a7MyZXrT- _3hEvHUTrMHercKPgTBsK6W _1UYEX_kWsPgokwmdBHI8pU", } `; exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "abc": "_abc _def1 _def2", +} +`; + +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "abc": "_abc _def1 _def2", +} +`; + +exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`composes-multiple\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc _def1 _def2", + "abc": "_1bAv4bLL8-hE3a7MyZXrT- _3hEvHUTrMHercKPgTBsK6W _1UYEX_kWsPgokwmdBHI8pU", } `; @@ -1269,7 +1941,7 @@ exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "abc": "_abc _def", + "abc": "_3sT-Lzs6aj6TM9J3mM7_Cj zu3DT3PNuTYdVravHX310", } `; @@ -1277,7 +1949,7 @@ exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` Array [ Array [ 2, - "._def { + ".zu3DT3PNuTYdVravHX310 { color: red; } ", @@ -1285,7 +1957,7 @@ Array [ ], Array [ 1, - "._abc { + "._3sT-Lzs6aj6TM9J3mM7_Cj { } ", "", @@ -1299,11 +1971,41 @@ exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "abc": "_abc _def", + "abc": "_3sT-Lzs6aj6TM9J3mM7_Cj zu3DT3PNuTYdVravHX310", } `; exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + ".zu3DT3PNuTYdVravHX310 { + color: red; +} +", + "", + ], + Array [ + 1, + "._3sT-Lzs6aj6TM9J3mM7_Cj { +} +", + "", + ], +] +`; + +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "abc": "_abc _def", +} +`; + +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -1323,17 +2025,17 @@ Array [ ] `; -exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "abc": "_abc _def", } `; -exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -1353,6 +2055,36 @@ Array [ ] `; +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "abc": "_3sT-Lzs6aj6TM9J3mM7_Cj zu3DT3PNuTYdVravHX310", +} +`; + +exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + ".zu3DT3PNuTYdVravHX310 { + color: red; +} +", + "", + ], + Array [ + 1, + "._3sT-Lzs6aj6TM9J3mM7_Cj { +} +", + "", + ], +] +`; + exports[`modules case \`composes-with-importing\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -1369,7 +2101,7 @@ exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`m exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc _def", + "abc": "_3sT-Lzs6aj6TM9J3mM7_Cj zu3DT3PNuTYdVravHX310", } `; @@ -1381,19 +2113,43 @@ exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`m exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc _def", + "abc": "_3sT-Lzs6aj6TM9J3mM7_Cj zu3DT3PNuTYdVravHX310", } `; exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "abc": "_abc _def", +} +`; + +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "abc": "_abc _def", +} +`; + +exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`composes-with-importing\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc _def", + "abc": "_3sT-Lzs6aj6TM9J3mM7_Cj zu3DT3PNuTYdVravHX310", } `; @@ -1447,7 +2203,7 @@ exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "a": "_a", + "a": "rUmYXW8EUSiAHIrtvLLrL", "blue": "red", } `; @@ -1456,7 +2212,7 @@ exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value Array [ Array [ 1, - "._a { + ".rUmYXW8EUSiAHIrtvLLrL { border: 1px solid red; } ", @@ -1467,11 +2223,58 @@ Array [ exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "blue": "red", +} +`; + +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".a { + border: 1px solid red; +} +", + "", + ], +] +`; + +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "a": "_a", + "blue": "red", +} +`; + +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._a { + border: 1px solid red; +} +", + "", + ], +] +`; + +exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "a": "_a", + "a": "rUmYXW8EUSiAHIrtvLLrL", "blue": "red", } `; @@ -1480,7 +2283,7 @@ exports[`modules case \`declaration-value\`: (export \`all\`) (\`modules\` value Array [ Array [ 1, - "._a { + ".rUmYXW8EUSiAHIrtvLLrL { border: 1px solid red; } ", @@ -1517,20 +2320,45 @@ exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "a": "_a", + "a": "rUmYXW8EUSiAHIrtvLLrL", "blue": "red", } `; exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "blue": "red", +} +`; + +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "a": "_a", + "blue": "red", +} +`; + +exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`declaration-value\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "a": "_a", + "a": "rUmYXW8EUSiAHIrtvLLrL", "blue": "red", } `; @@ -1597,11 +2425,11 @@ Array [ exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; -exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -1615,17 +2443,57 @@ Array [ ] `; -exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; - -exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; - -exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; - -exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "body:before { + content: ''; + background: url(/webpack/public/path/5b1f36bc41ab31f5b801d48ba1d65781.png); +} +", + "", + ], +] +`; + +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "body:before { + content: ''; + background: url(/webpack/public/path/5b1f36bc41ab31f5b801d48ba1d65781.png); +} +", + "", + ], +] +`; + +exports[`modules case \`issue-589\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; @@ -1641,6 +2509,22 @@ exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`issue-589\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; @@ -1780,6 +2664,143 @@ exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "a": "_1AzRoWem1zBzZ9hLlF5IJC", + "b": "_1eH5GHM6EfKYOklEd2mhle", + "bounce": "_355y8MvF-ilfLoMa6xQMuq", + "bounce2": "_20oF72x8NQuWNrNLEjvczE", + "bounce3": "_3OQHSo2d42CWSR-npTXaic", + "bounce4": "_3bL1lmhMKE-Qlk83VSMCHN", +} +`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1AzRoWem1zBzZ9hLlF5IJC { + color: green; +} + +@keyframes _355y8MvF-ilfLoMa6xQMuq { + 0% { + transform: translateY(-100%); + opacity: 0; + } + 5% { + transform: translateY(-100%); + opacity: 0; + } +} + +@-webkit-keyframes _20oF72x8NQuWNrNLEjvczE { + 0% { + transform: translateY(-100%); + opacity: 0; + } + 5% { + transform: translateY(-100%); + opacity: 0; + } +} + +._355y8MvF-ilfLoMa6xQMuq { + animation-name: _355y8MvF-ilfLoMa6xQMuq; + animation: _20oF72x8NQuWNrNLEjvczE 1s ease; +} + +._20oF72x8NQuWNrNLEjvczE { + color: green; + animation: _355y8MvF-ilfLoMa6xQMuq 1s ease; + animation-name: _20oF72x8NQuWNrNLEjvczE; +} + +._3OQHSo2d42CWSR-npTXaic { + animation: _355y8MvF-ilfLoMa6xQMuq 1s ease, _20oF72x8NQuWNrNLEjvczE +} + +._3bL1lmhMKE-Qlk83VSMCHN { + animation: _355y8MvF-ilfLoMa6xQMuq 1s ease, _20oF72x8NQuWNrNLEjvczE; +} + +._1eH5GHM6EfKYOklEd2mhle { + color: green; +} +", + "", + ], +] +`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".a { + color: green; +} + +@keyframes bounce { + 0% { + transform: translateY(-100%); + opacity: 0; + } + 5% { + transform: translateY(-100%); + opacity: 0; + } +} + +@-webkit-keyframes bounce2 { + 0% { + transform: translateY(-100%); + opacity: 0; + } + 5% { + transform: translateY(-100%); + opacity: 0; + } +} + +.bounce { + animation-name: bounce; + animation: bounce2 1s ease; +} + +.bounce2 { + color: green; + animation: bounce 1s ease; + animation-name: bounce2; +} + +.bounce3 { + animation: bounce 1s ease, bounce2 +} + +.bounce4 { + animation: bounce 1s ease, bounce2; +} + +.b { + color: green; +} +", + "", + ], +] +`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "a": "_a", "b": "_b", @@ -1790,7 +2811,7 @@ Object { } `; -exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -1848,18 +2869,18 @@ Array [ ] `; -exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "a": "_a", - "b": "_b", - "bounce": "_bounce", - "bounce2": "_bounce2", - "bounce3": "_bounce3", - "bounce4": "_bounce4", + "a": "_1AzRoWem1zBzZ9hLlF5IJC", + "b": "_1eH5GHM6EfKYOklEd2mhle", + "bounce": "_355y8MvF-ilfLoMa6xQMuq", + "bounce2": "_20oF72x8NQuWNrNLEjvczE", + "bounce3": "_3OQHSo2d42CWSR-npTXaic", + "bounce4": "_3bL1lmhMKE-Qlk83VSMCHN", } `; @@ -1867,11 +2888,11 @@ exports[`modules case \`keyframes-and-animation\`: (export \`all\`) (\`modules\` Array [ Array [ 1, - "._a { + "._1AzRoWem1zBzZ9hLlF5IJC { color: green; } -@keyframes _bounce { +@keyframes _355y8MvF-ilfLoMa6xQMuq { 0% { transform: translateY(-100%); opacity: 0; @@ -1882,7 +2903,7 @@ Array [ } } -@-webkit-keyframes _bounce2 { +@-webkit-keyframes _20oF72x8NQuWNrNLEjvczE { 0% { transform: translateY(-100%); opacity: 0; @@ -1893,26 +2914,26 @@ Array [ } } -._bounce { - animation-name: _bounce; - animation: _bounce2 1s ease; +._355y8MvF-ilfLoMa6xQMuq { + animation-name: _355y8MvF-ilfLoMa6xQMuq; + animation: _20oF72x8NQuWNrNLEjvczE 1s ease; } -._bounce2 { +._20oF72x8NQuWNrNLEjvczE { color: green; - animation: _bounce 1s ease; - animation-name: _bounce2; + animation: _355y8MvF-ilfLoMa6xQMuq 1s ease; + animation-name: _20oF72x8NQuWNrNLEjvczE; } -._bounce3 { - animation: _bounce 1s ease, _bounce2 +._3OQHSo2d42CWSR-npTXaic { + animation: _355y8MvF-ilfLoMa6xQMuq 1s ease, _20oF72x8NQuWNrNLEjvczE } -._bounce4 { - animation: _bounce 1s ease, _bounce2; +._3bL1lmhMKE-Qlk83VSMCHN { + animation: _355y8MvF-ilfLoMa6xQMuq 1s ease, _20oF72x8NQuWNrNLEjvczE; } -._b { +._1eH5GHM6EfKYOklEd2mhle { color: green; } ", @@ -1944,6 +2965,31 @@ exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`m exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "a": "_1AzRoWem1zBzZ9hLlF5IJC", + "b": "_1eH5GHM6EfKYOklEd2mhle", + "bounce": "_355y8MvF-ilfLoMa6xQMuq", + "bounce2": "_20oF72x8NQuWNrNLEjvczE", + "bounce3": "_3OQHSo2d42CWSR-npTXaic", + "bounce4": "_3bL1lmhMKE-Qlk83VSMCHN", +} +`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "a": "_a", "b": "_b", @@ -1954,7 +3000,7 @@ Object { } `; -exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -1962,12 +3008,12 @@ exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`m exports[`modules case \`keyframes-and-animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "a": "_a", - "b": "_b", - "bounce": "_bounce", - "bounce2": "_bounce2", - "bounce3": "_bounce3", - "bounce4": "_bounce4", + "a": "_1AzRoWem1zBzZ9hLlF5IJC", + "b": "_1eH5GHM6EfKYOklEd2mhle", + "bounce": "_355y8MvF-ilfLoMa6xQMuq", + "bounce2": "_20oF72x8NQuWNrNLEjvczE", + "bounce3": "_3OQHSo2d42CWSR-npTXaic", + "bounce4": "_3bL1lmhMKE-Qlk83VSMCHN", } `; @@ -2083,14 +3129,14 @@ exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`l exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "a": "_a", - "b": "_b", - "c": "_c", - "c1": "_c1", - "c2": "_c2", - "c3": "_c3", - "c4": "_c4", - "d2": "_d2", + "a": "_1OjK2G7L6Ypn9Qqa8lly-H", + "b": "_2cTRWn5QG4xtPeFL2wrKvv", + "c": "_3MHGI9_Tl4A_kJUxXx1q2j", + "c1": "_1PQ8UpcdVbFbAcYs6wdRXj", + "c2": "_3JhTjOsNov-pQXnd3o0JJ", + "c3": "_9skQ6KRXi6qCorV5zNSyV", + "c4": "_1Gh6Pqr28qXCExbnssOGX9", + "d2": "_35GAwk8Rb2LyIN0pSAXjyy", } `; @@ -2098,18 +3144,18 @@ exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`l Array [ Array [ 1, - "._a { + "._1OjK2G7L6Ypn9Qqa8lly-H { color: green; - animation: _a; + animation: _1OjK2G7L6Ypn9Qqa8lly-H; } -@keyframes _b { +@keyframes _2cTRWn5QG4xtPeFL2wrKvv { 0% { left: 10px; } 100% { left: 20px; } } -._b { - animation: _b; +._2cTRWn5QG4xtPeFL2wrKvv { + animation: _2cTRWn5QG4xtPeFL2wrKvv; } @keyframes c { @@ -2117,9 +3163,9 @@ Array [ 100% { left: 20px; } } -._c { - animation: _c1; - animation: _c2, _c3, _c4; +._3MHGI9_Tl4A_kJUxXx1q2j { + animation: _1PQ8UpcdVbFbAcYs6wdRXj; + animation: _3JhTjOsNov-pQXnd3o0JJ, _9skQ6KRXi6qCorV5zNSyV, _1Gh6Pqr28qXCExbnssOGX9; } @keyframes d { @@ -2133,7 +3179,7 @@ Array [ } .d2 { - animation: _d2; + animation: _35GAwk8Rb2LyIN0pSAXjyy; } ", "", @@ -2143,37 +3189,26 @@ Array [ exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` -Object { - "a": "_a", - "b": "_b", - "c": "_c", - "c1": "_c1", - "c2": "_c2", - "c3": "_c3", - "c4": "_c4", - "d2": "_d2", -} -`; +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; -exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, - "._a { + ".a { color: green; - animation: _a; + animation: a; } -@keyframes _b { +@keyframes b { 0% { left: 10px; } 100% { left: 20px; } } -._b { - animation: _b; +.b { + animation: b; } @keyframes c { @@ -2181,9 +3216,9 @@ Array [ 100% { left: 20px; } } -._c { - animation: _c1; - animation: _c2, _c3, _c4; +.c { + animation: c1; + animation: c2, c3, c4; } @keyframes d { @@ -2197,7 +3232,7 @@ Array [ } .d2 { - animation: _d2; + animation: d2; } ", "", @@ -2205,11 +3240,139 @@ Array [ ] `; -exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "a": "_a", + "b": "_b", + "c": "_c", + "c1": "_c1", + "c2": "_c2", + "c3": "_c3", + "c4": "_c4", + "d2": "_d2", +} +`; + +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._a { + color: green; + animation: _a; +} + +@keyframes _b { + 0% { left: 10px; } + 100% { left: 20px; } +} + +._b { + animation: _b; +} + +@keyframes c { + 0% { left: 10px; } + 100% { left: 20px; } +} + +._c { + animation: _c1; + animation: _c2, _c3, _c4; +} + +@keyframes d { + 0% { left: 10px; } + 100% { left: 20px; } +} + +.d1 { + animation: d1; + animation: d2, d3, d4; +} + +.d2 { + animation: _d2; +} +", + "", + ], +] +`; + +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "a": "_1OjK2G7L6Ypn9Qqa8lly-H", + "b": "_2cTRWn5QG4xtPeFL2wrKvv", + "c": "_3MHGI9_Tl4A_kJUxXx1q2j", + "c1": "_1PQ8UpcdVbFbAcYs6wdRXj", + "c2": "_3JhTjOsNov-pQXnd3o0JJ", + "c3": "_9skQ6KRXi6qCorV5zNSyV", + "c4": "_1Gh6Pqr28qXCExbnssOGX9", + "d2": "_35GAwk8Rb2LyIN0pSAXjyy", +} +`; + +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1OjK2G7L6Ypn9Qqa8lly-H { + color: green; + animation: _1OjK2G7L6Ypn9Qqa8lly-H; +} + +@keyframes _2cTRWn5QG4xtPeFL2wrKvv { + 0% { left: 10px; } + 100% { left: 20px; } +} + +._2cTRWn5QG4xtPeFL2wrKvv { + animation: _2cTRWn5QG4xtPeFL2wrKvv; +} + +@keyframes c { + 0% { left: 10px; } + 100% { left: 20px; } +} + +._3MHGI9_Tl4A_kJUxXx1q2j { + animation: _1PQ8UpcdVbFbAcYs6wdRXj; + animation: _3JhTjOsNov-pQXnd3o0JJ, _9skQ6KRXi6qCorV5zNSyV, _1Gh6Pqr28qXCExbnssOGX9; +} + +@keyframes d { + 0% { left: 10px; } + 100% { left: 20px; } +} + +.d1 { + animation: d1; + animation: d2, d3, d4; +} + +.d2 { + animation: _35GAwk8Rb2LyIN0pSAXjyy; +} +", + "", + ], +] +`; + +exports[`modules case \`leak-scope\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; @@ -2228,6 +3391,33 @@ exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` valu exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "a": "_1OjK2G7L6Ypn9Qqa8lly-H", + "b": "_2cTRWn5QG4xtPeFL2wrKvv", + "c": "_3MHGI9_Tl4A_kJUxXx1q2j", + "c1": "_1PQ8UpcdVbFbAcYs6wdRXj", + "c2": "_3JhTjOsNov-pQXnd3o0JJ", + "c3": "_9skQ6KRXi6qCorV5zNSyV", + "c4": "_1Gh6Pqr28qXCExbnssOGX9", + "d2": "_35GAwk8Rb2LyIN0pSAXjyy", +} +`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "a": "_a", "b": "_b", @@ -2240,7 +3430,7 @@ Object { } `; -exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -2248,14 +3438,14 @@ exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` valu exports[`modules case \`leak-scope\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "a": "_a", - "b": "_b", - "c": "_c", - "c1": "_c1", - "c2": "_c2", - "c3": "_c3", - "c4": "_c4", - "d2": "_d2", + "a": "_1OjK2G7L6Ypn9Qqa8lly-H", + "b": "_2cTRWn5QG4xtPeFL2wrKvv", + "c": "_3MHGI9_Tl4A_kJUxXx1q2j", + "c1": "_1PQ8UpcdVbFbAcYs6wdRXj", + "c2": "_3JhTjOsNov-pQXnd3o0JJ", + "c3": "_9skQ6KRXi6qCorV5zNSyV", + "c4": "_1Gh6Pqr28qXCExbnssOGX9", + "d2": "_35GAwk8Rb2LyIN0pSAXjyy", } `; @@ -2288,9 +3478,9 @@ exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`global exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "def": "_def", - "ghi": "_ghi", - "jkl": "_jkl", + "def": "_1UnGDcMVVYIU_547CDqQJU", + "ghi": "_1k8c5svlAtK4vFkSsZdl4o", + "jkl": "pRQR9FSSkxNL6roex-uGp", } `; @@ -2298,11 +3488,11 @@ exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`global Array [ Array [ 1, - ".abc ._def { + ".abc ._1UnGDcMVVYIU_547CDqQJU { color: red; } -._ghi ._jkl { +._1k8c5svlAtK4vFkSsZdl4o .pRQR9FSSkxNL6roex-uGp { color: blue; } ", @@ -2317,18 +3507,47 @@ exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`local) exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "abc": "_abc", + "abc": "_2EPIUiYqPKxP0HS9Vgqa8e", + "def": "_1UnGDcMVVYIU_547CDqQJU", + "ghi": "_1k8c5svlAtK4vFkSsZdl4o", + "jkl": "pRQR9FSSkxNL6roex-uGp", +} +`; + +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._2EPIUiYqPKxP0HS9Vgqa8e ._1UnGDcMVVYIU_547CDqQJU { + color: red; +} + +._1k8c5svlAtK4vFkSsZdl4o .pRQR9FSSkxNL6roex-uGp { + color: blue; +} +", + "", + ], +] +`; + +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { "def": "_def", "ghi": "_ghi", "jkl": "_jkl", } `; -exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, - "._abc ._def { + ".abc ._def { color: red; } @@ -2341,11 +3560,11 @@ Array [ ] `; -exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "abc": "_abc", "def": "_def", @@ -2354,7 +3573,7 @@ Object { } `; -exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -2371,6 +3590,36 @@ Array [ ] `; +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "abc": "_2EPIUiYqPKxP0HS9Vgqa8e", + "def": "_1UnGDcMVVYIU_547CDqQJU", + "ghi": "_1k8c5svlAtK4vFkSsZdl4o", + "jkl": "pRQR9FSSkxNL6roex-uGp", +} +`; + +exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._2EPIUiYqPKxP0HS9Vgqa8e ._1UnGDcMVVYIU_547CDqQJU { + color: red; +} + +._1k8c5svlAtK4vFkSsZdl4o .pRQR9FSSkxNL6roex-uGp { + color: blue; +} +", + "", + ], +] +`; + exports[`modules case \`local\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -2387,9 +3636,9 @@ exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "def": "_def", - "ghi": "_ghi", - "jkl": "_jkl", + "def": "_1UnGDcMVVYIU_547CDqQJU", + "ghi": "_1k8c5svlAtK4vFkSsZdl4o", + "jkl": "pRQR9FSSkxNL6roex-uGp", } `; @@ -2401,20 +3650,34 @@ exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc", + "abc": "_2EPIUiYqPKxP0HS9Vgqa8e", + "def": "_1UnGDcMVVYIU_547CDqQJU", + "ghi": "_1k8c5svlAtK4vFkSsZdl4o", + "jkl": "pRQR9FSSkxNL6roex-uGp", +} +`; + +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { "def": "_def", "ghi": "_ghi", "jkl": "_jkl", } `; -exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; -exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "abc": "_abc", "def": "_def", @@ -2423,6 +3686,21 @@ Object { } `; +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "abc": "_2EPIUiYqPKxP0HS9Vgqa8e", + "def": "_1UnGDcMVVYIU_547CDqQJU", + "ghi": "_1k8c5svlAtK4vFkSsZdl4o", + "jkl": "pRQR9FSSkxNL6roex-uGp", +} +`; + exports[`modules case \`local\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -2449,9 +3727,9 @@ exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`glob exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "className": "_className", - "someId": "_someId", - "subClass": "_subClass", + "className": "PTH0TZDPxpREaV5cxtahd", + "someId": "_1XQl0Np_jYcDGudXKxmL8A", + "subClass": "_2MrzTmc8jtF-E5FfuMPQie", } `; @@ -2459,10 +3737,10 @@ exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`glob Array [ Array [ 1, - "._className { background: red; } -#_someId { background: green; } -._className ._subClass { color: green; } -#_someId ._subClass { color: blue; } + ".PTH0TZDPxpREaV5cxtahd { background: red; } +#_1XQl0Np_jYcDGudXKxmL8A { background: green; } +.PTH0TZDPxpREaV5cxtahd ._2MrzTmc8jtF-E5FfuMPQie { color: green; } +#_1XQl0Np_jYcDGudXKxmL8A ._2MrzTmc8jtF-E5FfuMPQie { color: blue; } ", "", ], @@ -2475,9 +3753,9 @@ exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`loca exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "className": "_className", - "someId": "_someId", - "subClass": "_subClass", + "className": "PTH0TZDPxpREaV5cxtahd", + "someId": "_1XQl0Np_jYcDGudXKxmL8A", + "subClass": "_2MrzTmc8jtF-E5FfuMPQie", } `; @@ -2485,10 +3763,10 @@ exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`loca Array [ Array [ 1, - "._className { background: red; } -#_someId { background: green; } -._className ._subClass { color: green; } -#_someId ._subClass { color: blue; } + ".PTH0TZDPxpREaV5cxtahd { background: red; } +#_1XQl0Np_jYcDGudXKxmL8A { background: green; } +.PTH0TZDPxpREaV5cxtahd ._2MrzTmc8jtF-E5FfuMPQie { color: green; } +#_1XQl0Np_jYcDGudXKxmL8A ._2MrzTmc8jtF-E5FfuMPQie { color: blue; } ", "", ], @@ -2497,9 +3775,9 @@ Array [ exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "className": "_className", "someId": "_someId", @@ -2507,7 +3785,7 @@ Object { } `; -exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -2521,21 +3799,11 @@ Array [ ] `; -exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "className": "_className", "someId": "_someId", @@ -2543,27 +3811,103 @@ Object { } `; -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; - -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` -Object { - "className": "_className", - "someId": "_someId", - "subClass": "_subClass", -} +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._className { background: red; } +#_someId { background: green; } +._className ._subClass { color: green; } +#_someId ._subClass { color: blue; } +", + "", + ], +] +`; + +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "className": "PTH0TZDPxpREaV5cxtahd", + "someId": "_1XQl0Np_jYcDGudXKxmL8A", + "subClass": "_2MrzTmc8jtF-E5FfuMPQie", +} +`; + +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".PTH0TZDPxpREaV5cxtahd { background: red; } +#_1XQl0Np_jYcDGudXKxmL8A { background: green; } +.PTH0TZDPxpREaV5cxtahd ._2MrzTmc8jtF-E5FfuMPQie { color: green; } +#_1XQl0Np_jYcDGudXKxmL8A ._2MrzTmc8jtF-E5FfuMPQie { color: blue; } +", + "", + ], +] +`; + +exports[`modules case \`local-2\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` +Object { + "className": "PTH0TZDPxpREaV5cxtahd", + "someId": "_1XQl0Np_jYcDGudXKxmL8A", + "subClass": "_2MrzTmc8jtF-E5FfuMPQie", +} +`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "className": "PTH0TZDPxpREaV5cxtahd", + "someId": "_1XQl0Np_jYcDGudXKxmL8A", + "subClass": "_2MrzTmc8jtF-E5FfuMPQie", +} `; exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; -exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "className": "_className", + "someId": "_someId", + "subClass": "_subClass", +} +`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "className": "_className", "someId": "_someId", @@ -2571,6 +3915,20 @@ Object { } `; +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "className": "PTH0TZDPxpREaV5cxtahd", + "someId": "_1XQl0Np_jYcDGudXKxmL8A", + "subClass": "_2MrzTmc8jtF-E5FfuMPQie", +} +`; + exports[`modules case \`local-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -2600,8 +3958,8 @@ exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` valu exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "abc": "_abc", - "def": "_def _abc", + "abc": "_1wzWGMZGmVz3uhGAmwbXwR", + "def": "_3zcEXyCxYPLdb_6bVqY6Df _1wzWGMZGmVz3uhGAmwbXwR", } `; @@ -2609,10 +3967,10 @@ exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` valu Array [ Array [ 1, - "._abc { + "._1wzWGMZGmVz3uhGAmwbXwR { color: red; } -._def { +._3zcEXyCxYPLdb_6bVqY6Df { background: green; } ", @@ -2626,13 +3984,40 @@ exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` valu exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "abc": "_1wzWGMZGmVz3uhGAmwbXwR", + "def": "_3zcEXyCxYPLdb_6bVqY6Df _1wzWGMZGmVz3uhGAmwbXwR", +} +`; + +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1wzWGMZGmVz3uhGAmwbXwR { + color: red; +} +._3zcEXyCxYPLdb_6bVqY6Df { + background: green; +} +", + "", + ], +] +`; + +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "abc": "_abc", "def": "_def _abc", } `; -exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -2648,18 +4033,18 @@ Array [ ] `; -exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "abc": "_abc", "def": "_def _abc", } `; -exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -2675,6 +4060,33 @@ Array [ ] `; +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "abc": "_1wzWGMZGmVz3uhGAmwbXwR", + "def": "_3zcEXyCxYPLdb_6bVqY6Df _1wzWGMZGmVz3uhGAmwbXwR", +} +`; + +exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1wzWGMZGmVz3uhGAmwbXwR { + color: red; +} +._3zcEXyCxYPLdb_6bVqY6Df { + background: green; +} +", + "", + ], +] +`; + exports[`modules case \`local-and-composes\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -2691,8 +4103,8 @@ exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`module exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc", - "def": "_def _abc", + "abc": "_1wzWGMZGmVz3uhGAmwbXwR", + "def": "_3zcEXyCxYPLdb_6bVqY6Df _1wzWGMZGmVz3uhGAmwbXwR", } `; @@ -2703,13 +4115,39 @@ exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`module exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "abc": "_1wzWGMZGmVz3uhGAmwbXwR", + "def": "_3zcEXyCxYPLdb_6bVqY6Df _1wzWGMZGmVz3uhGAmwbXwR", +} +`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Object { "abc": "_abc", "def": "_def _abc", } `; -exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "abc": "_abc", + "def": "_def _abc", +} +`; + +exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -2717,8 +4155,8 @@ exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`module exports[`modules case \`local-and-composes\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "abc": "_abc", - "def": "_def _abc", + "abc": "_1wzWGMZGmVz3uhGAmwbXwR", + "def": "_3zcEXyCxYPLdb_6bVqY6Df _1wzWGMZGmVz3uhGAmwbXwR", } `; @@ -2747,9 +4185,9 @@ exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "c1": "_c1", - "c3": "_c3", - "c4": "_c4", + "c1": "_1sz8PE1ejGPcGRSnIAWKZt", + "c3": "_2DFDxRic974g-wJ7S9rbP1", + "c4": "xo8O_am1gQUkHa-_J-WSe", } `; @@ -2757,7 +4195,7 @@ exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value Array [ Array [ 1, - "._c1[data-attr=\\".c2)]'\\"]:not(._c3):not(._c4) { + "._1sz8PE1ejGPcGRSnIAWKZt[data-attr=\\".c2)]'\\"]:not(._2DFDxRic974g-wJ7S9rbP1):not(.xo8O_am1gQUkHa-_J-WSe) { background: red; } ", @@ -2771,6 +4209,31 @@ exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "c1": "_1sz8PE1ejGPcGRSnIAWKZt", + "c3": "_2DFDxRic974g-wJ7S9rbP1", + "c4": "xo8O_am1gQUkHa-_J-WSe", +} +`; + +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1sz8PE1ejGPcGRSnIAWKZt[data-attr=\\".c2)]'\\"]:not(._2DFDxRic974g-wJ7S9rbP1):not(.xo8O_am1gQUkHa-_J-WSe) { + background: red; +} +", + "", + ], +] +`; + +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "c1": "_c1", "c3": "_c3", @@ -2778,7 +4241,7 @@ Object { } `; -exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -2791,11 +4254,11 @@ Array [ ] `; -exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "c1": "_c1", "c3": "_c3", @@ -2803,7 +4266,7 @@ Object { } `; -exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -2816,6 +4279,31 @@ Array [ ] `; +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "c1": "_1sz8PE1ejGPcGRSnIAWKZt", + "c3": "_2DFDxRic974g-wJ7S9rbP1", + "c4": "xo8O_am1gQUkHa-_J-WSe", +} +`; + +exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1sz8PE1ejGPcGRSnIAWKZt[data-attr=\\".c2)]'\\"]:not(._2DFDxRic974g-wJ7S9rbP1):not(.xo8O_am1gQUkHa-_J-WSe) { + background: red; +} +", + "", + ], +] +`; + exports[`modules case \`local-with-string\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -2832,9 +4320,9 @@ exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1", - "c3": "_c3", - "c4": "_c4", + "c1": "_1sz8PE1ejGPcGRSnIAWKZt", + "c3": "_2DFDxRic974g-wJ7S9rbP1", + "c4": "xo8O_am1gQUkHa-_J-WSe", } `; @@ -2845,6 +4333,20 @@ exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "c1": "_1sz8PE1ejGPcGRSnIAWKZt", + "c3": "_2DFDxRic974g-wJ7S9rbP1", + "c4": "xo8O_am1gQUkHa-_J-WSe", +} +`; + +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Object { "c1": "_c1", "c3": "_c3", @@ -2852,13 +4354,13 @@ Object { } `; -exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; -exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "c1": "_c1", "c3": "_c3", @@ -2866,6 +4368,20 @@ Object { } `; +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "c1": "_1sz8PE1ejGPcGRSnIAWKZt", + "c3": "_2DFDxRic974g-wJ7S9rbP1", + "c4": "xo8O_am1gQUkHa-_J-WSe", +} +`; + exports[`modules case \`local-with-string\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -2920,7 +4436,7 @@ exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`local) exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "header": "_header", + "header": "_1wyVAJXtjGZLoQNO_yG8b3", "small": "(max-width: 599px)", } `; @@ -2930,7 +4446,7 @@ Array [ Array [ 1, "@media (max-width: 599px) { - ._header { + ._1wyVAJXtjGZLoQNO_yG8b3 { box-shadow: 0 0 4px #1F4F7F; } } @@ -2942,21 +4458,20 @@ Array [ exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { - "header": "_header", "small": "(max-width: 599px)", } `; -exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, "@media (max-width: 599px) { - ._header { + .header { box-shadow: 0 0 4px #1F4F7F; } } @@ -2966,48 +4481,125 @@ Array [ ] `; -exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; - -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; - -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; - -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; - -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; - -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { + "header": "_header", "small": "(max-width: 599px)", } `; -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; - -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; - -exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "@media (max-width: 599px) { + ._header { + box-shadow: 0 0 4px #1F4F7F; + } +} +", + "", + ], +] +`; + +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "header": "_1wyVAJXtjGZLoQNO_yG8b3", + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "@media (max-width: 599px) { + ._1wyVAJXtjGZLoQNO_yG8b3 { + box-shadow: 0 0 4px #1F4F7F; + } +} +", + "", + ], +] +`; + +exports[`modules case \`media\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` +Object { + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "header": "_header", + "header": "_1wyVAJXtjGZLoQNO_yG8b3", "small": "(max-width: 599px)", } `; exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "header": "_header", + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`media\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "header": "_header", + "header": "_1wyVAJXtjGZLoQNO_yG8b3", "small": "(max-width: 599px)", } `; @@ -3071,7 +4663,7 @@ exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`loca exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "header": "_header", + "header": "UbDEjEuweJXO7yHMpC8qp", "small": "(max-width: 599px)", } `; @@ -3087,7 +4679,7 @@ Array [ Array [ 1, "@media (max-width: 599px) { - ._header { + .UbDEjEuweJXO7yHMpC8qp { box-shadow: 0 0 4px #1F4F7F; } } @@ -3099,11 +4691,74 @@ Array [ exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + "@media (max-width: 599px) { + .header { + box-shadow: 0 0 4px #1F4F7F; + } +} +", + "", + ], +] +`; + +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "header": "_header", + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + "@media (max-width: 599px) { + ._header { + box-shadow: 0 0 4px #1F4F7F; + } +} +", + "", + ], +] +`; + +exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`media-2\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "header": "_header", + "header": "UbDEjEuweJXO7yHMpC8qp", "small": "(max-width: 599px)", } `; @@ -3119,7 +4774,7 @@ Array [ Array [ 1, "@media (max-width: 599px) { - ._header { + .UbDEjEuweJXO7yHMpC8qp { box-shadow: 0 0 4px #1F4F7F; } } @@ -3157,20 +4812,45 @@ exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value i exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "header": "_header", + "header": "UbDEjEuweJXO7yHMpC8qp", "small": "(max-width: 599px)", } `; exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "header": "_header", + "small": "(max-width: 599px)", +} +`; + +exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`media-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "header": "_header", + "header": "UbDEjEuweJXO7yHMpC8qp", "small": "(max-width: 599px)", } `; @@ -3199,10 +4879,10 @@ exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = ` Object { - "c2": "_c2", - "c3": "_c3", - "c5": "_c5", - "c7": "_c7", + "c2": "LgC5kpXZK3IOCPWWctF7f", + "c3": "_2ZTY7KJ2nkQND4VqlaSz9a", + "c5": "tEu6_PTqhxImp1tyYQTWz", + "c7": "FBEuAfqI8VKhU-w-9RNH", } `; @@ -3210,7 +4890,7 @@ exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is Array [ Array [ 1, - ".c1 ._c2 ._c3 .c4 ._c5, .c6 ._c7 { background: red; } + ".c1 .LgC5kpXZK3IOCPWWctF7f ._2ZTY7KJ2nkQND4VqlaSz9a .c4 .tEu6_PTqhxImp1tyYQTWz, .c6 .FBEuAfqI8VKhU-w-9RNH { background: red; } .c8 { background: red; } ", "", @@ -3224,33 +4904,58 @@ exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "c1": "_c1", + "c1": "_sSeqF3tTS8i-oJLOiW66", + "c2": "LgC5kpXZK3IOCPWWctF7f", + "c3": "_2ZTY7KJ2nkQND4VqlaSz9a", + "c5": "tEu6_PTqhxImp1tyYQTWz", + "c6": "sUDXsigYAAb8sNlOMs_Oc", + "c7": "FBEuAfqI8VKhU-w-9RNH", + "c8": "_1JUWq0LIxk9cx-H1cbqyAD", +} +`; + +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._sSeqF3tTS8i-oJLOiW66 .LgC5kpXZK3IOCPWWctF7f ._2ZTY7KJ2nkQND4VqlaSz9a .c4 .tEu6_PTqhxImp1tyYQTWz, .sUDXsigYAAb8sNlOMs_Oc .FBEuAfqI8VKhU-w-9RNH { background: red; } +._1JUWq0LIxk9cx-H1cbqyAD { background: red; } +", + "", + ], +] +`; + +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { "c2": "_c2", "c3": "_c3", "c5": "_c5", - "c6": "_c6", "c7": "_c7", - "c8": "_c8", } `; -exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, - "._c1 ._c2 ._c3 .c4 ._c5, ._c6 ._c7 { background: red; } -._c8 { background: red; } + ".c1 ._c2 ._c3 .c4 ._c5, .c6 ._c7 { background: red; } +.c8 { background: red; } ", "", ], ] `; -exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "c1": "_c1", "c2": "_c2", @@ -3262,7 +4967,7 @@ Object { } `; -exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -3274,6 +4979,34 @@ Array [ ] `; +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "c1": "_sSeqF3tTS8i-oJLOiW66", + "c2": "LgC5kpXZK3IOCPWWctF7f", + "c3": "_2ZTY7KJ2nkQND4VqlaSz9a", + "c5": "tEu6_PTqhxImp1tyYQTWz", + "c6": "sUDXsigYAAb8sNlOMs_Oc", + "c7": "FBEuAfqI8VKhU-w-9RNH", + "c8": "_1JUWq0LIxk9cx-H1cbqyAD", +} +`; + +exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._sSeqF3tTS8i-oJLOiW66 .LgC5kpXZK3IOCPWWctF7f ._2ZTY7KJ2nkQND4VqlaSz9a .c4 .tEu6_PTqhxImp1tyYQTWz, .sUDXsigYAAb8sNlOMs_Oc .FBEuAfqI8VKhU-w-9RNH { background: red; } +._1JUWq0LIxk9cx-H1cbqyAD { background: red; } +", + "", + ], +] +`; + exports[`modules case \`mode-switching\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -3290,10 +5023,10 @@ exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` Object { - "c2": "_c2", - "c3": "_c3", - "c5": "_c5", - "c7": "_c7", + "c2": "LgC5kpXZK3IOCPWWctF7f", + "c3": "_2ZTY7KJ2nkQND4VqlaSz9a", + "c5": "tEu6_PTqhxImp1tyYQTWz", + "c7": "FBEuAfqI8VKhU-w-9RNH", } `; @@ -3305,23 +5038,38 @@ exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "c1": "_c1", + "c1": "_sSeqF3tTS8i-oJLOiW66", + "c2": "LgC5kpXZK3IOCPWWctF7f", + "c3": "_2ZTY7KJ2nkQND4VqlaSz9a", + "c5": "tEu6_PTqhxImp1tyYQTWz", + "c6": "sUDXsigYAAb8sNlOMs_Oc", + "c7": "FBEuAfqI8VKhU-w-9RNH", + "c8": "_1JUWq0LIxk9cx-H1cbqyAD", +} +`; + +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { "c2": "_c2", "c3": "_c3", "c5": "_c5", - "c6": "_c6", "c7": "_c7", - "c8": "_c8", } `; -exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; -exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "c1": "_c1", "c2": "_c2", @@ -3333,6 +5081,24 @@ Object { } `; +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "c1": "_sSeqF3tTS8i-oJLOiW66", + "c2": "LgC5kpXZK3IOCPWWctF7f", + "c3": "_2ZTY7KJ2nkQND4VqlaSz9a", + "c5": "tEu6_PTqhxImp1tyYQTWz", + "c6": "sUDXsigYAAb8sNlOMs_Oc", + "c7": "FBEuAfqI8VKhU-w-9RNH", + "c8": "_1JUWq0LIxk9cx-H1cbqyAD", +} +`; + exports[`modules case \`mode-switching\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -3393,14 +5159,14 @@ exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`local exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "a": "_a", - "b": "_b", - "c": "_c", - "d": "_d", - "id": "_id", - "x": "_x", - "y": "_y", - "z": "_z", + "a": "_3Usq4DWpHHUfARGj76o2W1", + "b": "_2sE42PHfIbHjbGigpdA5M2", + "c": "_3JN7IxYrHx5fpD-QuNH8Vg", + "d": "_169FAY78xdP6MpwfqxWVlS", + "id": "_2w6DrNK6drHoI8na0s2YJu", + "x": "_3jqDKJEcQhMnSj5LXFzCMT", + "y": "_2CdavzdbxA-_uaXjgT2eG", + "z": "eawDxhAAUQ-HvrUhhwSML", } `; @@ -3408,15 +5174,15 @@ exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`local Array [ Array [ 1, - "._a ._b, ._c ._d, #_id { + "._3Usq4DWpHHUfARGj76o2W1 ._2sE42PHfIbHjbGigpdA5M2, ._3JN7IxYrHx5fpD-QuNH8Vg ._169FAY78xdP6MpwfqxWVlS, #_2w6DrNK6drHoI8na0s2YJu { color: green; font-size: 1.5pt; } -a[href=\\"#b.c\\"]._x._y { +a[href=\\"#b.c\\"]._3jqDKJEcQhMnSj5LXFzCMT._2CdavzdbxA-_uaXjgT2eG { color: green; font-size: 1.5pt; } -@keyframes _z { +@keyframes eawDxhAAUQ-HvrUhhwSML { 2.5% {color: green;} } ", @@ -3427,12 +5193,39 @@ a[href=\\"#b.c\\"]._x._y { exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` -Object { - "a": "_a", - "b": "_b", +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".a .b, .c .d, #id { + color: green; + font-size: 1.5pt; +} +a[href=\\"#b.c\\"].x.y { + color: green; + font-size: 1.5pt; +} +@keyframes z { + 2.5% {color: green;} +} +", + "", + ], +] +`; + +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "a": "_a", + "b": "_b", "c": "_c", "d": "_d", "id": "_id", @@ -3442,7 +5235,7 @@ Object { } `; -exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -3463,6 +5256,44 @@ a[href=\\"#b.c\\"]._x._y { ] `; +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "a": "_3Usq4DWpHHUfARGj76o2W1", + "b": "_2sE42PHfIbHjbGigpdA5M2", + "c": "_3JN7IxYrHx5fpD-QuNH8Vg", + "d": "_169FAY78xdP6MpwfqxWVlS", + "id": "_2w6DrNK6drHoI8na0s2YJu", + "x": "_3jqDKJEcQhMnSj5LXFzCMT", + "y": "_2CdavzdbxA-_uaXjgT2eG", + "z": "eawDxhAAUQ-HvrUhhwSML", +} +`; + +exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._3Usq4DWpHHUfARGj76o2W1 ._2sE42PHfIbHjbGigpdA5M2, ._3JN7IxYrHx5fpD-QuNH8Vg ._169FAY78xdP6MpwfqxWVlS, #_2w6DrNK6drHoI8na0s2YJu { + color: green; + font-size: 1.5pt; +} +a[href=\\"#b.c\\"]._3jqDKJEcQhMnSj5LXFzCMT._2CdavzdbxA-_uaXjgT2eG { + color: green; + font-size: 1.5pt; +} +@keyframes eawDxhAAUQ-HvrUhhwSML { + 2.5% {color: green;} +} +", + "", + ], +] +`; + exports[`modules case \`simple\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; @@ -3486,6 +5317,33 @@ exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "a": "_3Usq4DWpHHUfARGj76o2W1", + "b": "_2sE42PHfIbHjbGigpdA5M2", + "c": "_3JN7IxYrHx5fpD-QuNH8Vg", + "d": "_169FAY78xdP6MpwfqxWVlS", + "id": "_2w6DrNK6drHoI8na0s2YJu", + "x": "_3jqDKJEcQhMnSj5LXFzCMT", + "y": "_2CdavzdbxA-_uaXjgT2eG", + "z": "eawDxhAAUQ-HvrUhhwSML", +} +`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "a": "_a", "b": "_b", @@ -3498,7 +5356,7 @@ Object { } `; -exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; @@ -3506,14 +5364,14 @@ exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is exports[`modules case \`simple\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "a": "_a", - "b": "_b", - "c": "_c", - "d": "_d", - "id": "_id", - "x": "_x", - "y": "_y", - "z": "_z", + "a": "_3Usq4DWpHHUfARGj76o2W1", + "b": "_2sE42PHfIbHjbGigpdA5M2", + "c": "_3JN7IxYrHx5fpD-QuNH8Vg", + "d": "_169FAY78xdP6MpwfqxWVlS", + "id": "_2w6DrNK6drHoI8na0s2YJu", + "x": "_3jqDKJEcQhMnSj5LXFzCMT", + "y": "_2CdavzdbxA-_uaXjgT2eG", + "z": "eawDxhAAUQ-HvrUhhwSML", } `; @@ -3583,7 +5441,7 @@ exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`local)\ exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "a": "_a", + "a": "_1goi1QVFtUMjX82JoFfLLJ", } `; @@ -3591,7 +5449,7 @@ exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`local)\ Array [ Array [ 1, - "._a { + "._1goi1QVFtUMjX82JoFfLLJ { background: url(/webpack/public/path/img.png); background: url(/webpack/public/path/img.png); background: url(\\"/webpack/public/path/img img.png\\"); @@ -3613,11 +5471,75 @@ Array [ exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".a { + background: url(/webpack/public/path/img.png); + background: url(/webpack/public/path/img.png); + background: url(\\"/webpack/public/path/img img.png\\"); + background: url(\\"/webpack/public/path/img img.png\\"); + background: url(/webpack/public/path/img.png); + background: url(/webpack/public/path/img.png#?iefix); + background: url(\\"#hash\\"); + background: url(\\"#\\"); + background: url(data:image/png;base64,AAA); + background: url(http://example.com/image.jpg); + background: url(//example.com/image.png); + background: green url(data:image/png;base64,AAA) url(http://example.com/image.jpg) url(//example.com/image.png) url(/webpack/public/path/img.png) url(\\"/webpack/public/path/img img.png\\") xyz; +} +", + "", + ], +] +`; + +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "a": "_a", +} +`; + +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._a { + background: url(/webpack/public/path/img.png); + background: url(/webpack/public/path/img.png); + background: url(\\"/webpack/public/path/img img.png\\"); + background: url(\\"/webpack/public/path/img img.png\\"); + background: url(/webpack/public/path/img.png); + background: url(/webpack/public/path/img.png#?iefix); + background: url(\\"#hash\\"); + background: url(\\"#\\"); + background: url(data:image/png;base64,AAA); + background: url(http://example.com/image.jpg); + background: url(//example.com/image.png); + background: green url(data:image/png;base64,AAA) url(http://example.com/image.jpg) url(//example.com/image.png) url(/webpack/public/path/img.png) url(\\"/webpack/public/path/img img.png\\") xyz; +} +", + "", + ], +] +`; + +exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "a": "_a", + "a": "_1goi1QVFtUMjX82JoFfLLJ", } `; @@ -3625,7 +5547,7 @@ exports[`modules case \`urls\`: (export \`all\`) (\`modules\` value is \`true)\` Array [ Array [ 1, - "._a { + "._1goi1QVFtUMjX82JoFfLLJ { background: url(/webpack/public/path/img.png); background: url(/webpack/public/path/img.png); background: url(\\"/webpack/public/path/img img.png\\"); @@ -3669,19 +5591,39 @@ exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \ exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "a": "_a", + "a": "_1goi1QVFtUMjX82JoFfLLJ", } `; exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "a": "_a", +} +`; + +exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`urls\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "a": "_a", + "a": "_1goi1QVFtUMjX82JoFfLLJ", } `; @@ -3743,7 +5685,7 @@ exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`local exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "a": "_a", + "a": "_18yRHBx_s3xK1t_zOjEfo", "aaa": "red", "bbb": "green", "ccc": "red", @@ -3754,7 +5696,7 @@ exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`local Array [ Array [ 1, - "._a { + "._18yRHBx_s3xK1t_zOjEfo { background: red; background: green; background: red; @@ -3767,11 +5709,66 @@ Array [ exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "aaa": "red", + "bbb": "green", + "ccc": "red", +} +`; + +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".a { + background: red; + background: green; + background: red; +} +", + "", + ], +] +`; + +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "a": "_a", + "aaa": "red", + "bbb": "green", + "ccc": "red", +} +`; + +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._a { + background: red; + background: green; + background: red; +} +", + "", + ], +] +`; + +exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "a": "_a", + "a": "_18yRHBx_s3xK1t_zOjEfo", "aaa": "red", "bbb": "green", "ccc": "red", @@ -3782,7 +5779,7 @@ exports[`modules case \`values\`: (export \`all\`) (\`modules\` value is \`true) Array [ Array [ 1, - "._a { + "._18yRHBx_s3xK1t_zOjEfo { background: red; background: green; background: red; @@ -3823,7 +5820,7 @@ exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "a": "_a", + "a": "_18yRHBx_s3xK1t_zOjEfo", "aaa": "red", "bbb": "green", "ccc": "red", @@ -3832,13 +5829,42 @@ Object { exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "aaa": "red", + "bbb": "green", + "ccc": "red", +} +`; + +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "a": "_a", + "aaa": "red", + "bbb": "green", + "ccc": "red", +} +`; + +exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`values\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "a": "_a", + "a": "_18yRHBx_s3xK1t_zOjEfo", "aaa": "red", "bbb": "green", "ccc": "red", @@ -3909,16 +5935,16 @@ Array [ exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "def": "red", "ghi": "1px solid black", } `; -exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -3929,43 +5955,113 @@ Array [ ] `; -exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; - -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; - -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; - -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; - -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; - -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "def": "red", "ghi": "1px solid black", } `; -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + " +", + "", + ], +] +`; -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { "def": "red", "ghi": "1px solid black", } `; -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; - -exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + " +", + "", + ], +] +`; + +exports[`modules case \`values-1\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` +Object { + "def": "red", + "ghi": "1px solid black", +} +`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "def": "red", + "ghi": "1px solid black", +} +`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "def": "red", + "ghi": "1px solid black", +} +`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "def": "red", + "ghi": "1px solid black", +} +`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-1\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; @@ -4022,7 +6118,7 @@ exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_2aKAT4pAinaabqEIFgdhTC", } `; @@ -4030,7 +6126,7 @@ exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`loc Array [ Array [ 1, - "._ghi { color: red; } + "._2aKAT4pAinaabqEIFgdhTC { color: red; } ", "", ], @@ -4039,12 +6135,55 @@ Array [ exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "def": "red", +} +`; + +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".ghi { color: red; } +", + "", + ], +] +`; + +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "def": "red", + "ghi": "_ghi", +} +`; + +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._ghi { color: red; } +", + "", + ], +] +`; + +exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_2aKAT4pAinaabqEIFgdhTC", } `; @@ -4052,7 +6191,7 @@ exports[`modules case \`values-2\`: (export \`all\`) (\`modules\` value is \`tru Array [ Array [ 1, - "._ghi { color: red; } + "._2aKAT4pAinaabqEIFgdhTC { color: red; } ", "", ], @@ -4088,12 +6227,37 @@ exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_2aKAT4pAinaabqEIFgdhTC", } `; exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "def": "red", +} +`; + +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "def": "red", + "ghi": "_ghi", +} +`; + +exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; @@ -4101,7 +6265,7 @@ exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-2\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_2aKAT4pAinaabqEIFgdhTC", } `; @@ -4157,7 +6321,7 @@ exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_29ART3-NNe4DU1X-5_7419", } `; @@ -4171,7 +6335,7 @@ Array [ ], Array [ 1, - "._ghi { color: red; } + "._29ART3-NNe4DU1X-5_7419 { color: red; } ", "", ], @@ -4180,12 +6344,67 @@ Array [ exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "def": "red", +} +`; + +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + ".ghi { color: red; } +", + "", + ], +] +`; + +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "def": "red", + "ghi": "_ghi", +} +`; + +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + "._ghi { color: red; } +", + "", + ], +] +`; + +exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-3\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_29ART3-NNe4DU1X-5_7419", } `; @@ -4199,7 +6418,7 @@ Array [ ], Array [ 1, - "._ghi { color: red; } + "._29ART3-NNe4DU1X-5_7419 { color: red; } ", "", ], @@ -4235,12 +6454,37 @@ exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_29ART3-NNe4DU1X-5_7419", } `; exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "def": "red", +} +`; + +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "def": "red", + "ghi": "_ghi", +} +`; + +exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; @@ -4248,7 +6492,7 @@ exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-3\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { "def": "red", - "ghi": "_ghi", + "ghi": "_29ART3-NNe4DU1X-5_7419", } `; @@ -4313,7 +6557,7 @@ exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`loc Object { "aaa": "red", "bbb": "green", - "ghi": "_ghi", + "ghi": "_1vGjNPdz_qWrUvzTY2pCsS", } `; @@ -4333,7 +6577,7 @@ Array [ ], Array [ 1, - "._ghi { background: red, green, def; } + "._1vGjNPdz_qWrUvzTY2pCsS { background: red, green, def; } ", "", ], @@ -4342,17 +6586,16 @@ Array [ exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "aaa": "red", "bbb": "green", - "ghi": "_ghi", } `; -exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -4368,41 +6611,18 @@ Array [ ], Array [ 1, - "._ghi { background: red, green, def; } + ".ghi { background: red, green, def; } ", "", ], ] `; -exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` -Object { - "aaa": "red", - "bbb": "green", -} -`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; - -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "aaa": "red", "bbb": "green", @@ -4410,17 +6630,137 @@ Object { } `; -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 3, + " +", + "", + ], + Array [ + 1, + "._ghi { background: red, green, def; } +", + "", + ], +] +`; -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; -exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { "aaa": "red", "bbb": "green", - "ghi": "_ghi", + "ghi": "_1vGjNPdz_qWrUvzTY2pCsS", +} +`; + +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 3, + " +", + "", + ], + Array [ + 1, + "._1vGjNPdz_qWrUvzTY2pCsS { background: red, green, def; } +", + "", + ], +] +`; + +exports[`modules case \`values-4\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = ` +Object { + "aaa": "red", + "bbb": "green", +} +`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Object { + "aaa": "red", + "bbb": "green", + "ghi": "_1vGjNPdz_qWrUvzTY2pCsS", +} +`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "aaa": "red", + "bbb": "green", +} +`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "aaa": "red", + "bbb": "green", + "ghi": "_ghi", +} +`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-4\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "aaa": "red", + "bbb": "green", + "ghi": "_1vGjNPdz_qWrUvzTY2pCsS", } `; @@ -4478,7 +6818,7 @@ exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_3Uw-A6Tr2LkIED6NTqwFvj", "shadow": "0 0 red,0 0 red", } `; @@ -4493,7 +6833,7 @@ Array [ ], Array [ 1, - "._ghi { box-shadow: 0 0 red,0 0 red; } + "._3Uw-A6Tr2LkIED6NTqwFvj { box-shadow: 0 0 red,0 0 red; } ", "", ], @@ -4502,12 +6842,69 @@ Array [ exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "color": "red", + "shadow": "0 0 red,0 0 red", +} +`; + +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + ".ghi { box-shadow: 0 0 red,0 0 red; } +", + "", + ], +] +`; + +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "color": "red", + "ghi": "_ghi", + "shadow": "0 0 red,0 0 red", +} +`; + +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + "._ghi { box-shadow: 0 0 red,0 0 red; } +", + "", + ], +] +`; + +exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-5\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_3Uw-A6Tr2LkIED6NTqwFvj", "shadow": "0 0 red,0 0 red", } `; @@ -4522,7 +6919,7 @@ Array [ ], Array [ 1, - "._ghi { box-shadow: 0 0 red,0 0 red; } + "._3Uw-A6Tr2LkIED6NTqwFvj { box-shadow: 0 0 red,0 0 red; } ", "", ], @@ -4559,13 +6956,40 @@ exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_3Uw-A6Tr2LkIED6NTqwFvj", "shadow": "0 0 red,0 0 red", } `; exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "color": "red", + "shadow": "0 0 red,0 0 red", +} +`; + +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "color": "red", + "ghi": "_ghi", + "shadow": "0 0 red,0 0 red", +} +`; + +exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; @@ -4573,7 +6997,7 @@ exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-5\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_3Uw-A6Tr2LkIED6NTqwFvj", "shadow": "0 0 red,0 0 red", } `; @@ -4632,7 +7056,7 @@ exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_2qKjolC-wu9Dp8-RCkWiLN", "shadow": "0 0 red ,0 0 red", } `; @@ -4647,7 +7071,7 @@ Array [ ], Array [ 1, - "._ghi { box-shadow: 0 0 red ,0 0 red; } + "._2qKjolC-wu9Dp8-RCkWiLN { box-shadow: 0 0 red ,0 0 red; } ", "", ], @@ -4656,12 +7080,69 @@ Array [ exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "color": "red", + "shadow": "0 0 red ,0 0 red", +} +`; + +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + ".ghi { box-shadow: 0 0 red ,0 0 red; } +", + "", + ], +] +`; + +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "color": "red", + "ghi": "_ghi", + "shadow": "0 0 red ,0 0 red", +} +`; + +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + "._ghi { box-shadow: 0 0 red ,0 0 red; } +", + "", + ], +] +`; + +exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-6\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_2qKjolC-wu9Dp8-RCkWiLN", "shadow": "0 0 red ,0 0 red", } `; @@ -4676,7 +7157,7 @@ Array [ ], Array [ 1, - "._ghi { box-shadow: 0 0 red ,0 0 red; } + "._2qKjolC-wu9Dp8-RCkWiLN { box-shadow: 0 0 red ,0 0 red; } ", "", ], @@ -4713,13 +7194,40 @@ exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_2qKjolC-wu9Dp8-RCkWiLN", "shadow": "0 0 red ,0 0 red", } `; exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "color": "red", + "shadow": "0 0 red ,0 0 red", +} +`; + +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "color": "red", + "ghi": "_ghi", + "shadow": "0 0 red ,0 0 red", +} +`; + +exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; @@ -4727,7 +7235,7 @@ exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-6\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_2qKjolC-wu9Dp8-RCkWiLN", "shadow": "0 0 red ,0 0 red", } `; @@ -4786,7 +7294,7 @@ exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_1SVUxnI1T0vYEcq2VXU5pr", "shadow": "0 0 red, 0 0 red", } `; @@ -4801,7 +7309,7 @@ Array [ ], Array [ 1, - "._ghi { box-shadow: 0 0 red, 0 0 red; } + "._1SVUxnI1T0vYEcq2VXU5pr { box-shadow: 0 0 red, 0 0 red; } ", "", ], @@ -4810,17 +7318,16 @@ Array [ exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` Object { "color": "red", - "ghi": "_ghi", "shadow": "0 0 red, 0 0 red", } `; -exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` Array [ Array [ 2, @@ -4830,22 +7337,80 @@ Array [ ], Array [ 1, - "._ghi { box-shadow: 0 0 red, 0 0 red; } + ".ghi { box-shadow: 0 0 red, 0 0 red; } ", "", ], ] `; -exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; - -exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; -exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "color": "red", + "ghi": "_ghi", + "shadow": "0 0 red, 0 0 red", +} +`; -exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + "._ghi { box-shadow: 0 0 red, 0 0 red; } +", + "", + ], +] +`; + +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` +Object { + "color": "red", + "ghi": "_1SVUxnI1T0vYEcq2VXU5pr", + "shadow": "0 0 red, 0 0 red", +} +`; + +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 2, + " +", + "", + ], + Array [ + 1, + "._1SVUxnI1T0vYEcq2VXU5pr { box-shadow: 0 0 red, 0 0 red; } +", + "", + ], +] +`; + +exports[`modules case \`values-7\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`; exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`; @@ -4867,13 +7432,40 @@ exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_1SVUxnI1T0vYEcq2VXU5pr", "shadow": "0 0 red, 0 0 red", } `; exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "color": "red", + "shadow": "0 0 red, 0 0 red", +} +`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "color": "red", + "ghi": "_ghi", + "shadow": "0 0 red, 0 0 red", +} +`; + +exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; @@ -4881,7 +7473,7 @@ exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-7\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { "color": "red", - "ghi": "_ghi", + "ghi": "_1SVUxnI1T0vYEcq2VXU5pr", "shadow": "0 0 red, 0 0 red", } `; @@ -4938,7 +7530,7 @@ exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`loc exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` Object { - "shadow": "_shadow", + "shadow": "_3fhB2YwAmhjTmtcd6ofBQH", "shadow-color": "rgba(0, 0, 0, 0.5)", } `; @@ -4947,7 +7539,7 @@ exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`loc Array [ Array [ 1, - "._shadow { + "._3fhB2YwAmhjTmtcd6ofBQH { box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5), 10px 0px 5px rgba(0, 0, 0, 0.5); } @@ -4959,11 +7551,60 @@ Array [ exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "shadow-color": "rgba(0, 0, 0, 0.5)", +} +`; + +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".shadow { + box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5), + 10px 0px 5px rgba(0, 0, 0, 0.5); +} +", + "", + ], +] +`; + +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` +Object { + "shadow": "_shadow", + "shadow-color": "rgba(0, 0, 0, 0.5)", +} +`; + +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._shadow { + box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5), + 10px 0px 5px rgba(0, 0, 0, 0.5); +} +", + "", + ], +] +`; + +exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { - "shadow": "_shadow", + "shadow": "_3fhB2YwAmhjTmtcd6ofBQH", "shadow-color": "rgba(0, 0, 0, 0.5)", } `; @@ -4972,7 +7613,7 @@ exports[`modules case \`values-8\`: (export \`all\`) (\`modules\` value is \`tru Array [ Array [ 1, - "._shadow { + "._3fhB2YwAmhjTmtcd6ofBQH { box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5), 10px 0px 5px rgba(0, 0, 0, 0.5); } @@ -5010,20 +7651,45 @@ exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { - "shadow": "_shadow", + "shadow": "_3fhB2YwAmhjTmtcd6ofBQH", "shadow-color": "rgba(0, 0, 0, 0.5)", } `; exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "shadow-color": "rgba(0, 0, 0, 0.5)", +} +`; + +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` +Object { + "shadow": "_shadow", + "shadow-color": "rgba(0, 0, 0, 0.5)", +} +`; + +exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; + exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; exports[`modules case \`values-8\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` Object { - "shadow": "_shadow", + "shadow": "_3fhB2YwAmhjTmtcd6ofBQH", "shadow-color": "rgba(0, 0, 0, 0.5)", } `; @@ -5125,6 +7791,107 @@ exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`glo exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`; exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = ` +Object { + "def": "red", + "foo1": "_1V2U7x4U8oxxooLcDA25iL", + "foo2": "_3E1mOwwzg7yDREAM1sTqrf", + "foo3": "_1jURUggvUGFLzQ1zAWjNep", + "foo4": "_2gTeanreYt1oKNw6pvYDuQ", + "foo5": "_1FHimE7YIOvZ66qJzb5oD7", + "foo6": "_2ZsNKxzBYz6NW_ITMiAbSo", + "foo7": "_18TpSE38_jlCbLotZMXh67", +} +`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1V2U7x4U8oxxooLcDA25iL { + prop: func(red); +} + +._3E1mOwwzg7yDREAM1sTqrf { + prop: func(10px red); +} + +._1jURUggvUGFLzQ1zAWjNep { + prop: func(red 10px); +} + +._2gTeanreYt1oKNw6pvYDuQ { + prop: func(10px red 10px); +} + +._1FHimE7YIOvZ66qJzb5oD7 { + prop: func(10px, red); +} + +._2ZsNKxzBYz6NW_ITMiAbSo { + prop: func(red, 10px); +} + +._18TpSE38_jlCbLotZMXh67 { + prop: func(10px, red, 10px); +} +", + "", + ], +] +`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = ` +Object { + "def": "red", +} +`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".foo1 { + prop: func(red); +} + +.foo2 { + prop: func(10px red); +} + +.foo3 { + prop: func(red 10px); +} + +.foo4 { + prop: func(10px red 10px); +} + +.foo5 { + prop: func(10px, red); +} + +.foo6 { + prop: func(red, 10px); +} + +.foo7 { + prop: func(10px, red, 10px); +} +", + "", + ], +] +`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = ` Object { "def": "red", "foo1": "_foo1", @@ -5137,7 +7904,7 @@ Object { } `; -exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Array [ Array [ 1, @@ -5174,20 +7941,20 @@ Array [ ] `; -exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = ` Object { "def": "red", - "foo1": "_foo1", - "foo2": "_foo2", - "foo3": "_foo3", - "foo4": "_foo4", - "foo5": "_foo5", - "foo6": "_foo6", - "foo7": "_foo7", + "foo1": "_1V2U7x4U8oxxooLcDA25iL", + "foo2": "_3E1mOwwzg7yDREAM1sTqrf", + "foo3": "_1jURUggvUGFLzQ1zAWjNep", + "foo4": "_2gTeanreYt1oKNw6pvYDuQ", + "foo5": "_1FHimE7YIOvZ66qJzb5oD7", + "foo6": "_2ZsNKxzBYz6NW_ITMiAbSo", + "foo7": "_18TpSE38_jlCbLotZMXh67", } `; @@ -5195,31 +7962,31 @@ exports[`modules case \`values-9\`: (export \`all\`) (\`modules\` value is \`tru Array [ Array [ 1, - "._foo1 { + "._1V2U7x4U8oxxooLcDA25iL { prop: func(red); } -._foo2 { +._3E1mOwwzg7yDREAM1sTqrf { prop: func(10px red); } -._foo3 { +._1jURUggvUGFLzQ1zAWjNep { prop: func(red 10px); } -._foo4 { +._2gTeanreYt1oKNw6pvYDuQ { prop: func(10px red 10px); } -._foo5 { +._1FHimE7YIOvZ66qJzb5oD7 { prop: func(10px, red); } -._foo6 { +._2ZsNKxzBYz6NW_ITMiAbSo { prop: func(red, 10px); } -._foo7 { +._18TpSE38_jlCbLotZMXh67 { prop: func(10px, red, 10px); } ", @@ -5257,23 +8024,35 @@ exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = ` Object { "def": "red", - "foo1": "_foo1", - "foo2": "_foo2", - "foo3": "_foo3", - "foo4": "_foo4", - "foo5": "_foo5", - "foo6": "_foo6", - "foo7": "_foo7", + "foo1": "_1V2U7x4U8oxxooLcDA25iL", + "foo2": "_3E1mOwwzg7yDREAM1sTqrf", + "foo3": "_1jURUggvUGFLzQ1zAWjNep", + "foo4": "_2gTeanreYt1oKNw6pvYDuQ", + "foo5": "_1FHimE7YIOvZ66qJzb5oD7", + "foo6": "_2ZsNKxzBYz6NW_ITMiAbSo", + "foo7": "_18TpSE38_jlCbLotZMXh67", } `; exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`; -exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: errors 1`] = `Array []`; -exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: locals 1`] = `undefined`; -exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: module (evaluated) 1`] = ` +Object { + "def": "red", +} +`; + +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode global)\`: warnings 1`] = `Array []`; + +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: errors 1`] = `Array []`; + +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: module (evaluated) 1`] = ` Object { "def": "red", "foo1": "_foo1", @@ -5286,12 +8065,31 @@ Object { } `; -exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`object with mode local)\`: warnings 1`] = `Array []`; -exports[`modules composes should supports resolving: errors 1`] = `Array []`; +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`; -exports[`modules composes should supports resolving: module (evaluated) 1`] = ` -Array [ +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`; + +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = ` +Object { + "def": "red", + "foo1": "_1V2U7x4U8oxxooLcDA25iL", + "foo2": "_3E1mOwwzg7yDREAM1sTqrf", + "foo3": "_1jURUggvUGFLzQ1zAWjNep", + "foo4": "_2gTeanreYt1oKNw6pvYDuQ", + "foo5": "_1FHimE7YIOvZ66qJzb5oD7", + "foo6": "_2ZsNKxzBYz6NW_ITMiAbSo", + "foo7": "_18TpSE38_jlCbLotZMXh67", +} +`; + +exports[`modules case \`values-9\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`; + +exports[`modules composes should supports resolving: errors 1`] = `Array []`; + +exports[`modules composes should supports resolving: module (evaluated) 1`] = ` +Array [ Array [ 2, "._2Nehoi0wFTN-8p0fEfvUYd { @@ -5569,3 +8367,1525 @@ exports.locals = { `; exports[`modules issue #861: warnings 1`] = `Array []`; + +exports[`modules should accepts all arguments for getLocalIdent option: errors 1`] = `Array []`; + +exports[`modules should accepts all arguments for getLocalIdent option: locals 1`] = ` +Object { + "abc": "foo", + "def": "foo", + "ghi": "foo", + "jkl": "foo", +} +`; + +exports[`modules should accepts all arguments for getLocalIdent option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".foo .foo { + color: red; +} + +.foo .foo { + color: blue; +} +", + "", + ], +] +`; + +exports[`modules should accepts all arguments for getLocalIdent option: warnings 1`] = `Array []`; + +exports[`modules should correctly replace escaped symbols in selector with localIdentName option: errors 1`] = `Array []`; + +exports[`modules should correctly replace escaped symbols in selector with localIdentName option: locals 1`] = ` +Object { + "#": "#--1cQh", + "##": "##--1u97", + "#.#.#": "#.#.#--2QoP", + "#fake-id": "#fake-id--1d23", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.--2vJ9", + "-a-b-c-": "-a-b-c---opia", + "-a0-34a___f": "-a0-34a___f--2nJ5", + ".": ".--2hyg", + "123": "123--jOxY", + "1a2b3c": "1a2b3c--1_Xs", + ":)": ":)--2tSN", + ":\`(": ":\`(--3G_T", + ":hover": ":hover--1EAJ", + ":hover:focus:active": ":hover:focus:active--1v8f", + "<><<<>><>": "<><<<>><>--2mic", + "

": "

--dDVm", + "?": "?--2DX4", + "@": "@--mE1z", + "B&W?": "B&W?--1s8i", + "[attr=value]": "[attr=value]--2y3U", + "_": "_--2vOX", + "_test": "_test--23te", + "className": "className--1E8H", + "f!o!o": "f!o!o--3x3B", + "f'o'o": "f'o'o--2fVl", + "f*o*o": "f*o*o--3sRc", + "f+o+o": "f+o+o--38BA", + "f/o/o": "f/o/o--OYOz", + "f\\\\o\\\\o": "f\\\\o\\\\o--1Knj", + "foo.bar": "foo.bar--3ZJa", + "foo/bar": "foo/bar--36uD", + "foo/bar/baz": "foo/bar/baz--oTEb", + "foo\\\\bar": "foo\\\\bar--2KL0", + "foo\\\\bar\\\\baz": "foo\\\\bar\\\\baz--2Id2", + "f~o~o": "f~o~o--lYb3", + "m_x_@": "m_x_@--2G3b", + "someId": "someId--3w7J", + "subClass": "subClass--3lo0", + "test": "test--NW9Y", + "{}": "{}--3lRh", + "©": "©--143H", + "“‘’”": "“‘’”--2yW9", + "⌘⌥": "⌘⌥--6z9v", + "☺☃": "☺☃--3sW7", + "♥": "♥--8xlN", + "𝄞♪♩♫♬": "𝄞♪♩♫♬--1JEq", + "💩": "💩--2i25", +} +`; + +exports[`modules should correctly replace escaped symbols in selector with localIdentName option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".test--NW9Y { + background: red; +} + +._test--23te { + background: blue; +} + +.className--1E8H { + background: red; +} + +#someId--3w7J { + background: green; +} + +.className--1E8H .subClass--3lo0 { + color: green; +} + +#someId--3w7J .subClass--3lo0 { + color: blue; +} + +.-a0-34a___f--2nJ5 { + color: red; +} + +.m_x_\\\\@--2G3b { + margin-left: auto !important; + margin-right: auto !important; +} + +.B\\\\&W\\\\?--1s8i { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +.\\\\3A \\\\\`\\\\(--3G_T { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +.\\\\31 a2b3c--1_Xs { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#\\\\#fake-id--1d23 { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#-a-b-c---opia { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#©--143H { + color: black; +} + +.♥--8xlN { background: lime; } +.©--143H { background: lime; } +.“‘’”--2yW9 { background: lime; } +.☺☃--3sW7 { background: lime; } +.⌘⌥--6z9v { background: lime; } +.𝄞♪♩♫♬--1JEq { background: lime; } +.💩--2i25 { background: lime; } +.\\\\?--2DX4 { background: lime; } +.\\\\@--mE1z { background: lime; } +.\\\\.--2hyg { background: lime; } +.\\\\3A \\\\)--2tSN { background: lime; } +.\\\\3A \\\\\`\\\\(--3G_T { background: lime; } +.\\\\31 23--jOxY { background: lime; } +.\\\\31 a2b3c--1_Xs { background: lime; } +.\\\\--dDVm { background: lime; } +.\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\>--2mic { background: lime; } +.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\.--2vJ9 { background: lime; } +.\\\\#--1cQh { background: lime; } +.\\\\#\\\\#--1u97 { background: lime; } +.\\\\#\\\\.\\\\#\\\\.\\\\#--2QoP { background: lime; } +.\\\\_--2vOX { background: lime; } +.\\\\{\\\\}--3lRh { background: lime; } +.\\\\#fake\\\\-id--1d23 { background: lime; } +.foo\\\\.bar--3ZJa { background: lime; } +.\\\\3A hover--1EAJ { background: lime; } +.\\\\3A hover\\\\3A focus\\\\3A active--1v8f { background: lime; } +.\\\\[attr\\\\=value\\\\]--2y3U { background: lime; } +.f\\\\/o\\\\/o--OYOz { background: lime; } +.f\\\\\\\\o\\\\\\\\o--1Knj { background: lime; } +.f\\\\*o\\\\*o--3sRc { background: lime; } +.f\\\\!o\\\\!o--3x3B { background: lime; } +.f\\\\'o\\\\'o--2fVl { background: lime; } +.f\\\\~o\\\\~o--lYb3 { background: lime; } +.f\\\\+o\\\\+o--38BA { background: lime; } + +.foo\\\\/bar--36uD { + background: hotpink; +} + +.foo\\\\\\\\bar--2KL0 { + background: hotpink; +} + +.foo\\\\/bar\\\\/baz--oTEb { + background: hotpink; +} + +.foo\\\\\\\\bar\\\\\\\\baz--2Id2 { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should correctly replace escaped symbols in selector with localIdentName option: warnings 1`] = `Array []`; + +exports[`modules should prefixes leading hyphen + digit with underscore with localIdentName option: errors 1`] = `Array []`; + +exports[`modules should prefixes leading hyphen + digit with underscore with localIdentName option: locals 1`] = ` +Object { + "#": "_-1#", + "##": "_-1##", + "#.#.#": "_-1#.#.#", + "#fake-id": "_-1#fake-id", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "_-1++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", + "-a-b-c-": "_-1-a-b-c-", + "-a0-34a___f": "_-1-a0-34a___f", + ".": "_-1.", + "123": "_-1123", + "1a2b3c": "_-11a2b3c", + ":)": "_-1:)", + ":\`(": "_-1:\`(", + ":hover": "_-1:hover", + ":hover:focus:active": "_-1:hover:focus:active", + "<><<<>><>": "_-1<><<<>><>", + "

": "_-1

", + "?": "_-1?", + "@": "_-1@", + "B&W?": "_-1B&W?", + "[attr=value]": "_-1[attr=value]", + "_": "_-1_", + "_test": "_-1_test", + "className": "_-1className", + "f!o!o": "_-1f!o!o", + "f'o'o": "_-1f'o'o", + "f*o*o": "_-1f*o*o", + "f+o+o": "_-1f+o+o", + "f/o/o": "_-1f/o/o", + "f\\\\o\\\\o": "_-1f\\\\o\\\\o", + "foo.bar": "_-1foo.bar", + "foo/bar": "_-1foo/bar", + "foo/bar/baz": "_-1foo/bar/baz", + "foo\\\\bar": "_-1foo\\\\bar", + "foo\\\\bar\\\\baz": "_-1foo\\\\bar\\\\baz", + "f~o~o": "_-1f~o~o", + "m_x_@": "_-1m_x_@", + "someId": "_-1someId", + "subClass": "_-1subClass", + "test": "_-1test", + "{}": "_-1{}", + "©": "_-1©", + "“‘’”": "_-1“‘’”", + "⌘⌥": "_-1⌘⌥", + "☺☃": "_-1☺☃", + "♥": "_-1♥", + "𝄞♪♩♫♬": "_-1𝄞♪♩♫♬", + "💩": "_-1💩", +} +`; + +exports[`modules should prefixes leading hyphen + digit with underscore with localIdentName option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._-1test { + background: red; +} + +._-1_test { + background: blue; +} + +._-1className { + background: red; +} + +#_-1someId { + background: green; +} + +._-1className ._-1subClass { + color: green; +} + +#_-1someId ._-1subClass { + color: blue; +} + +._-1-a0-34a___f { + color: red; +} + +._-1m_x_\\\\@ { + margin-left: auto !important; + margin-right: auto !important; +} + +._-1B\\\\&W\\\\? { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +._-1\\\\3A \\\\\`\\\\( { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +._-1\\\\31 a2b3c { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#_-1\\\\#fake-id { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#_-1-a-b-c- { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#_-1© { + color: black; +} + +._-1♥ { background: lime; } +._-1© { background: lime; } +._-1“‘’” { background: lime; } +._-1☺☃ { background: lime; } +._-1⌘⌥ { background: lime; } +._-1𝄞♪♩♫♬ { background: lime; } +._-1💩 { background: lime; } +._-1\\\\? { background: lime; } +._-1\\\\@ { background: lime; } +._-1\\\\. { background: lime; } +._-1\\\\3A \\\\) { background: lime; } +._-1\\\\3A \\\\\`\\\\( { background: lime; } +._-1\\\\31 23 { background: lime; } +._-1\\\\31 a2b3c { background: lime; } +._-1\\\\ { background: lime; } +._-1\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } +._-1\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } +._-1\\\\# { background: lime; } +._-1\\\\#\\\\# { background: lime; } +._-1\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } +._-1\\\\_ { background: lime; } +._-1\\\\{\\\\} { background: lime; } +._-1\\\\#fake\\\\-id { background: lime; } +._-1foo\\\\.bar { background: lime; } +._-1\\\\3A hover { background: lime; } +._-1\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } +._-1\\\\[attr\\\\=value\\\\] { background: lime; } +._-1f\\\\/o\\\\/o { background: lime; } +._-1f\\\\\\\\o\\\\\\\\o { background: lime; } +._-1f\\\\*o\\\\*o { background: lime; } +._-1f\\\\!o\\\\!o { background: lime; } +._-1f\\\\'o\\\\'o { background: lime; } +._-1f\\\\~o\\\\~o { background: lime; } +._-1f\\\\+o\\\\+o { background: lime; } + +._-1foo\\\\/bar { + background: hotpink; +} + +._-1foo\\\\\\\\bar { + background: hotpink; +} + +._-1foo\\\\/bar\\\\/baz { + background: hotpink; +} + +._-1foo\\\\\\\\bar\\\\\\\\baz { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should prefixes leading hyphen + digit with underscore with localIdentName option: warnings 1`] = `Array []`; + +exports[`modules should prefixes two leading hyphens with underscore with localIdentName option: errors 1`] = `Array []`; + +exports[`modules should prefixes two leading hyphens with underscore with localIdentName option: locals 1`] = ` +Object { + "#": "_--#", + "##": "_--##", + "#.#.#": "_--#.#.#", + "#fake-id": "_--#fake-id", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "_--++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", + "-a-b-c-": "_---a-b-c-", + "-a0-34a___f": "_---a0-34a___f", + ".": "_--.", + "123": "_--123", + "1a2b3c": "_--1a2b3c", + ":)": "_--:)", + ":\`(": "_--:\`(", + ":hover": "_--:hover", + ":hover:focus:active": "_--:hover:focus:active", + "<><<<>><>": "_--<><<<>><>", + "

": "_--

", + "?": "_--?", + "@": "_--@", + "B&W?": "_--B&W?", + "[attr=value]": "_--[attr=value]", + "_": "_--_", + "_test": "_--_test", + "className": "_--className", + "f!o!o": "_--f!o!o", + "f'o'o": "_--f'o'o", + "f*o*o": "_--f*o*o", + "f+o+o": "_--f+o+o", + "f/o/o": "_--f/o/o", + "f\\\\o\\\\o": "_--f\\\\o\\\\o", + "foo.bar": "_--foo.bar", + "foo/bar": "_--foo/bar", + "foo/bar/baz": "_--foo/bar/baz", + "foo\\\\bar": "_--foo\\\\bar", + "foo\\\\bar\\\\baz": "_--foo\\\\bar\\\\baz", + "f~o~o": "_--f~o~o", + "m_x_@": "_--m_x_@", + "someId": "_--someId", + "subClass": "_--subClass", + "test": "_--test", + "{}": "_--{}", + "©": "_--©", + "“‘’”": "_--“‘’”", + "⌘⌥": "_--⌘⌥", + "☺☃": "_--☺☃", + "♥": "_--♥", + "𝄞♪♩♫♬": "_--𝄞♪♩♫♬", + "💩": "_--💩", +} +`; + +exports[`modules should prefixes two leading hyphens with underscore with localIdentName option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._--test { + background: red; +} + +._--_test { + background: blue; +} + +._--className { + background: red; +} + +#_--someId { + background: green; +} + +._--className ._--subClass { + color: green; +} + +#_--someId ._--subClass { + color: blue; +} + +._---a0-34a___f { + color: red; +} + +._--m_x_\\\\@ { + margin-left: auto !important; + margin-right: auto !important; +} + +._--B\\\\&W\\\\? { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +._--\\\\3A \\\\\`\\\\( { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +._--\\\\31 a2b3c { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#_--\\\\#fake-id { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#_---a-b-c- { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#_--© { + color: black; +} + +._--♥ { background: lime; } +._--© { background: lime; } +._--“‘’” { background: lime; } +._--☺☃ { background: lime; } +._--⌘⌥ { background: lime; } +._--𝄞♪♩♫♬ { background: lime; } +._--💩 { background: lime; } +._--\\\\? { background: lime; } +._--\\\\@ { background: lime; } +._--\\\\. { background: lime; } +._--\\\\3A \\\\) { background: lime; } +._--\\\\3A \\\\\`\\\\( { background: lime; } +._--\\\\31 23 { background: lime; } +._--\\\\31 a2b3c { background: lime; } +._--\\\\ { background: lime; } +._--\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } +._--\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } +._--\\\\# { background: lime; } +._--\\\\#\\\\# { background: lime; } +._--\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } +._--\\\\_ { background: lime; } +._--\\\\{\\\\} { background: lime; } +._--\\\\#fake\\\\-id { background: lime; } +._--foo\\\\.bar { background: lime; } +._--\\\\3A hover { background: lime; } +._--\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } +._--\\\\[attr\\\\=value\\\\] { background: lime; } +._--f\\\\/o\\\\/o { background: lime; } +._--f\\\\\\\\o\\\\\\\\o { background: lime; } +._--f\\\\*o\\\\*o { background: lime; } +._--f\\\\!o\\\\!o { background: lime; } +._--f\\\\'o\\\\'o { background: lime; } +._--f\\\\~o\\\\~o { background: lime; } +._--f\\\\+o\\\\+o { background: lime; } + +._--foo\\\\/bar { + background: hotpink; +} + +._--foo\\\\\\\\bar { + background: hotpink; +} + +._--foo\\\\/bar\\\\/baz { + background: hotpink; +} + +._--foo\\\\\\\\bar\\\\\\\\baz { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should prefixes two leading hyphens with underscore with localIdentName option: warnings 1`] = `Array []`; + +exports[`modules should respects context option: errors 1`] = `Array []`; + +exports[`modules should respects context option: locals 1`] = ` +Object { + "#": "O8Yw611P", + "##": "_3er0DBiz", + "#.#.#": "_22RlZfs4", + "#fake-id": "_3i_zUQNU", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "_3hmdGGWi", + "-a-b-c-": "_1cY1s7c1", + "-a0-34a___f": "_3RHUZpqp", + ".": "nfd9MoI8", + "123": "_3JQcZq0t", + "1a2b3c": "_3IsxVsEE", + ":)": "_3EKgIWue", + ":\`(": "_3oWIzQc7", + ":hover": "B2whyhV4", + ":hover:focus:active": "_3R7r57b4", + "<><<<>><>": "Tr9vNLcW", + "

": "_3Lowms-R", + "?": "mRRxxKEQ", + "@": "_3ZlTEPhx", + "B&W?": "_3d3wghvo", + "[attr=value]": "_3GgRcos7", + "_": "_2V6oBdW4", + "_test": "_3Q--BATR", + "className": "_3wBIH6Tw", + "f!o!o": "_2pDEJqK-", + "f'o'o": "_3297Sjlr", + "f*o*o": "MI6DPcI5", + "f+o+o": "_3aNwyLoj", + "f/o/o": "jbPgrxdZ", + "f\\\\o\\\\o": "_3x1WTWOH", + "foo.bar": "_2FVtFG40", + "foo/bar": "_13Q-TIeR", + "foo/bar/baz": "_1I8mGSan", + "foo\\\\bar": "LKTPJkpW", + "foo\\\\bar\\\\baz": "xcAsBCbt", + "f~o~o": "_1TY6Bok1", + "m_x_@": "_3SfN7O2q", + "someId": "mxosG-Ww", + "subClass": "_3jIM-zUk", + "test": "_1Os7JVOf", + "{}": "_2ZR3d8gm", + "©": "_3QaoFt--", + "“‘’”": "_3xI9AT1p", + "⌘⌥": "_1V-to4Of", + "☺☃": "uy8uve6R", + "♥": "kO1_7SYu", + "𝄞♪♩♫♬": "_1tfs0VJo", + "💩": "_2Cl61yWh", +} +`; + +exports[`modules should respects context option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + "._1Os7JVOf { + background: red; +} + +._3Q--BATR { + background: blue; +} + +._3wBIH6Tw { + background: red; +} + +#mxosG-Ww { + background: green; +} + +._3wBIH6Tw ._3jIM-zUk { + color: green; +} + +#mxosG-Ww ._3jIM-zUk { + color: blue; +} + +._3RHUZpqp { + color: red; +} + +._3SfN7O2q { + margin-left: auto !important; + margin-right: auto !important; +} + +._3d3wghvo { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +._3oWIzQc7 { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +._3IsxVsEE { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#_3i_zUQNU { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#_1cY1s7c1 { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#_3QaoFt-- { + color: black; +} + +.kO1_7SYu { background: lime; } +._3QaoFt-- { background: lime; } +._3xI9AT1p { background: lime; } +.uy8uve6R { background: lime; } +._1V-to4Of { background: lime; } +._1tfs0VJo { background: lime; } +._2Cl61yWh { background: lime; } +.mRRxxKEQ { background: lime; } +._3ZlTEPhx { background: lime; } +.nfd9MoI8 { background: lime; } +._3EKgIWue { background: lime; } +._3oWIzQc7 { background: lime; } +._3JQcZq0t { background: lime; } +._3IsxVsEE { background: lime; } +._3Lowms-R { background: lime; } +.Tr9vNLcW { background: lime; } +._3hmdGGWi { background: lime; } +.O8Yw611P { background: lime; } +._3er0DBiz { background: lime; } +._22RlZfs4 { background: lime; } +._2V6oBdW4 { background: lime; } +._2ZR3d8gm { background: lime; } +._3i_zUQNU { background: lime; } +._2FVtFG40 { background: lime; } +.B2whyhV4 { background: lime; } +._3R7r57b4 { background: lime; } +._3GgRcos7 { background: lime; } +.jbPgrxdZ { background: lime; } +._3x1WTWOH { background: lime; } +.MI6DPcI5 { background: lime; } +._2pDEJqK- { background: lime; } +._3297Sjlr { background: lime; } +._1TY6Bok1 { background: lime; } +._3aNwyLoj { background: lime; } + +._13Q-TIeR { + background: hotpink; +} + +.LKTPJkpW { + background: hotpink; +} + +._1I8mGSan { + background: hotpink; +} + +.xcAsBCbt { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should respects context option: warnings 1`] = `Array []`; + +exports[`modules should respects getLocalIdent option (global mode): errors 1`] = `Array []`; + +exports[`modules should respects getLocalIdent option (global mode): locals 1`] = ` +Object { + "abc": "foo", + "def": "foo", + "ghi": "foo", + "jkl": "foo", +} +`; + +exports[`modules should respects getLocalIdent option (global mode): module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".foo .foo { + color: red; +} + +.foo .foo { + color: blue; +} +", + "", + ], +] +`; + +exports[`modules should respects getLocalIdent option (global mode): warnings 1`] = `Array []`; + +exports[`modules should respects getLocalIdent option (local mode): errors 1`] = `Array []`; + +exports[`modules should respects getLocalIdent option (local mode): locals 1`] = ` +Object { + "abc": "foo", + "def": "foo", + "ghi": "foo", + "jkl": "foo", +} +`; + +exports[`modules should respects getLocalIdent option (local mode): module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".foo .foo { + color: red; +} + +.foo .foo { + color: blue; +} +", + "", + ], +] +`; + +exports[`modules should respects getLocalIdent option (local mode): warnings 1`] = `Array []`; + +exports[`modules should respects hashPrefix option with localIdentName option: errors 1`] = `Array []`; + +exports[`modules should respects hashPrefix option with localIdentName option: locals 1`] = ` +Object { + "#": "#--8caa1febb853c79bc5740a51d69b0603", + "##": "##--e6e70cede894cf8ecef86891b00438fa", + "#.#.#": "#.#.#--f93b20473b91262c9634348506fe36fe", + "#fake-id": "#fake-id--a0d1d29b3c920aa3985fb11586f994e6", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.--937528d96919903e5a5172d04ced259a", + "-a-b-c-": "-a-b-c---5b1d694462fbb9af324bb0ed2a08d755", + "-a0-34a___f": "-a0-34a___f--e99d667fe0ceff9363b011302ac3f508", + ".": ".--12cd2fe5f9c81510bf687df3b6461cb1", + "123": "123--e5bcdf25b52ca483d65894eae427ccff", + "1a2b3c": "1a2b3c--165cab18879cee9a48ae4cbb5fdd39a8", + ":)": ":)--2f61aa454a9e7fd205da87e665dff51b", + ":\`(": ":\`(--612466e663a46fe230e6db648089b4c4", + ":hover": ":hover--af8b669c2dc29371d450d428f0bfa5d2", + ":hover:focus:active": ":hover:focus:active--5c55d7a925c8ee5de2e8f175badce4d6", + "<><<<>><>": "<><<<>><>--ac5886bfd5b1a8264bdda01deaf52762", + "

": "

--c168cd4e00ec053d5bd509da80f5db38", + "?": "?--4f09eb0a56c6b8f25f7ef4def006df7e", + "@": "@--254139a6858615f890093da92bb4c90b", + "B&W?": "B&W?--8c20b8856e47b8157bf47451b1b6d9a6", + "[attr=value]": "[attr=value]--db83b30c2535d713bd9f8fd195909f24", + "_": "_--f18cdd3b2ff360c3f4c10cc7559ff003", + "_test": "_test--d745495d407559ef605c9072243801fd", + "className": "className--eab624d1bc6b9c6b6a4278d1030dd690", + "f!o!o": "f!o!o--ea3b21fd9d4327fbc9d8b949a2bd5823", + "f'o'o": "f'o'o--95fe160ec21a5b70221e47b09b21fcd2", + "f*o*o": "f*o*o--a5f60f217da867c314860c5b2e28bbfd", + "f+o+o": "f+o+o--1e99689a1b3985adff358f3bd4aea7ed", + "f/o/o": "f/o/o--5de918433a006304ca487065b8626dd4", + "f\\\\o\\\\o": "f\\\\o\\\\o--e9ae2e1857289425acfa40a3f741babd", + "foo.bar": "foo.bar--e1dfb05dd5c7c36228cc87fe2cd0c6b1", + "foo/bar": "foo/bar--5b852e67587217ab19651f30a9b4df53", + "foo/bar/baz": "foo/bar/baz--d917a2cf9531290fbf3aa43e0cc0520f", + "foo\\\\bar": "foo\\\\bar--6cf70ff94feb1257af10e9ddcc47d54f", + "foo\\\\bar\\\\baz": "foo\\\\bar\\\\baz--1900aa5b4b5b2443299cc5e8afa9b3b4", + "f~o~o": "f~o~o--b9707d2eae11417a88a3f638b64eca30", + "m_x_@": "m_x_@--de463fc45a1e6dd0ed23f26a568f1d61", + "someId": "someId--a0ce220cc9bbb1ee0e85cc0d1f0c6aa9", + "subClass": "subClass--2c82998be8a2b2e94ad7be56c9e685cd", + "test": "test--307c32aa793aaec9aecded85a9fdd448", + "{}": "{}--6db4a8e6a78415e8209253db0c3dd7c5", + "©": "©--074c8458dd077a052783bb5f4c5b5911", + "“‘’”": "“‘’”--00f526c32cd5eec8f5de2965f2ca9457", + "⌘⌥": "⌘⌥--c42685a7cfeb3b510a6d8169d58bf02d", + "☺☃": "☺☃--0ea31e7c348b5949a05bce4eebcb59eb", + "♥": "♥--37952b59a9aa684be1d91192f863babf", + "𝄞♪♩♫♬": "𝄞♪♩♫♬--ece85fb9868788feab6a8f1259b9ff9d", + "💩": "💩--1c19fe6dd9ca556af34bbda8a2cbbbdf", +} +`; + +exports[`modules should respects hashPrefix option with localIdentName option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".test--307c32aa793aaec9aecded85a9fdd448 { + background: red; +} + +._test--d745495d407559ef605c9072243801fd { + background: blue; +} + +.className--eab624d1bc6b9c6b6a4278d1030dd690 { + background: red; +} + +#someId--a0ce220cc9bbb1ee0e85cc0d1f0c6aa9 { + background: green; +} + +.className--eab624d1bc6b9c6b6a4278d1030dd690 .subClass--2c82998be8a2b2e94ad7be56c9e685cd { + color: green; +} + +#someId--a0ce220cc9bbb1ee0e85cc0d1f0c6aa9 .subClass--2c82998be8a2b2e94ad7be56c9e685cd { + color: blue; +} + +.-a0-34a___f--e99d667fe0ceff9363b011302ac3f508 { + color: red; +} + +.m_x_\\\\@--de463fc45a1e6dd0ed23f26a568f1d61 { + margin-left: auto !important; + margin-right: auto !important; +} + +.B\\\\&W\\\\?--8c20b8856e47b8157bf47451b1b6d9a6 { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +.\\\\3A \\\\\`\\\\(--612466e663a46fe230e6db648089b4c4 { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +.\\\\31 a2b3c--165cab18879cee9a48ae4cbb5fdd39a8 { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#\\\\#fake-id--a0d1d29b3c920aa3985fb11586f994e6 { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#-a-b-c---5b1d694462fbb9af324bb0ed2a08d755 { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#©--074c8458dd077a052783bb5f4c5b5911 { + color: black; +} + +.♥--37952b59a9aa684be1d91192f863babf { background: lime; } +.©--074c8458dd077a052783bb5f4c5b5911 { background: lime; } +.“‘’”--00f526c32cd5eec8f5de2965f2ca9457 { background: lime; } +.☺☃--0ea31e7c348b5949a05bce4eebcb59eb { background: lime; } +.⌘⌥--c42685a7cfeb3b510a6d8169d58bf02d { background: lime; } +.𝄞♪♩♫♬--ece85fb9868788feab6a8f1259b9ff9d { background: lime; } +.💩--1c19fe6dd9ca556af34bbda8a2cbbbdf { background: lime; } +.\\\\?--4f09eb0a56c6b8f25f7ef4def006df7e { background: lime; } +.\\\\@--254139a6858615f890093da92bb4c90b { background: lime; } +.\\\\.--12cd2fe5f9c81510bf687df3b6461cb1 { background: lime; } +.\\\\3A \\\\)--2f61aa454a9e7fd205da87e665dff51b { background: lime; } +.\\\\3A \\\\\`\\\\(--612466e663a46fe230e6db648089b4c4 { background: lime; } +.\\\\31 23--e5bcdf25b52ca483d65894eae427ccff { background: lime; } +.\\\\31 a2b3c--165cab18879cee9a48ae4cbb5fdd39a8 { background: lime; } +.\\\\--c168cd4e00ec053d5bd509da80f5db38 { background: lime; } +.\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\>--ac5886bfd5b1a8264bdda01deaf52762 { background: lime; } +.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\.--937528d96919903e5a5172d04ced259a { background: lime; } +.\\\\#--8caa1febb853c79bc5740a51d69b0603 { background: lime; } +.\\\\#\\\\#--e6e70cede894cf8ecef86891b00438fa { background: lime; } +.\\\\#\\\\.\\\\#\\\\.\\\\#--f93b20473b91262c9634348506fe36fe { background: lime; } +.\\\\_--f18cdd3b2ff360c3f4c10cc7559ff003 { background: lime; } +.\\\\{\\\\}--6db4a8e6a78415e8209253db0c3dd7c5 { background: lime; } +.\\\\#fake\\\\-id--a0d1d29b3c920aa3985fb11586f994e6 { background: lime; } +.foo\\\\.bar--e1dfb05dd5c7c36228cc87fe2cd0c6b1 { background: lime; } +.\\\\3A hover--af8b669c2dc29371d450d428f0bfa5d2 { background: lime; } +.\\\\3A hover\\\\3A focus\\\\3A active--5c55d7a925c8ee5de2e8f175badce4d6 { background: lime; } +.\\\\[attr\\\\=value\\\\]--db83b30c2535d713bd9f8fd195909f24 { background: lime; } +.f\\\\/o\\\\/o--5de918433a006304ca487065b8626dd4 { background: lime; } +.f\\\\\\\\o\\\\\\\\o--e9ae2e1857289425acfa40a3f741babd { background: lime; } +.f\\\\*o\\\\*o--a5f60f217da867c314860c5b2e28bbfd { background: lime; } +.f\\\\!o\\\\!o--ea3b21fd9d4327fbc9d8b949a2bd5823 { background: lime; } +.f\\\\'o\\\\'o--95fe160ec21a5b70221e47b09b21fcd2 { background: lime; } +.f\\\\~o\\\\~o--b9707d2eae11417a88a3f638b64eca30 { background: lime; } +.f\\\\+o\\\\+o--1e99689a1b3985adff358f3bd4aea7ed { background: lime; } + +.foo\\\\/bar--5b852e67587217ab19651f30a9b4df53 { + background: hotpink; +} + +.foo\\\\\\\\bar--6cf70ff94feb1257af10e9ddcc47d54f { + background: hotpink; +} + +.foo\\\\/bar\\\\/baz--d917a2cf9531290fbf3aa43e0cc0520f { + background: hotpink; +} + +.foo\\\\\\\\bar\\\\\\\\baz--1900aa5b4b5b2443299cc5e8afa9b3b4 { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should respects hashPrefix option with localIdentName option: warnings 1`] = `Array []`; + +exports[`modules should respects localIdentName option: errors 1`] = `Array []`; + +exports[`modules should respects localIdentName option: locals 1`] = ` +Object { + "#": "localIdentName--#--O8Yw6", + "##": "localIdentName--##--3er0D", + "#.#.#": "localIdentName--#.#.#--22RlZ", + "#fake-id": "localIdentName--#fake-id--3i_zU", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "localIdentName--++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.--3hmdG", + "-a-b-c-": "localIdentName---a-b-c---1cY1s", + "-a0-34a___f": "localIdentName---a0-34a___f--3RHUZ", + ".": "localIdentName--.--nfd9M", + "123": "localIdentName--123--3JQcZ", + "1a2b3c": "localIdentName--1a2b3c--3IsxV", + ":)": "localIdentName--:)--3EKgI", + ":\`(": "localIdentName--:\`(--3oWIz", + ":hover": "localIdentName--:hover--B2why", + ":hover:focus:active": "localIdentName--:hover:focus:active--3R7r5", + "<><<<>><>": "localIdentName--<><<<>><>--Tr9vN", + "

": "localIdentName--

--3Lowm", + "?": "localIdentName--?--mRRxx", + "@": "localIdentName--@--3ZlTE", + "B&W?": "localIdentName--B&W?--3d3wg", + "[attr=value]": "localIdentName--[attr=value]--3GgRc", + "_": "localIdentName--_--2V6oB", + "_test": "localIdentName--_test--3Q--B", + "className": "localIdentName--className--3wBIH", + "f!o!o": "localIdentName--f!o!o--2pDEJ", + "f'o'o": "localIdentName--f'o'o--3297S", + "f*o*o": "localIdentName--f*o*o--MI6DP", + "f+o+o": "localIdentName--f+o+o--3aNwy", + "f/o/o": "localIdentName--f/o/o--jbPgr", + "f\\\\o\\\\o": "localIdentName--f\\\\o\\\\o--3x1WT", + "foo.bar": "localIdentName--foo.bar--2FVtF", + "foo/bar": "localIdentName--foo/bar--13Q-T", + "foo/bar/baz": "localIdentName--foo/bar/baz--1I8mG", + "foo\\\\bar": "localIdentName--foo\\\\bar--LKTPJ", + "foo\\\\bar\\\\baz": "localIdentName--foo\\\\bar\\\\baz--xcAsB", + "f~o~o": "localIdentName--f~o~o--1TY6B", + "m_x_@": "localIdentName--m_x_@--3SfN7", + "someId": "localIdentName--someId--mxosG", + "subClass": "localIdentName--subClass--3jIM-", + "test": "localIdentName--test--1Os7J", + "{}": "localIdentName--{}--2ZR3d", + "©": "localIdentName--©--3QaoF", + "“‘’”": "localIdentName--“‘’”--3xI9A", + "⌘⌥": "localIdentName--⌘⌥--1V-to", + "☺☃": "localIdentName--☺☃--uy8uv", + "♥": "localIdentName--♥--kO1_7", + "𝄞♪♩♫♬": "localIdentName--𝄞♪♩♫♬--1tfs0", + "💩": "localIdentName--💩--2Cl61", +} +`; + +exports[`modules should respects localIdentName option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".localIdentName--test--1Os7J { + background: red; +} + +.localIdentName--_test--3Q--B { + background: blue; +} + +.localIdentName--className--3wBIH { + background: red; +} + +#localIdentName--someId--mxosG { + background: green; +} + +.localIdentName--className--3wBIH .localIdentName--subClass--3jIM- { + color: green; +} + +#localIdentName--someId--mxosG .localIdentName--subClass--3jIM- { + color: blue; +} + +.localIdentName---a0-34a___f--3RHUZ { + color: red; +} + +.localIdentName--m_x_\\\\@--3SfN7 { + margin-left: auto !important; + margin-right: auto !important; +} + +.localIdentName--B\\\\&W\\\\?--3d3wg { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +.localIdentName--\\\\3A \\\\\`\\\\(--3oWIz { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +.localIdentName--\\\\31 a2b3c--3IsxV { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#localIdentName--\\\\#fake-id--3i_zU { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#localIdentName---a-b-c---1cY1s { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#localIdentName--©--3QaoF { + color: black; +} + +.localIdentName--♥--kO1_7 { background: lime; } +.localIdentName--©--3QaoF { background: lime; } +.localIdentName--“‘’”--3xI9A { background: lime; } +.localIdentName--☺☃--uy8uv { background: lime; } +.localIdentName--⌘⌥--1V-to { background: lime; } +.localIdentName--𝄞♪♩♫♬--1tfs0 { background: lime; } +.localIdentName--💩--2Cl61 { background: lime; } +.localIdentName--\\\\?--mRRxx { background: lime; } +.localIdentName--\\\\@--3ZlTE { background: lime; } +.localIdentName--\\\\.--nfd9M { background: lime; } +.localIdentName--\\\\3A \\\\)--3EKgI { background: lime; } +.localIdentName--\\\\3A \\\\\`\\\\(--3oWIz { background: lime; } +.localIdentName--\\\\31 23--3JQcZ { background: lime; } +.localIdentName--\\\\31 a2b3c--3IsxV { background: lime; } +.localIdentName--\\\\--3Lowm { background: lime; } +.localIdentName--\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\>--Tr9vN { background: lime; } +.localIdentName--\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\.--3hmdG { background: lime; } +.localIdentName--\\\\#--O8Yw6 { background: lime; } +.localIdentName--\\\\#\\\\#--3er0D { background: lime; } +.localIdentName--\\\\#\\\\.\\\\#\\\\.\\\\#--22RlZ { background: lime; } +.localIdentName--\\\\_--2V6oB { background: lime; } +.localIdentName--\\\\{\\\\}--2ZR3d { background: lime; } +.localIdentName--\\\\#fake\\\\-id--3i_zU { background: lime; } +.localIdentName--foo\\\\.bar--2FVtF { background: lime; } +.localIdentName--\\\\3A hover--B2why { background: lime; } +.localIdentName--\\\\3A hover\\\\3A focus\\\\3A active--3R7r5 { background: lime; } +.localIdentName--\\\\[attr\\\\=value\\\\]--3GgRc { background: lime; } +.localIdentName--f\\\\/o\\\\/o--jbPgr { background: lime; } +.localIdentName--f\\\\\\\\o\\\\\\\\o--3x1WT { background: lime; } +.localIdentName--f\\\\*o\\\\*o--MI6DP { background: lime; } +.localIdentName--f\\\\!o\\\\!o--2pDEJ { background: lime; } +.localIdentName--f\\\\'o\\\\'o--3297S { background: lime; } +.localIdentName--f\\\\~o\\\\~o--1TY6B { background: lime; } +.localIdentName--f\\\\+o\\\\+o--3aNwy { background: lime; } + +.localIdentName--foo\\\\/bar--13Q-T { + background: hotpink; +} + +.localIdentName--foo\\\\\\\\bar--LKTPJ { + background: hotpink; +} + +.localIdentName--foo\\\\/bar\\\\/baz--1I8mG { + background: hotpink; +} + +.localIdentName--foo\\\\\\\\bar\\\\\\\\baz--xcAsB { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should respects localIdentName option: warnings 1`] = `Array []`; + +exports[`modules should respects path in localIdentName option: errors 1`] = `Array []`; + +exports[`modules should respects path in localIdentName option: locals 1`] = ` +Object { + "#": "fixtures/modules/--localIdentName--#", + "##": "fixtures/modules/--localIdentName--##", + "#.#.#": "fixtures/modules/--localIdentName--#.#.#", + "#fake-id": "fixtures/modules/--localIdentName--#fake-id", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "fixtures/modules/--localIdentName--++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", + "-a-b-c-": "fixtures/modules/--localIdentName---a-b-c-", + "-a0-34a___f": "fixtures/modules/--localIdentName---a0-34a___f", + ".": "fixtures/modules/--localIdentName--.", + "123": "fixtures/modules/--localIdentName--123", + "1a2b3c": "fixtures/modules/--localIdentName--1a2b3c", + ":)": "fixtures/modules/--localIdentName--:)", + ":\`(": "fixtures/modules/--localIdentName--:\`(", + ":hover": "fixtures/modules/--localIdentName--:hover", + ":hover:focus:active": "fixtures/modules/--localIdentName--:hover:focus:active", + "<><<<>><>": "fixtures/modules/--localIdentName--<><<<>><>", + "

": "fixtures/modules/--localIdentName--

", + "?": "fixtures/modules/--localIdentName--?", + "@": "fixtures/modules/--localIdentName--@", + "B&W?": "fixtures/modules/--localIdentName--B&W?", + "[attr=value]": "fixtures/modules/--localIdentName--[attr=value]", + "_": "fixtures/modules/--localIdentName--_", + "_test": "fixtures/modules/--localIdentName--_test", + "className": "fixtures/modules/--localIdentName--className", + "f!o!o": "fixtures/modules/--localIdentName--f!o!o", + "f'o'o": "fixtures/modules/--localIdentName--f'o'o", + "f*o*o": "fixtures/modules/--localIdentName--f*o*o", + "f+o+o": "fixtures/modules/--localIdentName--f+o+o", + "f/o/o": "fixtures/modules/--localIdentName--f/o/o", + "f\\\\o\\\\o": "fixtures/modules/--localIdentName--f\\\\o\\\\o", + "foo.bar": "fixtures/modules/--localIdentName--foo.bar", + "foo/bar": "fixtures/modules/--localIdentName--foo/bar", + "foo/bar/baz": "fixtures/modules/--localIdentName--foo/bar/baz", + "foo\\\\bar": "fixtures/modules/--localIdentName--foo\\\\bar", + "foo\\\\bar\\\\baz": "fixtures/modules/--localIdentName--foo\\\\bar\\\\baz", + "f~o~o": "fixtures/modules/--localIdentName--f~o~o", + "m_x_@": "fixtures/modules/--localIdentName--m_x_@", + "someId": "fixtures/modules/--localIdentName--someId", + "subClass": "fixtures/modules/--localIdentName--subClass", + "test": "fixtures/modules/--localIdentName--test", + "{}": "fixtures/modules/--localIdentName--{}", + "©": "fixtures/modules/--localIdentName--©", + "“‘’”": "fixtures/modules/--localIdentName--“‘’”", + "⌘⌥": "fixtures/modules/--localIdentName--⌘⌥", + "☺☃": "fixtures/modules/--localIdentName--☺☃", + "♥": "fixtures/modules/--localIdentName--♥", + "𝄞♪♩♫♬": "fixtures/modules/--localIdentName--𝄞♪♩♫♬", + "💩": "fixtures/modules/--localIdentName--💩", +} +`; + +exports[`modules should respects path in localIdentName option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".fixtures\\\\/modules\\\\/--localIdentName--test { + background: red; +} + +.fixtures\\\\/modules\\\\/--localIdentName--_test { + background: blue; +} + +.fixtures\\\\/modules\\\\/--localIdentName--className { + background: red; +} + +#fixtures\\\\/modules\\\\/--localIdentName--someId { + background: green; +} + +.fixtures\\\\/modules\\\\/--localIdentName--className .fixtures\\\\/modules\\\\/--localIdentName--subClass { + color: green; +} + +#fixtures\\\\/modules\\\\/--localIdentName--someId .fixtures\\\\/modules\\\\/--localIdentName--subClass { + color: blue; +} + +.fixtures\\\\/modules\\\\/--localIdentName---a0-34a___f { + color: red; +} + +.fixtures\\\\/modules\\\\/--localIdentName--m_x_\\\\@ { + margin-left: auto !important; + margin-right: auto !important; +} + +.fixtures\\\\/modules\\\\/--localIdentName--B\\\\&W\\\\? { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A \\\\\`\\\\( { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +.fixtures\\\\/modules\\\\/--localIdentName--\\\\31 a2b3c { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#fixtures\\\\/modules\\\\/--localIdentName--\\\\#fake-id { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#fixtures\\\\/modules\\\\/--localIdentName---a-b-c- { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#fixtures\\\\/modules\\\\/--localIdentName--© { + color: black; +} + +.fixtures\\\\/modules\\\\/--localIdentName--♥ { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--© { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--“‘’” { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--☺☃ { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--⌘⌥ { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--𝄞♪♩♫♬ { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--💩 { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\? { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\@ { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\. { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A \\\\) { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A \\\\\`\\\\( { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\31 23 { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\31 a2b3c { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\ { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\# { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\#\\\\# { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\_ { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\{\\\\} { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\#fake\\\\-id { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\.bar { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A hover { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--\\\\[attr\\\\=value\\\\] { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--f\\\\/o\\\\/o { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--f\\\\\\\\o\\\\\\\\o { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--f\\\\*o\\\\*o { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--f\\\\!o\\\\!o { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--f\\\\'o\\\\'o { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--f\\\\~o\\\\~o { background: lime; } +.fixtures\\\\/modules\\\\/--localIdentName--f\\\\+o\\\\+o { background: lime; } + +.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\/bar { + background: hotpink; +} + +.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\\\\\bar { + background: hotpink; +} + +.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\/bar\\\\/baz { + background: hotpink; +} + +.fixtures\\\\/modules\\\\/--localIdentName--foo\\\\\\\\bar\\\\\\\\baz { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should respects path in localIdentName option: warnings 1`] = `Array []`; + +exports[`modules should saves underscore prefix in exported class names with localIdentName option: errors 1`] = `Array []`; + +exports[`modules should saves underscore prefix in exported class names with localIdentName option: locals 1`] = ` +Object { + "#": "#", + "##": "##", + "#.#.#": "#.#.#", + "#fake-id": "#fake-id", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.", + "-a-b-c-": "-a-b-c-", + "-a0-34a___f": "-a0-34a___f", + ".": ".", + "123": "123", + "1a2b3c": "1a2b3c", + ":)": ":)", + ":\`(": ":\`(", + ":hover": ":hover", + ":hover:focus:active": ":hover:focus:active", + "<><<<>><>": "<><<<>><>", + "

": "

", + "?": "?", + "@": "@", + "B&W?": "B&W?", + "[attr=value]": "[attr=value]", + "_": "_", + "_test": "_test", + "className": "className", + "f!o!o": "f!o!o", + "f'o'o": "f'o'o", + "f*o*o": "f*o*o", + "f+o+o": "f+o+o", + "f/o/o": "f/o/o", + "f\\\\o\\\\o": "f\\\\o\\\\o", + "foo.bar": "foo.bar", + "foo/bar": "foo/bar", + "foo/bar/baz": "foo/bar/baz", + "foo\\\\bar": "foo\\\\bar", + "foo\\\\bar\\\\baz": "foo\\\\bar\\\\baz", + "f~o~o": "f~o~o", + "m_x_@": "m_x_@", + "someId": "someId", + "subClass": "subClass", + "test": "test", + "{}": "{}", + "©": "©", + "“‘’”": "“‘’”", + "⌘⌥": "⌘⌥", + "☺☃": "☺☃", + "♥": "♥", + "𝄞♪♩♫♬": "𝄞♪♩♫♬", + "💩": "💩", +} +`; + +exports[`modules should saves underscore prefix in exported class names with localIdentName option: module (evaluated) 1`] = ` +Array [ + Array [ + 1, + ".test { + background: red; +} + +._test { + background: blue; +} + +.className { + background: red; +} + +#someId { + background: green; +} + +.className .subClass { + color: green; +} + +#someId .subClass { + color: blue; +} + +.-a0-34a___f { + color: red; +} + +.m_x_\\\\@ { + margin-left: auto !important; + margin-right: auto !important; +} + +.B\\\\&W\\\\? { + margin-left: auto !important; + margin-right: auto !important; +} + +/* matches elements with class=\\":\`(\\" */ +.\\\\3A \\\\\`\\\\( { + color: aqua; +} + +/* matches elements with class=\\"1a2b3c\\" */ +.\\\\31 a2b3c { + color: aliceblue; +} + +/* matches the element with id=\\"#fake-id\\" */ +#\\\\#fake-id { + color: antiquewhite; +} + +/* matches the element with id=\\"-a-b-c-\\" */ +#-a-b-c- { + color: azure; +} + +/* matches the element with id=\\"©\\" */ +#© { + color: black; +} + +.♥ { background: lime; } +.© { background: lime; } +.“‘’” { background: lime; } +.☺☃ { background: lime; } +.⌘⌥ { background: lime; } +.𝄞♪♩♫♬ { background: lime; } +.💩 { background: lime; } +.\\\\? { background: lime; } +.\\\\@ { background: lime; } +.\\\\. { background: lime; } +.\\\\3A \\\\) { background: lime; } +.\\\\3A \\\\\`\\\\( { background: lime; } +.\\\\31 23 { background: lime; } +.\\\\31 a2b3c { background: lime; } +.\\\\ { background: lime; } +.\\\\<\\\\>\\\\<\\\\<\\\\<\\\\>\\\\>\\\\<\\\\> { background: lime; } +.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\[\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\>\\\\+\\\\+\\\\+\\\\>\\\\+\\\\<\\\\<\\\\<\\\\<\\\\-\\\\]\\\\>\\\\+\\\\+\\\\.\\\\>\\\\+\\\\.\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\.\\\\+\\\\+\\\\+\\\\.\\\\>\\\\+\\\\+\\\\.\\\\<\\\\<\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\+\\\\.\\\\>\\\\.\\\\+\\\\+\\\\+\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\-\\\\.\\\\>\\\\+\\\\.\\\\>\\\\. { background: lime; } +.\\\\# { background: lime; } +.\\\\#\\\\# { background: lime; } +.\\\\#\\\\.\\\\#\\\\.\\\\# { background: lime; } +.\\\\_ { background: lime; } +.\\\\{\\\\} { background: lime; } +.\\\\#fake\\\\-id { background: lime; } +.foo\\\\.bar { background: lime; } +.\\\\3A hover { background: lime; } +.\\\\3A hover\\\\3A focus\\\\3A active { background: lime; } +.\\\\[attr\\\\=value\\\\] { background: lime; } +.f\\\\/o\\\\/o { background: lime; } +.f\\\\\\\\o\\\\\\\\o { background: lime; } +.f\\\\*o\\\\*o { background: lime; } +.f\\\\!o\\\\!o { background: lime; } +.f\\\\'o\\\\'o { background: lime; } +.f\\\\~o\\\\~o { background: lime; } +.f\\\\+o\\\\+o { background: lime; } + +.foo\\\\/bar { + background: hotpink; +} + +.foo\\\\\\\\bar { + background: hotpink; +} + +.foo\\\\/bar\\\\/baz { + background: hotpink; +} + +.foo\\\\\\\\bar\\\\\\\\baz { + background: hotpink; +} +", + "", + ], +] +`; + +exports[`modules should saves underscore prefix in exported class names with localIdentName option: warnings 1`] = `Array []`; diff --git a/test/__snapshots__/validate-options.test.js.snap b/test/__snapshots__/validate-options.test.js.snap new file mode 100644 index 00000000..b44a8970 --- /dev/null +++ b/test/__snapshots__/validate-options.test.js.snap @@ -0,0 +1,185 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`validate options 1`] = ` +"CSS Loader Invalid Options + +options.url should be boolean +options.url should pass \\"instanceof\\" keyword validation +options.url should match some schema in anyOf +" +`; + +exports[`validate options 2`] = ` +"CSS Loader Invalid Options + +options.import should be boolean +options.import should pass \\"instanceof\\" keyword validation +options.import should match some schema in anyOf +" +`; + +exports[`validate options 3`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be equal to one of the allowed values +options.modules should be object +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 4`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be equal to one of the allowed values +options.modules should be object +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 5`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be equal to one of the allowed values +options.modules should be object +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 6`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.mode should be string +options.modules.mode should be equal to one of the allowed values +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 7`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.mode should be equal to one of the allowed values +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 8`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.mode should be equal to one of the allowed values +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 9`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.mode should be equal to one of the allowed values +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 10`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.localIdentName should be string +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 11`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.context should be string +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 12`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.hashPrefix should be string +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 13`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.getLocalIdent should be boolean +options.modules.getLocalIdent should pass \\"instanceof\\" keyword validation +options.modules.getLocalIdent should match some schema in anyOf +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 14`] = ` +"CSS Loader Invalid Options + +options.modules should be boolean +options.modules should be string +options.modules should be equal to one of the allowed values +options.modules.localIdentRegExp should be string +options.modules.localIdentRegExp should pass \\"instanceof\\" keyword validation +options.modules.localIdentRegExp should match some schema in anyOf +options.modules should match some schema in anyOf +" +`; + +exports[`validate options 15`] = ` +"CSS Loader Invalid Options + +options.sourceMap should be boolean +" +`; + +exports[`validate options 16`] = ` +"CSS Loader Invalid Options + +options.camelCase should be boolean +options.camelCase should be equal to one of the allowed values +options.camelCase should match some schema in anyOf +" +`; + +exports[`validate options 17`] = ` +"CSS Loader Invalid Options + +options.importLoaders should be boolean +options.importLoaders should be number +options.importLoaders should match some schema in anyOf +" +`; + +exports[`validate options 18`] = ` +"CSS Loader Invalid Options + +options.exportOnlyLocals should be boolean +" +`; diff --git a/test/getLocalIdent-option.test.js b/test/getLocalIdent-option.test.js deleted file mode 100644 index 9436da16..00000000 --- a/test/getLocalIdent-option.test.js +++ /dev/null @@ -1,130 +0,0 @@ -import path from 'path'; - -const { webpack, evaluated } = require('./helpers'); - -describe('getLocalIdent option', () => { - it('should work (`modules: true`)', async () => { - const config = { - loader: { - options: { - modules: true, - getLocalIdent() { - return 'foo'; - }, - }, - }, - }; - const testId = './modules/getLocalIdent.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should work (`modules: false`)', async () => { - const config = { - loader: { - options: { - modules: 'global', - getLocalIdent() { - return 'foo'; - }, - }, - }, - }; - const testId = './modules/getLocalIdent.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should accepts arguments', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentRegExp: 'regExp', - context: 'context', - hashPrefix: 'hash', - getLocalIdent(loaderContext, localIdentName, localName, options) { - expect(loaderContext).toBeDefined(); - expect(typeof localIdentName).toBe('string'); - expect(typeof localName).toBe('string'); - expect(options).toBeDefined(); - - expect(options.regExp).toBe('regExp'); - expect(options.context).toBe('context'); - expect(options.hashPrefix).toBe('hash'); - - return 'foo'; - }, - }, - }, - }; - const testId = './modules/getLocalIdent.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should respect `context` option', async () => { - const config = { - loader: { - options: { - context: path.resolve(__dirname, 'fixtures/modules'), - modules: true, - }, - }, - }; - const testId = './modules/getLocalIdent.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should allow to use `false` value', async () => { - const config = { - loader: { - options: { - context: path.resolve(__dirname, 'fixtures/modules'), - modules: true, - localIdentName: 'before_[local]__[hash:base64:3]_after', - getLocalIdent: false, - }, - }, - }; - const testId = './modules/getLocalIdent.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); -}); diff --git a/test/localIdentName-option.test.js b/test/localIdentName-option.test.js deleted file mode 100644 index 47959e3c..00000000 --- a/test/localIdentName-option.test.js +++ /dev/null @@ -1,178 +0,0 @@ -import path from 'path'; - -import { webpack, evaluated } from './helpers'; - -describe('localIdentName option', () => { - it('basic', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentName: '[name]--[local]--[hash:base64:5]', - context: path.resolve(__dirname), - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should have only hash', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentName: '[hash:base64:8]', - context: path.resolve(__dirname), - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should have path naming with context', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentName: '[path]--[name]--[local]', - context: path.resolve(__dirname), - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should use hash prefix', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentName: '[local]--[hash]', - hashPrefix: 'x', - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should prefixes leading hyphen + digit with underscore', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentName: '-1[local]', - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should prefixes two leading hyphens with underscore', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentName: '--[local]', - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should saves underscore prefix in exported class names', async () => { - const config = { - loader: { - options: { - modules: true, - localIdentName: '[local]', - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); - - it('should correctly replace escaped symbols in selector', async () => { - const config = { - loader: { - options: { - modules: true, - importLoaders: 2, - localIdentName: '[local]--[hash:base64:4]', - }, - }, - }; - const testId = './modules/localIdentName.css'; - const stats = await webpack(testId, config); - const { modules } = stats.toJson(); - const module = modules.find((m) => m.id === testId); - const evaluatedModule = evaluated(module.source, modules); - - expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); - expect(evaluatedModule.locals).toMatchSnapshot('locals'); - expect(stats.compilation.warnings).toMatchSnapshot('warnings'); - expect(stats.compilation.errors).toMatchSnapshot('errors'); - }); -}); diff --git a/test/modules-option.test.js b/test/modules-option.test.js index 84dae6ec..e1dc4b50 100644 --- a/test/modules-option.test.js +++ b/test/modules-option.test.js @@ -8,17 +8,32 @@ const testCases = fs.readdirSync(testCasesPath); describe('modules', () => { [false, true].forEach((exportOnlyLocalsValue) => { - [true, 'local', 'global', false].forEach((modulesValue) => { + [ + true, + false, + 'local', + 'global', + { mode: 'local' }, + { mode: 'global' }, + ].forEach((modulesValue) => { testCases.forEach((name) => { it(`case \`${name}\`: (export \`${ exportOnlyLocalsValue ? 'only locals' : 'all' - }\`) (\`modules\` value is \`${modulesValue})\``, async () => { + }\`) (\`modules\` value is \`${ + modulesValue.mode + ? `object with mode ${modulesValue.mode}` + : modulesValue + })\``, async () => { const config = { loader: { options: { - modules: modulesValue, + modules: modulesValue.mode + ? { + mode: modulesValue.mode, + localIdentName: '_[local]', + } + : modulesValue, exportOnlyLocals: exportOnlyLocalsValue, - localIdentName: '_[local]', }, }, }; @@ -37,6 +52,271 @@ describe('modules', () => { }); }); + it('should respects localIdentName option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '[name]--[local]--[hash:base64:5]', + context: path.resolve(__dirname), + }, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should respects context option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '[hash:base64:8]', + context: path.resolve(__dirname), + }, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should respects path in localIdentName option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '[path]--[name]--[local]', + context: path.resolve(__dirname), + }, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should respects hashPrefix option with localIdentName option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '[local]--[hash]', + hashPrefix: 'x', + }, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should prefixes leading hyphen + digit with underscore with localIdentName option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '-1[local]', + }, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should prefixes two leading hyphens with underscore with localIdentName option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '--[local]', + }, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should saves underscore prefix in exported class names with localIdentName option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '[local]', + }, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should correctly replace escaped symbols in selector with localIdentName option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentName: '[local]--[hash:base64:4]', + }, + importLoaders: 2, + }, + }, + }; + const testId = './modules/localIdentName.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source, modules); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should respects getLocalIdent option (local mode)', async () => { + const config = { + loader: { + options: { + modules: { + getLocalIdent() { + return 'foo'; + }, + }, + }, + }, + }; + const testId = './modules/getLocalIdent.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should accepts all arguments for getLocalIdent option', async () => { + const config = { + loader: { + options: { + modules: { + localIdentRegExp: 'regExp', + context: 'context', + hashPrefix: 'hash', + getLocalIdent(loaderContext, localIdentName, localName, options) { + expect(loaderContext).toBeDefined(); + expect(typeof localIdentName).toBe('string'); + expect(typeof localName).toBe('string'); + expect(options).toBeDefined(); + + expect(options.regExp).toBe('regExp'); + expect(options.context).toBe('context'); + expect(options.hashPrefix).toBe('hash'); + + return 'foo'; + }, + }, + }, + }, + }; + const testId = './modules/getLocalIdent.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + + it('should respects getLocalIdent option (global mode)', async () => { + const config = { + loader: { + options: { + modules: { + getLocalIdent() { + return 'foo'; + }, + }, + }, + }, + }; + const testId = './modules/getLocalIdent.css'; + const stats = await webpack(testId, config); + const { modules } = stats.toJson(); + const module = modules.find((m) => m.id === testId); + const evaluatedModule = evaluated(module.source); + + expect(evaluatedModule).toMatchSnapshot('module (evaluated)'); + expect(evaluatedModule.locals).toMatchSnapshot('locals'); + expect(stats.compilation.warnings).toMatchSnapshot('warnings'); + expect(stats.compilation.errors).toMatchSnapshot('errors'); + }); + it('composes should supports resolving', async () => { const config = { loader: { options: { import: true, modules: true } }, @@ -60,8 +340,9 @@ describe('modules', () => { test: /source\.css$/, options: { importLoaders: false, - modules: true, - localIdentName: 'b--[local]', + modules: { + localIdentName: 'b--[local]', + }, }, }, additionalLoader: { @@ -69,8 +350,9 @@ describe('modules', () => { loader: path.resolve(__dirname, '../src/index.js'), options: { importLoaders: false, - modules: true, - localIdentName: 'a--[local]', + modules: { + localIdentName: 'a--[local]', + }, }, }, }; @@ -92,11 +374,12 @@ describe('modules', () => { loader: { test: /\.s[ca]ss$/i, options: { - modules: true, + modules: { + localIdentName: '[local]', + getLocalIdent: (context, localIdentName, localName) => + `prefix-${localName}`, + }, importLoaders: 1, - localIdentName: '[local]', - getLocalIdent: (context, localIdentName, localName) => - `prefix-${localName}`, }, }, sassLoader: true, diff --git a/test/errors.test.js b/test/validate-options.test.js similarity index 63% rename from test/errors.test.js rename to test/validate-options.test.js index 10ff73e4..1188b051 100644 --- a/test/errors.test.js +++ b/test/validate-options.test.js @@ -1,6 +1,6 @@ import loader from '../src/cjs'; -it('validation', () => { +it('validate options', () => { const validate = (options) => loader.call( Object.assign( @@ -34,32 +34,60 @@ it('validation', () => { expect(() => validate({ modules: false })).not.toThrow(); expect(() => validate({ modules: 'global' })).not.toThrow(); expect(() => validate({ modules: 'local' })).not.toThrow(); + expect(() => validate({ modules: { mode: 'local' } })).not.toThrow(); + expect(() => validate({ modules: { mode: 'global' } })).not.toThrow(); expect(() => validate({ modules: 'true' })).toThrowErrorMatchingSnapshot(); expect(() => validate({ modules: 'globals' })).toThrowErrorMatchingSnapshot(); expect(() => validate({ modules: 'locals' })).toThrowErrorMatchingSnapshot(); + expect(() => + validate({ modules: { mode: true } }) + ).toThrowErrorMatchingSnapshot(); + expect(() => + validate({ modules: { mode: 'true' } }) + ).toThrowErrorMatchingSnapshot(); + expect(() => + validate({ modules: { mode: 'locals' } }) + ).toThrowErrorMatchingSnapshot(); + expect(() => + validate({ modules: { mode: 'globals' } }) + ).toThrowErrorMatchingSnapshot(); expect(() => - validate({ localIdentName: '[path][name]__[local]--[hash:base64:5]' }) + validate({ + modules: { localIdentName: '[path][name]__[local]--[hash:base64:5]' }, + }) ).not.toThrow(); expect(() => - validate({ localIdentName: true }) + validate({ modules: { localIdentName: true } }) ).toThrowErrorMatchingSnapshot(); - expect(() => validate({ localIdentRegExp: 'page-(.*)\\.js' })).not.toThrow(); - expect(() => validate({ localIdentRegExp: /page-(.*)\.js/ })).not.toThrow(); + expect(() => validate({ modules: { context: 'context' } })).not.toThrow(); expect(() => - validate({ localIdentRegExp: true }) + validate({ modules: { context: true } }) ).toThrowErrorMatchingSnapshot(); - expect(() => validate({ context: 'context' })).not.toThrow(); - expect(() => validate({ context: true })).toThrowErrorMatchingSnapshot(); + expect(() => validate({ modules: { hashPrefix: 'hash' } })).not.toThrow(); + expect(() => + validate({ modules: { hashPrefix: true } }) + ).toThrowErrorMatchingSnapshot(); - expect(() => validate({ hashPrefix: 'hash' })).not.toThrow(); - expect(() => validate({ hashPrefix: true })).toThrowErrorMatchingSnapshot(); + expect(() => + validate({ modules: { getLocalIdent: () => {} } }) + ).not.toThrow(); + expect(() => validate({ modules: { getLocalIdent: false } })).not.toThrow(); + expect(() => + validate({ modules: { getLocalIdent: [] } }) + ).toThrowErrorMatchingSnapshot(); - expect(() => validate({ getLocalIdent: () => {} })).not.toThrow(); - expect(() => validate({ getLocalIdent: false })).not.toThrow(); - expect(() => validate({ getLocalIdent: [] })).toThrowErrorMatchingSnapshot(); + expect(() => + validate({ modules: { localIdentRegExp: 'page-(.*)\\.js' } }) + ).not.toThrow(); + expect(() => + validate({ modules: { localIdentRegExp: /page-(.*)\.js/ } }) + ).not.toThrow(); + expect(() => + validate({ modules: { localIdentRegExp: true } }) + ).toThrowErrorMatchingSnapshot(); expect(() => validate({ sourceMap: true })).not.toThrow(); expect(() => validate({ sourceMap: false })).not.toThrow();