diff --git a/documentation/ag-grid-docs/src/content/docs/column-definitions/index.mdoc b/documentation/ag-grid-docs/src/content/docs/column-definitions/index.mdoc index 0cac4483176..dbcabd2297b 100644 --- a/documentation/ag-grid-docs/src/content/docs/column-definitions/index.mdoc +++ b/documentation/ag-grid-docs/src/content/docs/column-definitions/index.mdoc @@ -98,6 +98,10 @@ const gridOptions = { } ``` +{% note %} +The provided column types use cell classes to apply styling. The `CellStyleModule` is required for these types to work correctly. +{% /note %} + ## Updating Columns Columns can be controlled by updating the column state, or updating the column definition. diff --git a/esbuild.config.cjs b/esbuild.config.cjs index 4d57cc268c4..6cf4ee5dfc5 100644 --- a/esbuild.config.cjs +++ b/esbuild.config.cjs @@ -3,11 +3,7 @@ const { umdWrapper } = require('esbuild-plugin-umd-wrapper'); const fs = require('fs/promises'); const path = require('path'); const postcss = require('postcss'); -const cssAutoPrefix = require('autoprefixer'); -const cssNano = require('cssnano'); -const cssImport = require('postcss-import'); -const cssRtl = require('postcss-rtlcss'); -const cssUrl = require('postcss-url'); +const postcssPlugins = require('./postcss-plugins.cjs'); /** @type {import('esbuild').Plugin} */ const cssPlugin = { @@ -15,26 +11,10 @@ const cssPlugin = { setup(build) { build.onLoad({ filter: /\.css$/ }, async (args) => { const css = await require('fs').promises.readFile(args.path, 'utf8'); - const result = await postcss([ - cssImport(), - cssUrl({ url: 'inline' }), - cssAutoPrefix(), - cssRtl({ - ltrPrefix: `:where(.ag-ltr)`, - rtlPrefix: `:where(.ag-rtl)`, - bothPrefix: `:where(.ag-ltr, .ag-rtl)`, - }), - cssNano({ - preset: [ - 'default', - { - discardComments: true, - normalizeWhitespace: true, - minifySelectors: true, - }, - ], - }), - ]).process(css, { from: args.path, to: args.path }); + const result = await postcss(postcssPlugins).process(css, { + from: args.path, + to: args.path, + }); // UMD builds: non-source CSS (legacy themes) gets injected as