diff --git a/CHANGELOG.md b/CHANGELOG.md index be1a7ca..6682262 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [5.0.0](https://github.com/webpack-contrib/stylus-loader/compare/v4.3.3...v5.0.0) (2021-02-02) + + +### Notes + +* using `~` is deprecated and can be removed from your code (**we recommend it**), but we still support it for historical reasons. + +Why you can removed it? +The loader will first try to resolve `@import`/`@require` as relative, if it cannot be resolved, the loader will try to resolve `@import`/`@require` inside [`node_modules`](https://webpack.js.org/configuration/resolve/#resolve-modules). + +### ⚠ BREAKING CHANGES + +* minimum supported `webpack` version is `5` + +### Features + +* supported the [`resolve.byDependency`](https://webpack.js.org/configuration/resolve/#resolvebydependency) option, you can setup `{ resolve: { byDependency: { stylus: { mainFiles: ['custom', '...'] } } } }` + ### [4.3.3](https://github.com/webpack-contrib/stylus-loader/compare/v4.3.2...v4.3.3) (2021-01-15) diff --git a/README.md b/README.md index 6f29f13..2b11cb9 100644 --- a/README.md +++ b/README.md @@ -556,7 +556,7 @@ Thus you can import your Stylus modules from `node_modules`. ``` Using `~` is deprecated and can be removed from your code (**we recommend it**), but we still support it for historical reasons. -Why you can removed it? The loader will first try to resolve `@import` as relative, if it cannot be resolved, the loader will try to resolve `@import` inside [`node_modules`](https://webpack.js.org/configuration/resolve/#resolve-modules). +Why you can removed it? The loader will first try to resolve `@import`/`@require` as relative, if it cannot be resolved, the loader will try to resolve `@import`/`@require` inside [`node_modules`](https://webpack.js.org/configuration/resolve/#resolve-modules). Just prepend them with a `~` which tells webpack to look up the [`modules`](https://webpack.js.org/configuration/resolve/#resolve-modules). ```styl diff --git a/package-lock.json b/package-lock.json index 5f0be0d..73c8e0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "stylus-loader", - "version": "4.3.3", + "version": "5.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7e70b20..888ea21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stylus-loader", - "version": "4.3.3", + "version": "5.0.0", "description": "Stylus loader for webpack", "license": "MIT", "repository": "webpack-contrib/stylus-loader",