diff --git a/rollup.mjs b/rollup.mjs index 45a8ea3..c163717 100644 --- a/rollup.mjs +++ b/rollup.mjs @@ -8,6 +8,7 @@ export default { ], plugins: [ babel({ + babelHelpers: 'bundled', presets: [ ['@babel/env', { modules: false, targets: { node: 12 } }], ], diff --git a/test/_sourcemaps.mjs b/test/_sourcemaps.mjs index c0f1892..b867711 100644 --- a/test/_sourcemaps.mjs +++ b/test/_sourcemaps.mjs @@ -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: [],