111 Commits

Author SHA1 Message Date
Wlad Meixner
68f827aa07 Small text fix in custom-templates.mdx 2021-12-03 12:21:24 +01:00
Greg Bergé
c62bc91b53 docs: fix typo Jest -> Mocha 2021-12-01 22:54:37 +01:00
Greg Bergé
adca5673d9 docs: configure mocha with SVGR
Closes #620
2021-12-01 22:28:56 +01:00
Greg Bergé
a84f5cd703 docs: document JSX runtime 2021-11-29 14:30:06 +01:00
Greg Bergé
eb3282b19d docs: rewriting 2021-11-28 23:08:59 +01:00
Greg Bergé
10638d0dda docs(rollup): change url plugin (#614)
Closes #595
2021-11-01 08:46:03 +01:00
Filipe Marins
4978610f82 feat: add "index" option (#607)
Thanks!
2021-10-12 23:11:37 +02:00
Greg Bergé
1e36ead767 chore(ci): use npm instead of yarn (#603) 2021-10-03 08:39:42 +02:00
Max Base
48a5e3a80e docs(website): fix broken gatsbyjs.org link at website MD (#561) 2021-09-19 22:39:23 +02:00
Greg Bergé
564b24f536 chore(deps): upgrade website deps (#598) 2021-09-19 21:24:18 +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é
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é
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é
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é
3b0cb6b955 chore: fix lint issues 2021-09-05 09:29:49 +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é
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
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
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
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
Greg Bergé
5f02b07d84 docs(website): use carbon ads 2020-07-07 09:42:21 +02:00
Maxence Bouret
6d605d6063 docs: update custom-templates.mdx (#460) 2020-06-26 21:47:14 +02:00
Greg Bergé
8c6f7b560e style: prettier format 2020-04-27 22:15:25 +02:00
Greg Bergé
a23a18675c feat(cli): make all CLI options available in config
Related #431, #437
2020-04-27 22:15:25 +02:00
Greg Bergé
2be3b18815 doc(website): add new typescript option 2020-03-22 16:47:23 +01:00
Greg Bergé
e0947c6f22 docs: document index template
Closes #386
2020-03-22 15:47:17 +01:00
Greg Bergé
4596d7bb47 feat: add typescript option
Also add support for JSX in templates (Close #373).
2020-03-22 15:39:40 +01:00
Greg Bergé
c5430f97b0 fix(cli): remove confusion between {keep,ignore}-existing (#413)
Closes #390
2020-03-22 10:12:23 +01:00
Bogdan Chadkin
388acea074 refactor: migrate to import * as React from 'react' (#401)
Ref https://github.com/facebook/react/pull/18102
2020-02-23 17:22:54 +01:00
Michael Altamirano
96966ebaad docs: update CLI options + small website fix (#393)
* Add --keeping-existing option to CLI

* Update CLI readme with up-to-date options

* Add CLI arg dashes for --title-prop to CLI website docs
2020-02-03 22:47:31 +01:00
Manuel Bieh
f620bea926 docs(website): add SSR Setup to SVGR Inside section (#389) 2020-01-26 01:13:21 +01:00
Bogdan Chadkin
f734ddac8e feat: allow to provide custom index.js template (#378)
New index.js generator does not cover my cases.

1. need to add `// @flow` on top of the file
2. need to use named export

Both can be easily solved with indexTemplate option.

```
function indexTemplate(files) {
  const exportEntries = files.map(file => {
    const basename = path.basename(file, path.extname(file))
    return `export { ${basename} } from './${basename}'`
  })
  return '// @flow\n' + exportEntries.join('\n')
}

```
2020-01-17 14:11:51 +01:00
Dony Sukardi
61a7ddb7e6 docs(playground): display CopyFeedback dialog only once (#382) 2020-01-17 14:10:32 +01:00
Greg Bergé
c54c7091ca docs(website): fix copy paste
Closes #372
2019-12-27 14:30:15 +01:00
Greg Bergé
9222c790a9 docs(website): fix query in SSR 2019-12-26 11:46:11 +01:00
Greg Bergé
3d56b1a76a docs(website): fix event transform tracking 2019-12-26 10:49:32 +01:00
Greg Bergé
318d5f0b3f docs(playground): persist changes in URL 2019-12-25 16:38:37 +01:00