Compare commits

...

6 Commits

@ -79,11 +79,12 @@ Plugin options (all optional):
## Changelog ## Changelog
### v2.0.0 (August 23, 2020) ### v2.0.0 (April 25, 2022)
- __Breaking:__ The CSS transform is now global by default, to better handle cases where CSS in a third-party module needs to be included in the bundle. This *should* not cause any issues, but it's possible that this might break some existing bundling setups unexpectedly, so it's technically a breaking change. Please file an issue if this change causes problems for you! - __Breaking:__ The CSS transform is now global by default, to better handle cases where CSS in a third-party module needs to be included in the bundle. This *should* not cause any issues, but it's possible that this might break some existing bundling setups unexpectedly, so it's technically a breaking change. Please file an issue if this change causes problems for you!
- __Feature:__ Added more sensible handling of cyclical dependencies. It will now throw a clear error instead of silently dropping modules on the floor, and gives you the `ignoreCycles` option to continue bundling anyway. - __Feature:__ Added more sensible handling of cyclical dependencies. It will now throw a clear error instead of silently dropping modules on the floor, and gives you the `ignoreCycles` option to continue bundling anyway.
- __Feature:__ Automatically re-export imported classes. This makes it possible to transparently move a certain class definition to another file, without breaking existing imports. This can be disabled by changing the `autoExportImports` option. - __Feature:__ Automatically re-export imported classes. This makes it possible to transparently move a certain class definition to another file, without breaking existing imports. This can be disabled by changing the `autoExportImports` option.
- __Feature:__ icssify now uses PostCSS 8+, and therefore supports plugins in the new format.
### v1.2.1 (March 6, 2020) ### v1.2.1 (March 6, 2020)

@ -27,7 +27,7 @@
"@validatem/core": "^0.3.15", "@validatem/core": "^0.3.15",
"@validatem/error": "^1.1.0", "@validatem/error": "^1.1.0",
"@validatem/is-boolean": "^0.1.1", "@validatem/is-boolean": "^0.1.1",
"@validatem/is-postcss-plugin": "^0.2.0", "@validatem/is-postcss-plugin": "^0.1.1",
"@validatem/is-string": "^1.0.0", "@validatem/is-string": "^1.0.0",
"@validatem/one-of": "^0.1.1", "@validatem/one-of": "^0.1.1",
"@validatem/required": "^0.1.1", "@validatem/required": "^0.1.1",
@ -40,6 +40,7 @@
"insert-css": "^2.0.0", "insert-css": "^2.0.0",
"map-obj": "^4.1.0", "map-obj": "^4.1.0",
"object.fromentries": "^2.0.1", "object.fromentries": "^2.0.1",
"postcss": "^8.4.12",
"postcss-modules-extract-imports": "^3.0.0", "postcss-modules-extract-imports": "^3.0.0",
"postcss-modules-local-by-default": "^4.0.0", "postcss-modules-local-by-default": "^4.0.0",
"postcss-modules-scope": "^3.0.0", "postcss-modules-scope": "^3.0.0",
@ -48,10 +49,6 @@
}, },
"devDependencies": { "devDependencies": {
"@joepie91/eslint-config": "^1.1.0", "@joepie91/eslint-config": "^1.1.0",
"eslint": "^6.8.0", "eslint": "^6.8.0"
"postcss": "^8.0.0"
},
"peeerDependencies": {
"postcss": "^8.0.0"
} }
} }

@ -16,7 +16,7 @@ const loaderUtils = require("loader-utils");
const pluginName = 'postcss-icss-find-imports'; const pluginName = 'postcss-icss-find-imports';
module.exports = (_options = {}) => { module.exports = function (_options = {}) {
return { return {
postcssPlugin: pluginName, postcssPlugin: pluginName,
Once(css, { result }) { Once(css, { result }) {

Loading…
Cancel
Save