Skip to content

Commit 67178d4

Browse files
committed
fix: backported disabled auto importing fiber on node >= 16
Original Changes: 4ca004b
1 parent 05b848b commit 67178d4

13 files changed

+179
-485
lines changed

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
22
root: true,
33
extends: ["@webpack-contrib/eslint-config-webpack", "prettier"],
4+
parserOptions: {
5+
ecmaVersion: 2020,
6+
},
47
};

.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
matrix:
5757
os: [ubuntu-latest, windows-latest, macos-latest]
58-
node-version: [10.x, 12.x, 14.x]
58+
node-version: [10.x, 12.x, 14.x, 16.x]
5959
webpack-version: [4, latest]
6060

6161
runs-on: ${{ matrix.os }}

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ module.exports = {
186186
Note that when using `sass` (`Dart Sass`), **synchronous compilation is twice as fast as asynchronous compilation** by default, due to the overhead of asynchronous callbacks.
187187
To avoid this overhead, you can use the [fibers](https://www.npmjs.com/package/fibers) package to call asynchronous importers from the synchronous code path.
188188

189-
We automatically inject the [`fibers`](https://github.com/laverdet/node-fibers) package (setup `sassOptions.fiber`) if is possible (i.e. you need install the [`fibers`](https://github.com/laverdet/node-fibers) package).
189+
We automatically inject the [`fibers`](https://github.com/laverdet/node-fibers) package (setup `sassOptions.fiber`) for `Node.js` less v16.0.0 if is possible (i.e. you need install the [`fibers`](https://github.com/laverdet/node-fibers) package).
190+
191+
> Fibers is not compatible with `Node.js` v16.0.0 or later ([see introduction to readme](https://github.com/laverdet/node-fibers)).
190192
191193
**package.json**
192194

0 commit comments

Comments
 (0)