Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Dec 28, 2023
1 parent 2d311d3 commit b3d8b13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions rollup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
],
plugins: [
babel({
babelHelpers: 'bundled',
presets: [
['@babel/env', { modules: false, targets: { node: 12 } }],
],
Expand Down
6 changes: 4 additions & 2 deletions test/_sourcemaps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ test('produces correct sourcemaps', async () => {
assert.equal(result.css, expect);
assert.equal(result.warnings().length, 0);

const actual = result.map.toJSON();
actual.sources.splice(0, 1);

assert.deepStrictEqual(
result.map.toJSON(),
actual,
{
version: 3,
sources: [
'file:///Users/romainmenke/projects/postcss-sass/basic.scss%23sass',
'basic.scss',
],
names: [],
Expand Down

0 comments on commit b3d8b13

Please sign in to comment.