Commit Graph

474 Commits

Author SHA1 Message Date
Greg Bergé
21d52adb3d wip 2021-09-19 11:06:24 +02:00
Greg Bergé
aaddbd1e05 Merge pull request #596 from gregberge/upgrade-deps
chore: upgrade website
2021-09-17 00:39:25 +02:00
Greg Bergé
9a10e0ab28 chore(website): fix build 2021-09-17 00:34:42 +02:00
Greg Bergé
54305c0861 chore: add .nvmrc 2021-09-17 00:12:14 +02:00
Greg Bergé
3ba544a799 chore(lint): prevent website linting 2021-09-17 00:05:38 +02:00
Greg Bergé
f3d0e4b5b3 chore: fix lint 2021-09-16 23:54:30 +02:00
Greg Bergé
1ff4ac9e67 chore: upgrade website 2021-09-16 23:40:28 +02:00
Ray Wong
f18ea80dda feat: add option to explicitly use named export (#584) 2021-09-16 22:46:21 +02:00
Greg Bergé
1058d91f6e chore: upgrade deps (#592) 2021-09-12 12:10:33 +02:00
Lisa Munin
16072d45d2 feat: add webpack typescript preset configuration (#573)
It simplifies TypeScript + webpack integration.
2021-09-12 09:23:35 +02:00
Jules Sam. Randolph
b3998eb8e0 fix: fix XML entities in generated JavaScript (#553)
Co-authored-by: Michel Jung <michel.jung89@gmail.com>
2021-09-12 09:03:37 +02:00
Greg Bergé
7e890a928f Merge pull request #591 from gregberge/upgrade-deps
Upgrade to SVGO v2
2021-09-06 09:52:49 +02:00
Greg Bergé
ae47269cf9 chore: remove snapshot 2021-09-06 09:22:01 +02:00
Greg Bergé
871f54288c chore: fix tests 2021-09-06 09:17:08 +02:00
Greg Bergé
1f107af5aa feat: upgrade to svgo v2
BREAKING CHANGE: config format of SVGO changes & SVGR does not merge SVGO config.
2021-09-05 23:09:18 +02:00
Greg Bergé
18cd7c8dea chore: upgrade deps 2021-09-05 10:48:02 +02:00
Greg Bergé
3a2f5e319d Merge pull request #590 from gregberge/upgrade-deps
chore(deps): upgrade
2021-09-05 10:43:57 +02:00
Pascal Jufer
911de25e68 docs: fix documentation of "Runtime config" (#566) 2021-09-05 10:42:02 +02:00
Greg Bergé
5841597de4 chore: remove netlify config from repo 2021-09-05 10:39:31 +02:00
Greg Bergé
5b79bdb0c4 chore: setup GitHub Actions 2021-09-05 10:38:22 +02:00
Greg Bergé
75dd79227c chore: upgrade commander 2021-09-05 09:44:45 +02:00
Greg Bergé
1f920909db chore: fix tests 2021-09-05 09:38:06 +02:00
Greg Bergé
3b0cb6b955 chore: fix lint issues 2021-09-05 09:29:49 +02:00
Greg Bergé
310ceb6bee chore: format code 2021-09-05 09:27:36 +02:00
Greg Bergé
ed14425d42 chore(deps): upgrade 2021-09-05 09:26:47 +02:00
Michael Grigoryan
05d51f1f30 docs: fixed typo in the landing page (#583) 2021-09-05 09:19:28 +02:00
Luc Heinrich
2a80c4d145 docs: add vite-plugin-svgr to ecosystem.mdx (#587) 2021-09-05 09:18:49 +02:00
Sahin D
81f2b8021f docs: few adjustments for Webpack 5 (#562) 2021-08-16 23:40:53 +02:00
Ross Moody
7727be6a99 docs: update ecosystem.mdx (#581) 2021-08-16 23:40:31 +02:00
Brennan Kinney
b3601178ea docs: better explain gotchas with the config options (#552)
SVGR has some internal SVGO config changes that aren't documented which differ from upstream SVGO defaults.

The `dimensions` option was documented in a way that was easy to be confused (previously the `Default` was `false` but was later documented as `true` without updating the description or CLI option), this has been better addressed.
2021-04-25 18:59:12 +02:00
Greg Bergé
fbb4ee5014 chore: fix vercel deploy (#543) 2021-03-05 09:27:15 +01:00
Greg Bergé
143bf47196 chore: fix vercel deploy (#542) 2021-03-05 09:10:37 +01:00
Harman Goei
ec17865c5d docs: require('@svgr/rollup') should be require('@svgr/rollup').default (#523)
When I was loading `@svgr/rollup` in my rollup config, it said that `svgr` is not a function.

When I did the require via the node CLI, i noticed the following
```
Welcome to Node.js v14.15.1.
Type ".help" for more information.
> require("@svgr/rollup")
{ __esModule: true, default: [Function: svgrPlugin] }
> 
```

This PR corrects the documentation for this.
2021-01-26 08:33:38 +01:00
Nisar Hassan Naqvi
7d5c511ebd docs: add GitPod support (#524) 2021-01-26 08:33:13 +01:00
Greg Bergé
b5920550bd v5.5.0 v5.5.0 2020-11-15 11:22:58 +01:00
Greg Bergé
fe5cb21be5 chore: upgrade deps & test on Node.js v14 (#508) 2020-11-15 11:21:47 +01:00
Ztarbox
d61e0cface fix(typescript): fix react-native support #465 (#488)
Co-authored-by: Johannes Kann <johannes.kann@syre.com>
2020-11-15 09:59:19 +01:00
Endika Intxaurtieta
0eb80853e5 fix: ensure a valid name for exports (#489)
Co-authored-by: Endika Intxaurtieta <endika@MacBook-Pro-de-Endika.local>
2020-11-15 09:33:38 +01:00
stefanprobst
16a58d6e81 feat: allow custom name for named export (#493) 2020-11-14 23:28:49 +01:00
Timon van Spronsen
3628ab410b docs: document --filename-case option (#496) 2020-11-14 23:09:26 +01:00
Michael Gruben
00e84ead96 fix: prevent removing the namespace by svgr ([#475](https://github.com/gregberge/svgr/issues/475) (#498)
Co-authored-by: Michael Gruben <michael.gruben@empiriecom.com>
2020-11-14 23:04:46 +01:00
Filipe W. Lima
9fb0af5fc0 docs: fix array syntax for SVG in CSS example (#499)
Noticed in the example for handling SVG in CSS that it should be an array with 2 objects.
2020-11-14 23:03:14 +01:00
Tran Van Sang
4205152bbe docs: fix incorrect syntax in README's sample (#503) 2020-11-14 23:02:48 +01:00
Ian MacFarlane
db5cafd038 docs: typo in jest docs (#504) 2020-11-14 23:02:09 +01:00
Dallas Carraher
669814ee64 docs: update jest.mdx (#507) 2020-11-14 23:01:43 +01:00
Bogdan Chadkin
af294ac3b8 perf(cli): use fs.promises (#459)
* Use fs.promises in svgr cli

Node v10 got fs.promises support with already promisified api. See here https://nodejs.org/docs/latest-v10.x/api/fs.html#fs_fs_promises_api

Also we get helpful mkdir recursive flag which replaces mkdirp and
make-dir packages.

In this diff I replaced util.promisify with fs.promises where possible
and output-file-sync with combination of promisified fs.mkdir and fs.writeFile.
2020-07-27 17:52:51 +02:00
Bogdan Chadkin
1f015eb16f perf: replace merge-deep with smaller deepmerge (#463)
Deepmerge has no dependencies and the package is smaller.

https://packagephobia.com/result?p=deepmerge
https://packagephobia.com/result?p=merge-deep
2020-07-27 17:51:49 +02:00
Greg Bergé
9ce8bc2e78 docs(website): fix ads display 2020-07-11 10:29:24 +02:00
Greg Bergé
c7ad69fff3 fix: fix playground 2020-07-10 10:04:54 +02:00
Greg Bergé
9af49d4b68 docs(website): fix style blink 2020-07-07 10:39:41 +02:00