You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
4.8 KiB

4 years ago
  1. # Changelog
  2. For changes in version v7.0.0 and up please go to [release](https://github.com/babel/babel-loader/releases)
  3. # Old Changelog
  4. ## v6.4.1
  5. ### 🐛 Bug Fix
  6. - Fixed reset of BABEL_ENV when options.forceEnv is used (#420) @nikopavlica
  7. ## v6.4.0
  8. ### 🚀 New Feature
  9. - added metadata passing from babel to webpack, which is currently used by react-intl (#398) @Ognian
  10. ## v6.3.2
  11. ### 😢 Regression
  12. - `forceEnv` was interfering with regular environment handling
  13. ## v6.3.1
  14. ### 🐛 Bug Fix
  15. - The new `forceEnv` options wasn't working as expected (#379) @chrisvasz
  16. ## v6.3.0
  17. ### 🚀 New Feature
  18. - Add new config option `forceEnv` (#368) @moimael
  19. Allow to override BABEL_ENV/NODE_ENV at loader-level. Useful for isomorphic applications which have separate babel config for client and server.
  20. ### 🐛 Bug Fix
  21. - Update loader-utils dependency to ^0.2.16 to fix compatibility with webpack 2 (#371) @leonaves
  22. ### 💅 Polish
  23. - Improve FS caching to do less sync calls which improves performance slightly (#375) @akx
  24. ## v6.2.10
  25. Support for webpack 2.2-rc has been added in this release
  26. ### 🐛 Bug Fix
  27. - If cache directory not writable, try to fallback to tmpdir before failing
  28. ## v6.2.9
  29. ### 😢 Regression
  30. Source maps on windows did not work correctly with v6.2.8.
  31. Thanks @josephst
  32. ### 🏠 Internal
  33. - Add AppVeyor to run tests on windows @danez
  34. - Fix tests on windows (#343) @danez
  35. ## v6.2.8
  36. ### 🐛 Bug Fix
  37. - gzipped files should have `.gz` as the extension, not `.gzip` (#326) @bjornstar
  38. - fix options.sourceFileName gennerate bug (#260) @creeperyang
  39. ### 📝 Documentation
  40. - Update README docs for cacheDirectory's actual behaviour (#245) @sohkai
  41. - updates docs re: transform-runtime (#197) @gbrassey
  42. ### 🏠 Internal
  43. - Use eslint and nyc (#321) @danez
  44. - Adjust travis config (#320) @danez
  45. - Use babel to compile babel-loader (#319) @danez
  46. ## v6.2.7
  47. ### 😢 Regression
  48. Fallback to `os.tmpdir()` if no cachedir found (#318) (fixes #317) @danez
  49. Fixes an issue with v6.2.6 when using `babel-loader` as a global package.
  50. ## v6.2.6
  51. ### 🐛 Bug Fix
  52. - Use standard cache dir as default `cacheDirectory` (#301) @fson
  53. Use the common cache directory, `./node_modules/.cache/babel-loader`, as the default cache directory (when the cacheDirectory setting is enabled).
  54. ```js
  55. query: {
  56. cacheDirectory: true
  57. }
  58. ```
  59. ## v6.2.5
  60. - Don't show the call stack for a Babel error (such as when you have a syntax error)
  61. <img width="415" alt="screenshot 2016-08-15 15 24 37" src="https://cloud.githubusercontent.com/assets/30594/17664401/727ba098-62fc-11e6-9f12-42da0cf47f14.png">
  62. - resolve the .babelrc relative to the file path rather than the cwd (current working directory).
  63. * fix: more concise formatting for Babel errors (#287) (Andrey Popp)
  64. * fix(resolve-rc): resolve-rc relative file path (#253) (Luke Page)
  65. * add babel-core and preset-2015 to dev dependencies (#273) (timse)
  66. * chore(docs): add issue and pr templates (#280) (Joshua Wiens)
  67. * chore(docs): fix badge formatting (Joshua Wiens)
  68. * chore(ci): expand travis testing (#278) (Joshua Wiens)
  69. * Update README: add env vars to cacheIdentifier (#267) (Dominik Ferber)
  70. * add npm badge [skip ci] (Henry Zhu)
  71. * update [skip ci] (Henry Zhu)
  72. * remove jsx references as well [skip ci] (Henry Zhu)
  73. * Save the transform to devDependencies (Ray Booysen)
  74. * Remove 'react' preset (Jake Rios)
  75. * Removed babel-preset-react from README.md (Ben Stephenson)
  76. ## v6.2.4
  77. * change allowed peer deps (all webpack 2 beta versions)
  78. ## v6.2.3
  79. * change allowed peer deps (2.0.7-beta)
  80. ## v6.2.2
  81. * Update peerDependencies to accept webpack 2 [#208](https://github.com/babel/babel-loader/pull/208)
  82. * Remove duplicated dependencies
  83. ## v6.2.0
  84. * Pass true filenames [#106](https://github.com/babel/babel-loader/issues/106)
  85. * Remove babel-core from devDependencies
  86. ## v6.1.0
  87. * Merge [PR #146](https://github.com/babel/babel-loader/pull/146) Set source file name relative to options.sourceRoot
  88. * Merge [PR #136](https://github.com/babel/babel-loader/pull/136) use container-based infrastructure for faster build
  89. * Merge [PR #121](https://github.com/babel/babel-loader/pull/121) Make babelrc configurable
  90. * Merge [PR #113](https://github.com/babel/babel-loader/pull/113) Include BABEL_ENV || NODE_ENV in cacheIdentifier
  91. ## v6.0.1
  92. * Update to babel v6.
  93. ## v5.3.1
  94. * Merge [PR #85](https://github.com/babel/babel-loader/pull/85) - Don't override sourcemap if sourcesContent already exists.
  95. ## v5.3.1
  96. * Merge [PR #82](https://github.com/babel/babel-loader/pull/82) - Fallback global options to empty object to avoid conflicts with object-assign polyfill.
  97. ## v5.3.0
  98. * Merge [PR #79](https://github.com/babel/babel-loader/pull/79) - This should allow babel-loader to work with [enhanced-require](https://github.com/webpack/enhanced-require).
  99. ## v5.2.0
  100. * Include `.babelrc` file into the `cacheIdentifier` if it exists