1. 09 May, 2018 1 commit
  2. 08 May, 2018 2 commits
    • William Chargin's avatar
      ensureSlash: Fix accidental string-to-NaN coercion (#4424) · 3aaddefc
      William Chargin authored
      Summary:
      The `hasSlash` method uses `path.substr(path, path.length - 1)` to
      remove the last character from `path`. Clearly, the first parameter is
      suspect; it should be `0`. The code works as written, but only very
      accidentally: the first parameter is coerced by `ToNumber` to `NaN`,
      which is then coerced by `ToInteger` to `+0`, per [the spec][1].
      
      [1]: https://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.substr
      
      Test Plan:
      Reading the spec should be sufficient. To verify in the Real World:
      ```js
      const path = "has-slash-but-does-not-need-slash/"
      const a = path.substr(path, path.length - 1);
      const b = path.substr(0, path.length - 1);
      console.log(a === b);  // true
      console.log(a);        // has-slash-but-does-not-need-slash
      ```
      
      wchargin-branch: ensureslash-accidental-coercion
      3aaddefc
    • arianon's avatar
      Update getCSSModuleLocalIdent to support Sass (#4391) · e5e9f59a
      arianon authored
      * Update getCSSModuleLocalIdent to support Sass
      
      * Fix Sass/SCSS index module tests
      
      Also make them more consistent with the non-index variants.
      e5e9f59a
  3. 30 Apr, 2018 1 commit
  4. 28 Apr, 2018 1 commit
  5. 27 Apr, 2018 4 commits
  6. 21 Apr, 2018 1 commit
  7. 18 Apr, 2018 1 commit
    • Fabiano Brito's avatar
      Add Sass loader (#4195) · bf3d73c2
      Fabiano Brito authored
      * Installs and adds sass loader task in webpack for dev environment.
      
      * Uses Timer's branch of sass-loader without node-sass dependency.
      
      * Adds method for handling SASS modules.
      
      * Fixes extension of excluded files when looking for scss modules.
      
      * Adds support for both .scss and .sass extensions.
      
      * Uses ExtractTextPlugin with sass-loader to bundle styles for the production build.
      
      * Bundles SASS modules for the production build.
      
      * Uses the latest version of sass-loader.
      
      * Adds function to create different rules for style loaders in dev environment.
      
      * Abstracts style loaders to a common function to avoid repetition.
      
      * Simplifies the common function that creates style loaders.
      
      * Creates assets for testing SASS/SCSS support.
      
      * Creates mock components and unit tests for SASS and SCSS with and without modules.
      
      * Creates integration tests for SASS/SCSS support.
      
      * Adds node-sass as a template dependency so sass-loader can be tested.
      
      * Includes sass tests when test component is mounted.
      
      * Fixes asserted module name for sass and scss modules tests.
      
      * Removes tests against css imports in SCSS and SASS files.
      
      * Updates sass-loader to v7.
      
      * Uses getCSSModuleLocalIdent from react-dev-utils.
      
      * Fixes tests to match the use of getCSSModuleLocalIdent.
      
      * Improves readability of getStyleLoader function.
      
      * Uses postcss after sass.
      
      * Refactors dev config to simplify common function for style loaders.
      
      * Refactors prod config to simplify common function for style loaders.
      
      * Use importLoaders config according to css-loader docs.
      bf3d73c2
  8. 15 Apr, 2018 3 commits
  9. 13 Apr, 2018 2 commits
  10. 06 Apr, 2018 1 commit
  11. 05 Apr, 2018 1 commit
  12. 04 Apr, 2018 1 commit
  13. 03 Apr, 2018 2 commits
  14. 02 Apr, 2018 4 commits
  15. 27 Mar, 2018 1 commit
  16. 26 Mar, 2018 3 commits
  17. 25 Mar, 2018 1 commit
  18. 23 Mar, 2018 2 commits
  19. 21 Mar, 2018 2 commits
  20. 20 Mar, 2018 1 commit
  21. 18 Mar, 2018 1 commit
    • Brian Ng's avatar
      Bump babel-related deps (#4159) · cb3f8355
      Brian Ng authored
      * Add explicit dep on plugin-proposal-object-rest-spread to babel-preset-react-app
      
      * Bump babel-related deps to beta.42
      
      * Pass useBuiltIns directly to react-preset
      cb3f8355
  22. 15 Mar, 2018 1 commit
  23. 05 Mar, 2018 3 commits