Skip to content

Commit df6f478

Browse files
authored
Add documentation link to legacy JS API warning (#333)
1 parent 59dde59 commit df6f478

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/src/legacy/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export function render(
5252

5353
const start = Date.now();
5454
warnForHostSideDeprecation(
55-
'The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.',
55+
'The legacy JS API is deprecated and will be removed in ' +
56+
'Dart Sass 2.0.0.\n\n' +
57+
'More info: https://sass-lang.com/d/legacy-js-api',
5658
deprecations['legacy-js-api'],
5759
options
5860
);
@@ -75,7 +77,9 @@ export function renderSync(options: LegacyOptions<'sync'>): LegacyResult {
7577
try {
7678
options = adjustOptions(options);
7779
warnForHostSideDeprecation(
78-
'The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.',
80+
'The legacy JS API is deprecated and will be removed in ' +
81+
'Dart Sass 2.0.0.\n\n' +
82+
'More info: https://sass-lang.com/d/legacy-js-api',
7983
deprecations['legacy-js-api'],
8084
options
8185
);

0 commit comments

Comments
 (0)