chore: comment update - required to import

Signed-off-by: acalcutt <acalcutt@techidiots.net>
This commit is contained in:
acalcutt 2023-04-02 23:11:14 -04:00 committed by Andrew Calcutt
parent 689576b168
commit e1c46d4ef6
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
'use strict';
// sharp has to be required before node-canvas on linux. see https://github.com/lovell/sharp/issues/371
// sharp has to be imported before node-canvas on linux. see https://github.com/lovell/sharp/issues/371
import sharp from 'sharp';
import { createCanvas, Image } from 'canvas';

View file

@ -1,6 +1,6 @@
'use strict';
// sharp has to be required after node-canvas on windows. see https://github.com/Automattic/node-canvas/issues/2155#issuecomment-1487190125
// sharp has to be imported after node-canvas on windows. see https://github.com/Automattic/node-canvas/issues/2155#issuecomment-1487190125
import { createCanvas, Image } from 'canvas';
import sharp from 'sharp';