SVG-Edit / svgedit

Powerful SVG-Editor for your browser
MIT License
6.7k stars 1.56k forks source link

Fix rimraf import #917

Closed pmkrawczyk closed 1 year ago

pmkrawczyk commented 1 year ago

PR description

This fixes rimraf import from: import { rimraf } from rimraf

To: import pkg from 'rimraf'; const { rimraf } = pkg;

The current import is incorrect and breaks in certain environments: [!] SyntaxError: Named export 'rimraf' not found. The requested module 'rimraf' is a CommonJS module, which may not support all module.exports as named exports.

Checklist

Note that we require UI tests to ensure that the added feature will not be nixed by some future fix and that there is at least some test-as-documentation to indicate how the fix or enhancement is expected to behave.

pmkrawczyk commented 1 year ago

The issue was caused by our CI infrastructure, closing!