├── .README ├── babel-plugin-react-css-modules.png └── babel-plugin-react-css-modules.sketch ├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .flowconfig ├── .github └── FUNDING.yml ├── .gitignore ├── .npmignore ├── .travis.yml ├── ISSUE_TEMPLATE.md ├── LICENSE ├── README.md ├── benchmark ├── package.json └── test.js ├── demo ├── .babelrc ├── README.md ├── index.html ├── package.json ├── src │ ├── components │ │ ├── AnonymousStyleResolution.js │ │ ├── NamedStyleResolution.js │ │ ├── RuntimeStyleResolution.js │ │ └── table.css │ └── index.js └── webpack.config.js ├── package.json ├── src ├── attributeNameExists.js ├── conditionalClassMerge.js ├── createObjectExpression.js ├── createSpreadMapper.js ├── findMatchedFiletype.js ├── getClassName.js ├── handleSpreadClassName.js ├── index.js ├── replaceJsxExpressionContainer.js ├── requireCssModule.js ├── resolveStringLiteral.js ├── schemas │ ├── optionsDefaults.js │ └── optionsSchema.json └── types.js └── test ├── fixtures └── react-css-modules │ ├── adds module hot accept for CSS imports when file only contains import statements │ ├── bar.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── adds module hot accept for CSS imports │ ├── bar.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── applies extra plugins │ ├── bar.scss │ ├── input.js │ ├── options.json │ └── output.js │ ├── custom attribute mapping │ ├── foo.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── disable default styleName transform │ ├── input.js │ ├── options.json │ └── output.js │ ├── does not apply plugin if no styleName │ ├── bar.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── does not throw error for stylename not found when handleMissingStyleName is warn │ ├── foo.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── does not throw error if attribute has no name property │ ├── bar.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── does not throw error on excluded JSXElement │ ├── input.js │ ├── options.json │ └── output.js │ ├── exclude styles from react-css-modules │ ├── bar.css │ ├── input.js │ ├── not_me.css │ ├── options.json │ └── output.js │ ├── handle spread attributes │ ├── foo.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── merges the resolved styleName with the existing className values │ ├── bar.css │ ├── input.js │ └── output.js │ ├── options.js │ ├── provides handleMissingStyleName to getClassName at runtime │ ├── foo.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── resolves absolute path stylesheets │ ├── bar.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── resolves less stylesheets matching RegExp │ ├── bar.less │ ├── bar.md.less │ ├── input.js │ ├── options.json │ └── output.js │ ├── resolves less stylesheets │ ├── bar.less │ ├── input.js │ ├── options.json │ └── output.js │ ├── resolves namespaced styleName matching RegExp │ ├── bar.md.css │ ├── foo.css │ ├── input.js │ ├── options.json │ ├── output.js │ └── styles │ │ └── base.css │ ├── resolves namespaced styleName │ ├── bar.css │ ├── input.js │ └── output.js │ ├── resolves non-namespaced styleName (anonymous import) │ ├── bar.css │ ├── input.js │ └── output.js │ ├── resolves non-namespaced styleName (named import) │ ├── bar.css │ ├── input.js │ └── output.js │ ├── throws if autoResolveMultipleImport with duplicates │ ├── bar.css │ ├── foo.css │ ├── input.js │ └── options.json │ ├── throws if autoResolveMultipleImport with no match │ ├── bar.css │ ├── foo.css │ ├── input.js │ └── options.json │ ├── throws if styleName is used without import │ ├── input.js │ └── options.json │ ├── throws if unset autoResolveMultipleImport with multiple anonymous imports │ ├── bar.css │ ├── foo.css │ ├── input.js │ └── options.json │ ├── uses autoResolveMultipleImport no duplicates │ ├── bar.css │ ├── foo.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── uses autoResolveMultipleImport on runtime │ ├── bar.css │ ├── foo.css │ ├── input.js │ ├── options.json │ └── output.js │ ├── uses getClassName to resolve non-literal styleName (with already existing className) │ ├── bar.css │ ├── foo.css │ ├── input.js │ └── output.js │ └── uses getClassName to resolve non-literal styleName │ ├── bar.css │ ├── foo.css │ ├── input.js │ └── output.js └── index.js /.README/babel-plugin-react-css-modules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.README/babel-plugin-react-css-modules.png -------------------------------------------------------------------------------- /.README/babel-plugin-react-css-modules.sketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.README/babel-plugin-react-css-modules.sketch -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /test/fixtures 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.eslintrc -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.flowconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | coverage 4 | .* 5 | *.log 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/.travis.yml -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/benchmark/package.json -------------------------------------------------------------------------------- /benchmark/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/benchmark/test.js -------------------------------------------------------------------------------- /demo/.babelrc: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /demo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/README.md -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/index.html -------------------------------------------------------------------------------- /demo/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/package.json -------------------------------------------------------------------------------- /demo/src/components/AnonymousStyleResolution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/src/components/AnonymousStyleResolution.js -------------------------------------------------------------------------------- /demo/src/components/NamedStyleResolution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/src/components/NamedStyleResolution.js -------------------------------------------------------------------------------- /demo/src/components/RuntimeStyleResolution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/src/components/RuntimeStyleResolution.js -------------------------------------------------------------------------------- /demo/src/components/table.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/src/components/table.css -------------------------------------------------------------------------------- /demo/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/src/index.js -------------------------------------------------------------------------------- /demo/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/demo/webpack.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/package.json -------------------------------------------------------------------------------- /src/attributeNameExists.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/attributeNameExists.js -------------------------------------------------------------------------------- /src/conditionalClassMerge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/conditionalClassMerge.js -------------------------------------------------------------------------------- /src/createObjectExpression.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/createObjectExpression.js -------------------------------------------------------------------------------- /src/createSpreadMapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/createSpreadMapper.js -------------------------------------------------------------------------------- /src/findMatchedFiletype.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/findMatchedFiletype.js -------------------------------------------------------------------------------- /src/getClassName.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/getClassName.js -------------------------------------------------------------------------------- /src/handleSpreadClassName.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/handleSpreadClassName.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/index.js -------------------------------------------------------------------------------- /src/replaceJsxExpressionContainer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/replaceJsxExpressionContainer.js -------------------------------------------------------------------------------- /src/requireCssModule.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/requireCssModule.js -------------------------------------------------------------------------------- /src/resolveStringLiteral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/resolveStringLiteral.js -------------------------------------------------------------------------------- /src/schemas/optionsDefaults.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/schemas/optionsDefaults.js -------------------------------------------------------------------------------- /src/schemas/optionsSchema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/schemas/optionsSchema.json -------------------------------------------------------------------------------- /src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/src/types.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports when file only contains import statements/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports when file only contains import statements/input.js: -------------------------------------------------------------------------------- 1 | import './bar.css'; 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports when file only contains import statements/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/adds module hot accept for CSS imports when file only contains import statements/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports when file only contains import statements/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/adds module hot accept for CSS imports when file only contains import statements/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports/input.js: -------------------------------------------------------------------------------- 1 | import './bar.css'; 2 | 3 |
; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/adds module hot accept for CSS imports/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/adds module hot accept for CSS imports/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/adds module hot accept for CSS imports/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/applies extra plugins/bar.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/applies extra plugins/bar.scss -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/applies extra plugins/input.js: -------------------------------------------------------------------------------- 1 | import './bar.scss'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/applies extra plugins/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/applies extra plugins/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/applies extra plugins/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/applies extra plugins/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/custom attribute mapping/foo.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/custom attribute mapping/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/custom attribute mapping/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/custom attribute mapping/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/custom attribute mapping/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/custom attribute mapping/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/custom attribute mapping/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/disable default styleName transform/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/disable default styleName transform/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/disable default styleName transform/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/disable default styleName transform/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/disable default styleName transform/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/disable default styleName transform/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not apply plugin if no styleName/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not apply plugin if no styleName/input.js: -------------------------------------------------------------------------------- 1 | import 'bar.css'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not apply plugin if no styleName/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/does not apply plugin if no styleName/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not apply plugin if no styleName/output.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | require("bar.css"); 4 | 5 | ; 6 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error for stylename not found when handleMissingStyleName is warn/foo.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error for stylename not found when handleMissingStyleName is warn/input.js: -------------------------------------------------------------------------------- 1 | import "./foo.css"; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error for stylename not found when handleMissingStyleName is warn/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/does not throw error for stylename not found when handleMissingStyleName is warn/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error for stylename not found when handleMissingStyleName is warn/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/does not throw error for stylename not found when handleMissingStyleName is warn/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error if attribute has no name property/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error if attribute has no name property/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/does not throw error if attribute has no name property/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error if attribute has no name property/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/does not throw error if attribute has no name property/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error if attribute has no name property/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/does not throw error if attribute has no name property/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error on excluded JSXElement/input.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error on excluded JSXElement/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/does not throw error on excluded JSXElement/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/does not throw error on excluded JSXElement/output.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/exclude styles from react-css-modules/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/exclude styles from react-css-modules/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/exclude styles from react-css-modules/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/exclude styles from react-css-modules/not_me.css: -------------------------------------------------------------------------------- 1 | .other {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/exclude styles from react-css-modules/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/exclude styles from react-css-modules/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/exclude styles from react-css-modules/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/exclude styles from react-css-modules/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/handle spread attributes/foo.css: -------------------------------------------------------------------------------- 1 | .a {} -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/handle spread attributes/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/handle spread attributes/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/handle spread attributes/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/handle spread attributes/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/handle spread attributes/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/handle spread attributes/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/merges the resolved styleName with the existing className values/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/merges the resolved styleName with the existing className values/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/merges the resolved styleName with the existing className values/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/merges the resolved styleName with the existing className values/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/merges the resolved styleName with the existing className values/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/options.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/provides handleMissingStyleName to getClassName at runtime/foo.css: -------------------------------------------------------------------------------- 1 | .a-b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/provides handleMissingStyleName to getClassName at runtime/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/provides handleMissingStyleName to getClassName at runtime/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/provides handleMissingStyleName to getClassName at runtime/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/provides handleMissingStyleName to getClassName at runtime/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/provides handleMissingStyleName to getClassName at runtime/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/provides handleMissingStyleName to getClassName at runtime/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves absolute path stylesheets/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves absolute path stylesheets/input.js: -------------------------------------------------------------------------------- 1 | import 'abs/bar.css'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves absolute path stylesheets/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves absolute path stylesheets/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves absolute path stylesheets/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves absolute path stylesheets/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/bar.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/bar.less -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/bar.md.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/bar.md.less -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/input.js: -------------------------------------------------------------------------------- 1 | import './bar.md.less'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves less stylesheets matching RegExp/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets/bar.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves less stylesheets/bar.less -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets/input.js: -------------------------------------------------------------------------------- 1 | import './bar.less'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves less stylesheets/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves less stylesheets/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves less stylesheets/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/bar.md.css: -------------------------------------------------------------------------------- 1 | .a {background-color: #f00;} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/foo.css: -------------------------------------------------------------------------------- 1 | .a {background-color: #f00;} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName matching RegExp/styles/base.css: -------------------------------------------------------------------------------- 1 | .b {background-color: #0f0;} -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName/input.js: -------------------------------------------------------------------------------- 1 | import foo from './bar.css'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves namespaced styleName/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves namespaced styleName/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves non-namespaced styleName (anonymous import)/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves non-namespaced styleName (anonymous import)/input.js: -------------------------------------------------------------------------------- 1 | import './bar.css'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves non-namespaced styleName (anonymous import)/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves non-namespaced styleName (anonymous import)/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves non-namespaced styleName (named import)/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves non-namespaced styleName (named import)/input.js: -------------------------------------------------------------------------------- 1 | import foo from './bar.css'; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/resolves non-namespaced styleName (named import)/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/resolves non-namespaced styleName (named import)/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with duplicates/bar.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if autoResolveMultipleImport with duplicates/bar.css -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with duplicates/foo.css: -------------------------------------------------------------------------------- 1 | .b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with duplicates/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if autoResolveMultipleImport with duplicates/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with duplicates/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if autoResolveMultipleImport with duplicates/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with no match/bar.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if autoResolveMultipleImport with no match/bar.css -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with no match/foo.css: -------------------------------------------------------------------------------- 1 | .b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with no match/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if autoResolveMultipleImport with no match/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if autoResolveMultipleImport with no match/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if autoResolveMultipleImport with no match/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if styleName is used without import/input.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if styleName is used without import/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if styleName is used without import/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if unset autoResolveMultipleImport with multiple anonymous imports/bar.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if unset autoResolveMultipleImport with multiple anonymous imports/bar.css -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if unset autoResolveMultipleImport with multiple anonymous imports/foo.css: -------------------------------------------------------------------------------- 1 | .b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if unset autoResolveMultipleImport with multiple anonymous imports/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if unset autoResolveMultipleImport with multiple anonymous imports/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/throws if unset autoResolveMultipleImport with multiple anonymous imports/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/throws if unset autoResolveMultipleImport with multiple anonymous imports/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/foo.css: -------------------------------------------------------------------------------- 1 | .b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses autoResolveMultipleImport no duplicates/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/bar.css: -------------------------------------------------------------------------------- 1 | .a {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/foo.css: -------------------------------------------------------------------------------- 1 | .b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/options.json -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses autoResolveMultipleImport on runtime/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName (with already existing className)/bar.css: -------------------------------------------------------------------------------- 1 | .a-b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName (with already existing className)/foo.css: -------------------------------------------------------------------------------- 1 | .a-b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName (with already existing className)/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName (with already existing className)/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName (with already existing className)/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName (with already existing className)/output.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName/bar.css: -------------------------------------------------------------------------------- 1 | .a-b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName/foo.css: -------------------------------------------------------------------------------- 1 | .a-b {} 2 | -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName/input.js -------------------------------------------------------------------------------- /test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/fixtures/react-css-modules/uses getClassName to resolve non-literal styleName/output.js -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/babel-plugin-react-css-modules/HEAD/test/index.js --------------------------------------------------------------------------------