From 4230770df425e023a1c56fe22e9b5b1eea7e3283 Mon Sep 17 00:00:00 2001 From: Nicolas Brousse Date: Thu, 25 Nov 2021 16:35:09 +0100 Subject: [PATCH] Fix examples in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7149b01..6f0ebcd 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ const postCssPlugin = require("esbuild-plugin-postcss2"); esbuild.build({ ... plugins: [ - postCssPlugin() + postCssPlugin.default() ] ... }); @@ -41,7 +41,7 @@ const autoprefixer = require("autoprefixer"); esbuild.build({ ... plugins: [ - postCssPlugin({ + postCssPlugin.default({ plugins: [autoprefixer] }) ] @@ -54,7 +54,7 @@ esbuild.build({ PostCSS modules are enabled by default. You can pass in a config or disable it with the `modules` field: ```js -postCssPlugin({ +postCssPlugin.default({ // pass in `postcss-modules` custom options // set to false to disable modules: {