diff --git a/src/transform.ts b/src/transform.ts index 0f11661..e452ebf 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -29,7 +29,6 @@ export async function transformCSS( // Wait for new stylesheet to be loaded await promise; el.remove(); - URL.revokeObjectURL(url); updatedObject.el = link; } else if (el.hasAttribute('data-has-inline-styles')) { // Handle inline styles diff --git a/tests/unit/transform.test.ts b/tests/unit/transform.test.ts index ea43ba3..0cd01d6 100644 --- a/tests/unit/transform.test.ts +++ b/tests/unit/transform.test.ts @@ -3,7 +3,6 @@ import { transformCSS } from '../../src/transform.js'; describe('transformCSS', () => { beforeAll(() => { global.URL.createObjectURL = vi.fn().mockReturnValue('/updated.css'); - global.URL.revokeObjectURL = vi.fn(); }); it('parses and removes new anchor positioning CSS after transformation to JS', async () => {