carbon-preprocess-svelte 0.11.20 → 0.11.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -130,10 +130,10 @@ export default {
130
130
  This code is abridged; see [examples/webpack](examples/webpack) for a full set-up.
131
131
 
132
132
  ```js
133
- // webpack.config.js
134
- const { optimizeImports } = require("carbon-preprocess-svelte");
133
+ // webpack.config.mjs
134
+ import { optimizeImports } from "carbon-preprocess-svelte";
135
135
 
136
- module.exports = {
136
+ export default {
137
137
  module: {
138
138
  rules: [
139
139
  {
@@ -261,12 +261,12 @@ For Webpack users, `OptimizeCssPlugin` is a drop-in replacement for `optimizeCss
261
261
  This code is abridged; see [examples/webpack](examples/webpack) for a full set-up.
262
262
 
263
263
  ```js
264
- // webpack.config.js
265
- const { OptimizeCssPlugin } = require("carbon-preprocess-svelte");
264
+ // webpack.config.mjs
265
+ import { OptimizeCssPlugin } from "carbon-preprocess-svelte";
266
266
 
267
267
  const PROD = process.env.NODE_ENV === "production";
268
268
 
269
- module.exports = {
269
+ export default {
270
270
  plugins: [
271
271
  // Only apply the plugin when building for production.
272
272
  PROD && new OptimizeCssPlugin(),