tailwindcss 0.0.0-insiders.f2d73b8 → 0.0.0-insiders.f3a629a

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +133 -5
  2. package/LICENSE +1 -2
  3. package/colors.d.ts +3 -0
  4. package/defaultConfig.d.ts +3 -0
  5. package/defaultTheme.d.ts +3 -0
  6. package/lib/cli.js +43 -25
  7. package/lib/corePluginList.js +1 -0
  8. package/lib/corePlugins.js +157 -149
  9. package/lib/css/preflight.css +1 -1
  10. package/lib/featureFlags.js +3 -4
  11. package/lib/index.js +12 -1
  12. package/lib/lib/cacheInvalidation.js +69 -0
  13. package/lib/lib/collapseAdjacentRules.js +14 -1
  14. package/lib/lib/defaultExtractor.js +6 -4
  15. package/lib/lib/expandApplyAtRules.js +173 -17
  16. package/lib/lib/expandTailwindAtRules.js +43 -17
  17. package/lib/lib/generateRules.js +165 -69
  18. package/lib/lib/normalizeTailwindDirectives.js +2 -1
  19. package/lib/lib/partitionApplyAtRules.js +53 -0
  20. package/lib/lib/resolveDefaultsAtRules.js +6 -2
  21. package/lib/lib/setupContextUtils.js +118 -144
  22. package/lib/lib/setupTrackingContext.js +3 -3
  23. package/lib/lib/sharedState.js +5 -1
  24. package/{nesting → lib/postcss-plugins/nesting}/README.md +0 -0
  25. package/lib/postcss-plugins/nesting/index.js +17 -0
  26. package/lib/postcss-plugins/nesting/plugin.js +85 -0
  27. package/lib/processTailwindFeatures.js +7 -0
  28. package/lib/util/cloneNodes.js +12 -1
  29. package/lib/util/createPlugin.js +1 -2
  30. package/lib/util/createUtilityPlugin.js +4 -8
  31. package/lib/util/flattenColorPalette.js +1 -3
  32. package/lib/util/log.js +7 -7
  33. package/lib/util/normalizeConfig.js +19 -16
  34. package/lib/util/normalizeScreens.js +2 -4
  35. package/lib/util/parseBoxShadowValue.js +44 -4
  36. package/lib/util/pluginUtils.js +5 -12
  37. package/lib/util/prefixSelector.js +4 -5
  38. package/lib/util/resolveConfig.js +31 -18
  39. package/lib/util/resolveConfigPath.js +1 -2
  40. package/lib/util/toColorValue.js +1 -2
  41. package/lib/util/transformThemeValue.js +4 -8
  42. package/nesting/index.js +2 -12
  43. package/package.json +32 -33
  44. package/peers/index.js +3282 -4229
  45. package/plugin.d.ts +6 -0
  46. package/scripts/generate-types.js +52 -0
  47. package/src/cli.js +39 -14
  48. package/src/corePluginList.js +1 -1
  49. package/src/corePlugins.js +90 -10
  50. package/src/css/preflight.css +1 -1
  51. package/src/featureFlags.js +2 -2
  52. package/src/index.js +15 -1
  53. package/src/lib/cacheInvalidation.js +52 -0
  54. package/src/lib/collapseAdjacentRules.js +16 -1
  55. package/src/lib/defaultExtractor.js +6 -4
  56. package/src/lib/expandApplyAtRules.js +184 -11
  57. package/src/lib/expandTailwindAtRules.js +55 -10
  58. package/src/lib/generateRules.js +154 -68
  59. package/src/lib/normalizeTailwindDirectives.js +1 -0
  60. package/src/lib/partitionApplyAtRules.js +52 -0
  61. package/src/lib/resolveDefaultsAtRules.js +6 -2
  62. package/src/lib/setupContextUtils.js +81 -105
  63. package/src/lib/setupTrackingContext.js +3 -3
  64. package/src/lib/sharedState.js +2 -0
  65. package/src/postcss-plugins/nesting/README.md +42 -0
  66. package/src/postcss-plugins/nesting/index.js +13 -0
  67. package/src/postcss-plugins/nesting/plugin.js +80 -0
  68. package/src/processTailwindFeatures.js +8 -0
  69. package/src/util/cloneNodes.js +14 -1
  70. package/src/util/log.js +7 -7
  71. package/src/util/normalizeConfig.js +12 -4
  72. package/src/util/parseBoxShadowValue.js +51 -3
  73. package/src/util/prefixSelector.js +7 -5
  74. package/src/util/resolveConfig.js +30 -0
  75. package/stubs/defaultConfig.stub.js +3 -0
  76. package/types/config.d.ts +323 -0
  77. package/types/generated/.gitkeep +0 -0
  78. package/types/generated/colors.d.ts +276 -0
  79. package/types/generated/corePluginList.d.ts +1 -0
  80. package/types/index.d.ts +1 -0
  81. package/types.d.ts +1 -0
  82. package/nesting/plugin.js +0 -41
