@nx/rollup 23.1.0-beta.1 → 23.1.0-canary.20260622-a793455

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.
@@ -87,7 +87,7 @@ export interface PostCSSPluginOptions {
87
87
  sourceMap?: boolean | 'inline';
88
88
  /**
89
89
  * File extensions to process
90
- * @default ['.css', '.sss', '.pcss']
90
+ * @default ['.css', '.sss', '.pcss', '.scss', '.sass', '.less', '.styl', '.stylus']
91
91
  */
92
92
  extensions?: string[];
93
93
  }
@@ -104,6 +104,11 @@ export interface NormalizedPostCSSOptions extends PostCSSPluginOptions {
104
104
  extensions: string[];
105
105
  sourceMap: boolean | 'inline';
106
106
  }
107
+ /**
108
+ * Default file extensions processed by the postcss plugin.
109
+ * Includes plain CSS formats and all supported preprocessor extensions.
110
+ */
111
+ export declare const defaultExtensions: string[];
107
112
  /**
108
113
  * Normalize plugin options with defaults
109
114
  */
@@ -1,6 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultExtensions = void 0;
3
4
  exports.normalizeOptions = normalizeOptions;
5
+ /**
6
+ * Default file extensions processed by the postcss plugin.
7
+ * Includes plain CSS formats and all supported preprocessor extensions.
8
+ */
9
+ exports.defaultExtensions = [
10
+ '.css',
11
+ '.sss',
12
+ '.pcss',
13
+ '.scss',
14
+ '.sass',
15
+ '.less',
16
+ '.styl',
17
+ '.stylus',
18
+ ];
4
19
  /**
5
20
  * Normalize plugin options with defaults
6
21
  */
@@ -13,7 +28,7 @@ function normalizeOptions(options = {}) {
13
28
  modules: options.modules ?? false,
14
29
  plugins: options.plugins ?? [],
15
30
  use: options.use ?? {},
16
- extensions: options.extensions ?? ['.css', '.sss', '.pcss'],
31
+ extensions: options.extensions ?? exports.defaultExtensions,
17
32
  sourceMap: options.sourceMap ?? false,
18
33
  };
19
34
  }
@@ -83,18 +83,8 @@ function getRecursiveImportOrder(id, moduleGraph, visited = new Set()) {
83
83
  */
84
84
  function postcss(pluginOptions = {}) {
85
85
  const options = (0, options_1.normalizeOptions)(pluginOptions);
86
- // Create file filter
87
- const defaultExtensions = [
88
- '.css',
89
- '.sss',
90
- '.pcss', // CSS formats
91
- '.scss',
92
- '.sass', // Sass
93
- '.less', // Less
94
- '.styl',
95
- '.stylus', // Stylus
96
- ];
97
- const extensions = options.extensions ?? defaultExtensions;
86
+ // Create file filter — extensions always set by normalizeOptions
87
+ const extensions = options.extensions;
98
88
  const filter = createFilter(options.include ?? extensions.map((ext) => `**/*${ext}`), options.exclude ?? /node_modules/);
99
89
  // Initialize the loaders
100
90
  const loaders = new loaders_1.Loaders({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/rollup",
3
- "version": "23.1.0-beta.1",
3
+ "version": "23.1.0-canary.20260622-a793455",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -91,8 +91,8 @@
91
91
  "postcss": "^8.4.38",
92
92
  "postcss-modules": "^6.0.1",
93
93
  "tslib": "^2.3.0",
94
- "@nx/js": "23.1.0-beta.1",
95
- "@nx/devkit": "23.1.0-beta.1"
94
+ "@nx/devkit": "23.1.0-canary.20260622-a793455",
95
+ "@nx/js": "23.1.0-canary.20260622-a793455"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "rollup": "^3.0.0 || ^4.0.0"
@@ -104,7 +104,7 @@
104
104
  },
105
105
  "devDependencies": {
106
106
  "source-map-js": "^1.2.0",
107
- "nx": "23.1.0-beta.1"
107
+ "nx": "23.1.0-canary.20260622-a793455"
108
108
  },
109
109
  "publishConfig": {
110
110
  "access": "public"