Skip to content

Commit

Permalink
update rollup to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
korywka committed Dec 19, 2023
1 parent b1ee8db commit 09ccfe4
Show file tree
Hide file tree
Showing 3 changed files with 1,446 additions and 1,254 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { extname } from 'node:path';
import { createFilter } from '@rollup/pluginutils';

const injectNode = (svg) => (`
const injectNode = (svg) => `
export default function() {
return (new DOMParser().parseFromString(${svg}, 'image/svg+xml')).firstChild;
};
`);
`;

const injectString = (svg) => `export default ${svg};`;

Expand Down
Loading

0 comments on commit 09ccfe4

Please sign in to comment.