Skip to content

Commit

Permalink
Update Sass to 1.83.1 (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandertrefz authored Jan 7, 2025
1 parent 9f99928 commit 61ac438
Show file tree
Hide file tree
Showing 9 changed files with 1,038 additions and 593 deletions.
1,453 changes: 1,022 additions & 431 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
},
"devDependencies": {
"@ionic/prettier-config": "^4.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-typescript": "^11.1.6",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.2",
"@stencil/core": "^4.0.0",
"@types/jest": "^29.0.0",
"@types/node": "^20.2.0",
"jest": "^29.0.0",
"np": "^10.0.0",
"prettier": "^3.0.0",
"rimraf": "^6.0.0",
"rollup": "^4.0.0",
"sass": "^1.58.3",
"rimraf": "^6.0.1",
"rollup": "^4.30.1",
"sass-embedded": "^1.83.1",
"terser": "^5.3.8",
"ts-jest": "^29.0.0",
"typescript": "~5.0.0"
Expand Down
3 changes: 1 addition & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from 'node:fs/promises'
import pluginSass from './rollup.plugin.sass.mjs';
import typescript from '@rollup/plugin-typescript';
import rollupResolve from '@rollup/plugin-node-resolve';

Expand All @@ -14,13 +13,13 @@ export default {

plugins: [
typescript(),
pluginSass(),
rollupResolve({
preferBuiltins: true
}),
],

external: [
"sass-embedded",
'fs',
'path'
],
Expand Down
146 changes: 0 additions & 146 deletions rollup.plugin.sass.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion src/diagnostics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LegacyException } from 'sass';
import type { LegacyException } from 'sass-embedded';
import * as d from './declarations';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type LegacyException, type LegacyResult, render } from 'sass';
import { type LegacyException, type LegacyResult, render } from 'sass-embedded';

import * as d from './declarations';
import { loadDiagnostic } from './diagnostics';
Expand Down
5 changes: 3 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path from 'node:path';
import type { LegacyAsyncImporter, LegacyImporterResult } from 'sass';
import type { LegacyOptions } from 'sass/types/legacy/options';
import type { LegacyAsyncImporter, LegacyImporterResult, LegacyOptions } from 'sass-embedded';

import * as d from './declarations';

Expand Down Expand Up @@ -147,6 +146,8 @@ export function getRenderOptions(
renderOpts.importer = importers;
}

renderOpts.silenceDeprecations = [...(renderOpts.silenceDeprecations ?? []), 'legacy-js-api'];

return renderOpts;
}

Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/sass/test-b.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'variables'
@use 'variables'

body
color: $color
color: variables.$color
6 changes: 3 additions & 3 deletions test/fixtures/scss/test-b.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import 'variables';
@use 'variables';

body {
color: $color;
}
color: variables.$color;
}

0 comments on commit 61ac438

Please sign in to comment.