diff --git a/test/fixtures/config-autoload/ts/array/postcss.config.cts b/test/fixtures/config-autoload/ts/array/postcss.config.cts index 344e85b7..b5759f74 100644 --- a/test/fixtures/config-autoload/ts/array/postcss.config.cts +++ b/test/fixtures/config-autoload/ts/array/postcss.config.cts @@ -1,10 +1,10 @@ -import type { Config } from 'postcss-load-config'; +import type { Config as PostCSSConfig } from 'postcss-load-config'; +import { Configuration as WebpackConfig } from 'webpack'; -module.exports = function (api: Config) { +module.exports = function (api: WebpackConfig): PostCSSConfig { return { parser: 'sugarss', syntax: 'sugarss', - // FIXME: To confirm. Apparently there's no longer an available option `mode`? map: api.mode === 'development' ? 'inline' : false, from: './test/fixtures/config-autoload/js/object/index.css', to: './test/fixtures/config-autoload/js/object/expect/index.css', diff --git a/test/fixtures/config-autoload/ts/object/postcss.config.ts b/test/fixtures/config-autoload/ts/object/postcss.config.ts index 21347482..af724a9e 100644 --- a/test/fixtures/config-autoload/ts/object/postcss.config.ts +++ b/test/fixtures/config-autoload/ts/object/postcss.config.ts @@ -1,10 +1,10 @@ -import type { Config } from 'postcss-load-config'; +import type { Config as PostCSSConfig } from 'postcss-load-config'; +import { Configuration as WebpackConfig } from 'webpack'; -const config = function (api: Config) { +const config = function (api: WebpackConfig): PostCSSConfig { return { parser: 'sugarss', syntax: 'sugarss', - // FIXME: To confirm. Apparently there's no longer an available option `mode`? map: api.mode === 'development' ? 'inline' : false, from: './test/fixtures/config-autoload/js/object/index.css', to: './test/fixtures/config-autoload/js/object/expect/index.css',