diff --git a/src/render_import_unix.js b/src/render_import_unix.js index d2022d1..5d131db 100644 --- a/src/render_import_unix.js +++ b/src/render_import_unix.js @@ -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'; diff --git a/src/render_import_windows.js b/src/render_import_windows.js index 6698f4a..da80a74 100644 --- a/src/render_import_windows.js +++ b/src/render_import_windows.js @@ -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';