package/CHANGELOG.md CHANGED
@@ -9,14 +9,130 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Fixed
11
11
 
12
+ - Prevent nesting plugin from breaking other plugins ([#7563](https://github.com/tailwindlabs/tailwindcss/pull/7563))
13
+ - Recursively collapse adjacent rules ([#7565](https://github.com/tailwindlabs/tailwindcss/pull/7565))
14
+ - Preserve source maps for generated CSS ([#7588](https://github.com/tailwindlabs/tailwindcss/pull/7588))
15
+ - Split box shadows on top-level commas only ([#7479](https://github.com/tailwindlabs/tailwindcss/pull/7479))
16
+ - Use local user CSS cache for `@apply` ([#7524](https://github.com/tailwindlabs/tailwindcss/pull/7524))
17
+ - Invalidate context when main CSS changes ([#7626](https://github.com/tailwindlabs/tailwindcss/pull/7626))
18
+ - Only add `!` to selector class matching template candidate when using important modifier with mutli-class selectors ([#7664](https://github.com/tailwindlabs/tailwindcss/pull/7664))
19
+ - Correctly parse and prefix animation names with dots ([#7163](https://github.com/tailwindlabs/tailwindcss/pull/7163))
20
+ - Fix extraction from template literal/function with array ([#7481](https://github.com/tailwindlabs/tailwindcss/pull/7481))
21
+ - Don't output unparsable arbitrary values ([#7789](https://github.com/tailwindlabs/tailwindcss/pull/7789))
22
+ - Fix generation of `div:not(.foo)` if `.foo` is never defined ([#7815](https://github.com/tailwindlabs/tailwindcss/pull/7815))
23
+
24
+ ### Changed
25
+
26
+ - Replace `chalk` with `picocolors` ([#6039](https://github.com/tailwindlabs/tailwindcss/pull/6039))
27
+ - Replace `cosmiconfig` with `lilconfig` ([#6039](https://github.com/tailwindlabs/tailwindcss/pull/6038))
28
+ - Update `cssnano` to avoid removing empty variables when minifying ([#7818](https://github.com/tailwindlabs/tailwindcss/pull/7818))
29
+
30
+ ### Added
31
+
32
+ - Allow default ring color to be a function ([#7587](https://github.com/tailwindlabs/tailwindcss/pull/7587))
33
+ - Add `rgb` and `hsl` color helpers for CSS variables ([#7665](https://github.com/tailwindlabs/tailwindcss/pull/7665))
34
+ - Support PostCSS `Document` nodes ([#7291](https://github.com/tailwindlabs/tailwindcss/pull/7291))
35
+ - Add `text-start` and `text-end` utilities ([#6656](https://github.com/tailwindlabs/tailwindcss/pull/6656))
36
+ - Support customizing class name when using `darkMode: 'class'` ([#5800](https://github.com/tailwindlabs/tailwindcss/pull/5800))
37
+ - Add `--poll` option to the CLI ([#7725](https://github.com/tailwindlabs/tailwindcss/pull/7725))
38
+ - Add new `border-spacing` utilities ([#7102](https://github.com/tailwindlabs/tailwindcss/pull/7102))
39
+ - Add `enabled` variant ([#7905](https://github.com/tailwindlabs/tailwindcss/pull/7905))
40
+ - Add TypeScript types for the `tailwind.config.js` file ([#7891](https://github.com/tailwindlabs/tailwindcss/pull/7891))
41
+
42
+ ## [3.0.23] - 2022-02-16
43
+
44
+ ### Fixed
45
+
46
+ - Remove opacity variables from `:visited` pseudo class ([#7458](https://github.com/tailwindlabs/tailwindcss/pull/7458))
47
+ - Support arbitrary values + calc + theme with quotes ([#7462](https://github.com/tailwindlabs/tailwindcss/pull/7462))
48
+ - Don't duplicate layer output when scanning content with variants + wildcards ([#7478](https://github.com/tailwindlabs/tailwindcss/pull/7478))
49
+ - Implement `getClassOrder` instead of `sortClassList` ([#7459](https://github.com/tailwindlabs/tailwindcss/pull/7459))
50
+
51
+ ## [3.0.22] - 2022-02-11
52
+
53
+ ### Fixed
54
+
55
+ - Temporarily move `postcss` to dependencies ([#7424](https://github.com/tailwindlabs/tailwindcss/pull/7424))
56
+
57
+ ## [3.0.21] - 2022-02-10
58
+
59
+ ### Fixed
60
+
61
+ - Move prettier plugin to dev dependencies ([#7418](https://github.com/tailwindlabs/tailwindcss/pull/7418))
62
+
63
+ ## [3.0.20] - 2022-02-10
64
+
65
+ ### Added
66
+
67
+ - Expose `context.sortClassList(classes)` ([#7412](https://github.com/tailwindlabs/tailwindcss/pull/7412))
68
+
69
+ ## [3.0.19] - 2022-02-07
70
+
71
+ ### Fixed
72
+
73
+ - Fix preflight border color fallback ([#7288](https://github.com/tailwindlabs/tailwindcss/pull/7288))
74
+ - Correctly parse shadow lengths without a leading zero ([#7289](https://github.com/tailwindlabs/tailwindcss/pull/7289))
75
+ - Don't crash when scanning extremely long class candidates ([#7331](https://github.com/tailwindlabs/tailwindcss/pull/7331))
76
+ - Use less hacky fix for URLs detected as custom properties ([#7275](https://github.com/tailwindlabs/tailwindcss/pull/7275))
77
+ - Correctly generate negative utilities when dash is before the prefix ([#7295](https://github.com/tailwindlabs/tailwindcss/pull/7295))
78
+ - Detect prefixed negative utilities in the safelist ([#7295](https://github.com/tailwindlabs/tailwindcss/pull/7295))
79
+
80
+ ## [3.0.18] - 2022-01-28
81
+
82
+ ### Fixed
83
+
84
+ - Fix `@apply` order regression (in `addComponents`, `addUtilities`, ...) ([#7232](https://github.com/tailwindlabs/tailwindcss/pull/7232))
85
+ - Quick fix for incorrect arbitrary properties when using URLs ([#7252](https://github.com/tailwindlabs/tailwindcss/pull/7252))
86
+
87
+ ## [3.0.17] - 2022-01-26
88
+
89
+ ### Fixed
90
+
91
+ - Remove false positive warning in CLI when using the `--content` option ([#7220](https://github.com/tailwindlabs/tailwindcss/pull/7220))
92
+
93
+ ## [3.0.16] - 2022-01-24
94
+
95
+ ### Fixed
96
+
97
+ - Ensure to transpile the PostCSS Nesting plugin (tailwindcss/nesting) ([#7080](https://github.com/tailwindlabs/tailwindcss/pull/7080))
98
+ - Improve various warnings ([#7118](https://github.com/tailwindlabs/tailwindcss/pull/7118))
99
+ - Fix grammatical mistake ([cca5a38](https://github.com/tailwindlabs/tailwindcss/commit/cca5a3804e1d3ee0214491921e1aec35bf62a813))
100
+
101
+ ## [3.0.15] - 2022-01-15
102
+
103
+ ### Fixed
104
+
105
+ - Temporarily remove optional chaining in nesting plugin ([#7077](https://github.com/tailwindlabs/tailwindcss/pull/7077))
106
+
107
+ ## [3.0.14] - 2022-01-14
108
+
109
+ ### Added
110
+
111
+ - Show warnings for invalid content config ([#7065](https://github.com/tailwindlabs/tailwindcss/pull/7065))
112
+
113
+ ### Fixed
114
+
115
+ - Only emit utility/component variants when those layers exist ([#7066](https://github.com/tailwindlabs/tailwindcss/pull/7066))
116
+ - Ensure nesting plugins can receive options ([#7016](https://github.com/tailwindlabs/tailwindcss/pull/7016))
117
+
118
+ ## [3.0.13] - 2022-01-11
119
+
120
+ ### Fixed
121
+
122
+ - Fix consecutive builds with at apply producing different CSS ([#6999](https://github.com/tailwindlabs/tailwindcss/pull/6999))
123
+
124
+ ## [3.0.12] - 2022-01-07
125
+
126
+ ### Fixed
127
+
12
128
  - Allow use of falsy values in theme config ([#6917](https://github.com/tailwindlabs/tailwindcss/pull/6917))
13
129
  - Ensure we can apply classes that are grouped with non-class selectors ([#6922](https://github.com/tailwindlabs/tailwindcss/pull/6922))
14
130
  - Improve standalone CLI compatibility on Linux by switching to the `linuxstatic` build target ([#6914](https://github.com/tailwindlabs/tailwindcss/pull/6914))
15
131
  - Ensure `@apply` works consistently with or without `@layer` ([#6938](https://github.com/tailwindlabs/tailwindcss/pull/6938))
16
- - Only emit defaults when using base layer ([#6906](https://github.com/tailwindlabs/tailwindcss/pull/6906))
17
- - Emit plugin defaults regardless of usage ([#6906](https://github.com/tailwindlabs/tailwindcss/pull/6906))
18
- - Move default border color back to preflight ([#6906](https://github.com/tailwindlabs/tailwindcss/pull/6906))
19
- - Change `experimental.optimizeUniversalDefaults` to only work with `@tailwind base` ([#6906](https://github.com/tailwindlabs/tailwindcss/pull/6906))
132
+ - Only emit defaults when using base layer ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
133
+ - Emit plugin defaults regardless of usage ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
134
+ - Move default border color back to preflight ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
135
+ - Change `experimental.optimizeUniversalDefaults` to only work with `@tailwind base` ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
20
136
 
21
137
  ## [3.0.11] - 2022-01-05
22
138
 
@@ -1788,7 +1904,19 @@ No release notes
1788
1904
 
1789
1905
  - Everything!
1790
1906
 
1791
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.11...HEAD
1907
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.23...HEAD
1908
+ [3.0.23]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.22...v3.0.23
1909
+ [3.0.22]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.21...v3.0.22
1910
+ [3.0.21]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.20...v3.0.21
1911
+ [3.0.20]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.19...v3.0.20
1912
+ [3.0.19]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.18...v3.0.19
1913
+ [3.0.18]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.17...v3.0.18
1914
+ [3.0.17]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.16...v3.0.17
1915
+ [3.0.16]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.15...v3.0.16
1916
+ [3.0.15]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.14...v3.0.15
1917
+ [3.0.14]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.13...v3.0.14
1918
+ [3.0.13]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.12...v3.0.13
1919
+ [3.0.12]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.11...v3.0.12
1792
1920
  [3.0.11]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.10...v3.0.11
1793
1921
  [3.0.10]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.9...v3.0.10
1794
1922
  [3.0.9]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.8...v3.0.9
package/LICENSE CHANGED
@@ -1,7 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Adam Wathan <adam.wathan@gmail.com>
4
- Copyright (c) Jonathan Reinink <jonathan@reinink.ca>
3
+ Copyright (c) Tailwind Labs, Inc.
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
6
  of this software and associated documentation files (the "Software"), to deal
package/colors.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { DefaultColors } from './types/generated/colors'
2
+ declare const colors: DefaultColors
3
+ export = colors
@@ -0,0 +1,3 @@
1
+ import type { Config } from './types/config'
2
+ declare const config: Config
3
+ export = config
@@ -0,0 +1,3 @@
1
+ import type { Config } from './types/config'
2
+ declare const theme: Config['theme']
3
+ export = theme
package/lib/cli.js CHANGED
@@ -6,7 +6,7 @@ var _path = _interopRequireDefault(require("path"));
6
6
  var _arg = _interopRequireDefault(require("arg"));
7
7
  var _fs = _interopRequireDefault(require("fs"));
8
8
  var _postcssLoadConfig = _interopRequireDefault(require("postcss-load-config"));
9
- var _cosmiconfig = require("cosmiconfig");
9
+ var _lilconfig = require("lilconfig");
10
10
  var _plugins // Little bit scary, looking at private/internal API
11
11
  = _interopRequireDefault(require("postcss-load-config/src/plugins"));
12
12
  var _processTailwindFeatures = _interopRequireDefault(require("./processTailwindFeatures"));
@@ -89,8 +89,7 @@ function help({ message , usage , commands: commands1 , options }) {
89
89
  }
90
90
  // Render options
91
91
  if (options) {
92
- let groupedOptions = {
93
- };
92
+ let groupedOptions = {};
94
93
  for (let [key, value] of Object.entries(options)){
95
94
  if (typeof value === 'object') {
96
95
  groupedOptions[key] = {
@@ -141,6 +140,10 @@ let commands = {
141
140
  type: Boolean,
142
141
  description: 'Initialize a `postcss.config.js` file'
143
142
  },
143
+ '--types': {
144
+ type: Boolean,
145
+ description: 'Add TypeScript types for the `tailwind.config.js` file'
146
+ },
144
147
  '-f': '--full',
145
148
  '-p': '--postcss'
146
149
  }
@@ -160,6 +163,10 @@ let commands = {
160
163
  type: Boolean,
161
164
  description: 'Watch for changes and rebuild as needed'
162
165
  },
166
+ '--poll': {
167
+ type: Boolean,
168
+ description: 'Use polling instead of filesystem events when watching'
169
+ },
163
170
  '--content': {
164
171
  type: String,
165
172
  description: 'Content paths to use for removing unused classes'
@@ -188,7 +195,8 @@ let commands = {
188
195
  '-i': '--input',
189
196
  '-o': '--output',
190
197
  '-m': '--minify',
191
- '-w': '--watch'
198
+ '-w': '--watch',
199
+ '-p': '--poll'
192
200
  }
193
201
  }
194
202
  };
@@ -204,7 +212,7 @@ if (process.stdout.isTTY /* Detect redirecting output to a file */ && (process.
204
212
  help({
205
213
  usage: [
206
214
  'tailwindcss [--input input.css] [--output output.css] [--watch] [options...]',
207
- 'tailwindcss init [--full] [--postcss] [options...]',
215
+ 'tailwindcss init [--full] [--postcss] [--types] [options...]',
208
216
  ],
209
217
  commands: Object.keys(commands).filter((command2)=>command2 !== 'build'
210
218
  ).map((command3)=>`${command3} [options]`
@@ -323,6 +331,10 @@ function init() {
323
331
  messages.push(`${_path.default.basename(tailwindConfigLocation)} already exists.`);
324
332
  } else {
325
333
  let stubFile = _fs.default.readFileSync(args['--full'] ? _path.default.resolve(__dirname, '../stubs/defaultConfig.stub.js') : _path.default.resolve(__dirname, '../stubs/simpleConfig.stub.js'), 'utf8');
334
+ if (args['--types']) {
335
+ let typesHeading = "/** @type {import('tailwindcss/types').Config} */";
336
+ stubFile = stubFile.replace(`module.exports = `, `${typesHeading}\nconst config = `) + '\nmodule.exports = config';
337
+ }
326
338
  // Change colors import
327
339
  stubFile = stubFile.replace('../colors', 'tailwindcss/colors');
328
340
  _fs.default.writeFileSync(tailwindConfigLocation, stubFile, 'utf8');
@@ -349,7 +361,12 @@ async function build() {
349
361
  let input = args['--input'];
350
362
  let output = args['--output'];
351
363
  let shouldWatch = args['--watch'];
364
+ let shouldPoll = args['--poll'];
365
+ let shouldCoalesceWriteEvents = shouldPoll || process.platform === 'win32';
352
366
  let includePostCss = args['--postcss'];
367
+ // Polling interval in milliseconds
368
+ // Used only when polling or coalescing add/change events on Windows
369
+ let pollInterval = 10;
353
370
  // TODO: Deprecate this in future versions
354
371
  if (!input && args['_'][1]) {
355
372
  console.error('[deprecation] Running tailwindcss without -i, please provide an input file.');
@@ -369,14 +386,12 @@ async function build() {
369
386
  let customPostCssPath = typeof args['--postcss'] === 'string' ? args['--postcss'] : undefined;
370
387
  let { plugins: configPlugins } = customPostCssPath ? await (async ()=>{
371
388
  let file = _path.default.resolve(customPostCssPath);
372
- // Implementation, see: https://unpkg.com/browse/postcss-load-config@3.0.1/src/index.js
373
- let { config ={
374
- } } = await (0, _cosmiconfig).cosmiconfig('postcss').load(file);
389
+ // Implementation, see: https://unpkg.com/browse/postcss-load-config@3.1.0/src/index.js
390
+ let { config ={} } = await (0, _lilconfig).lilconfig('postcss').load(file);
375
391
  if (typeof config === 'function') {
376
392
  config = config();
377
393
  } else {
378
- config = Object.assign({
379
- }, config);
394
+ config = Object.assign({}, config);
380
395
  }
381
396
  if (!config.plugins) {
382
397
  config.plugins = [];
@@ -402,9 +417,7 @@ async function build() {
402
417
  ];
403
418
  }
404
419
  function resolveConfig() {
405
- let config = configPath ? require(configPath) : {
406
- };
407
- let resolvedConfig = (0, _resolveConfig).default(config);
420
+ let config = configPath ? require(configPath) : {};
408
421
  if (args['--purge']) {
409
422
  _log.default.warn('purge-flag-deprecated', [
410
423
  'The `--purge` flag has been deprecated.',
@@ -415,9 +428,16 @@ async function build() {
415
428
  }
416
429
  }
417
430
  if (args['--content']) {
418
- resolvedConfig.content.files = args['--content'].split(/(?<!{[^}]+),/);
431
+ let files = args['--content'].split(/(?<!{[^}]+),/);
432
+ let resolvedConfig = (0, _resolveConfig).default(config, {
433
+ content: {
434
+ files
435
+ }
436
+ });
437
+ resolvedConfig.content.files = files;
438
+ return resolvedConfig;
419
439
  }
420
- return resolvedConfig;
440
+ return (0, _resolveConfig).default(config);
421
441
  }
422
442
  function extractFileGlobs(config) {
423
443
  return config.content.files.filter((file)=>{
@@ -482,8 +502,7 @@ async function build() {
482
502
  // Try to load a local `autoprefixer` version first
483
503
  try {
484
504
  return require('autoprefixer');
485
- } catch {
486
- }
505
+ } catch {}
487
506
  return (0, _indexJs).lazyAutoprefixer();
488
507
  })(),
489
508
  args['--minify'] && (()=>{
@@ -498,8 +517,7 @@ async function build() {
498
517
  // Try to load a local `cssnano` version first
499
518
  try {
500
519
  return require('cssnano');
501
- } catch {
502
- }
520
+ } catch {}
503
521
  return (0, _indexJs).lazyCssnano()(options);
504
522
  })(),
505
523
  ].filter(Boolean);
@@ -575,8 +593,7 @@ async function build() {
575
593
  // Try to load a local `autoprefixer` version first
576
594
  try {
577
595
  return require('autoprefixer');
578
- } catch {
579
- }
596
+ } catch {}
580
597
  return (0, _indexJs).lazyAutoprefixer();
581
598
  })(),
582
599
  args['--minify'] && (()=>{
@@ -591,8 +608,7 @@ async function build() {
591
608
  // Try to load a local `cssnano` version first
592
609
  try {
593
610
  return require('cssnano');
594
- } catch {
595
- }
611
+ } catch {}
596
612
  return (0, _indexJs).lazyCssnano()(options);
597
613
  })(),
598
614
  ].filter(Boolean);
@@ -686,10 +702,12 @@ async function build() {
686
702
  ...contextDependencies,
687
703
  ...extractFileGlobs(config1)
688
704
  ], {
705
+ usePolling: shouldPoll,
706
+ interval: shouldPoll ? pollInterval : undefined,
689
707
  ignoreInitial: true,
690
- awaitWriteFinish: process.platform === 'win32' ? {
708
+ awaitWriteFinish: shouldCoalesceWriteEvents ? {
691
709
  stabilityThreshold: 50,
692
- pollInterval: 10
710
+ pollInterval: pollInterval
693
711
  } : false
694
712
  });
695
713
  let chain = Promise.resolve();
@@ -38,6 +38,7 @@ var _default = [
38
38
  "flexBasis",
39
39
  "tableLayout",
40
40
  "borderCollapse",
41
+ "borderSpacing",
41
42
  "transformOrigin",
42
43
  "translate",
43
44
  "rotate",