Skip to content

Commit

Permalink
Add documentation link to legacy JS API warning (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
jathak authored Sep 19, 2024
1 parent 59dde59 commit df6f478
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/legacy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export function render(

const start = Date.now();
warnForHostSideDeprecation(
'The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.',
'The legacy JS API is deprecated and will be removed in ' +
'Dart Sass 2.0.0.\n\n' +
'More info: https://sass-lang.com/d/legacy-js-api',
deprecations['legacy-js-api'],
options
);
Expand All @@ -75,7 +77,9 @@ export function renderSync(options: LegacyOptions<'sync'>): LegacyResult {
try {
options = adjustOptions(options);
warnForHostSideDeprecation(
'The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.',
'The legacy JS API is deprecated and will be removed in ' +
'Dart Sass 2.0.0.\n\n' +
'More info: https://sass-lang.com/d/legacy-js-api',
deprecations['legacy-js-api'],
options
);
Expand Down

0 comments on commit df6f478

Please sign in to comment.