rsnext/packages/next/build
Steven c35b01a631
Omit svg static imports if custom webpack config is defined (#26281)
This PR does a couple things:

1. Omit svg static imports if the user has defined custom webpack config with svg rule
2. Change TS type to `any` for svg imports to avoid conflicts with other plugins

The idea is that some users want to use `next/image` with static imports for most image types but not for svg and instead inline those images with a plugin.

- Fixes #25950  
- Fixes #26130 
- Fixes #26176 
- Fixes #26196 
- Fixes #26067 


## Bug

- [x] Related issues linked using Fixes #26130 
- [x] Integration tests added
2021-06-18 00:40:22 +00:00
..
babel Update to latest TypeScript version and de-dupe versions (#26285) 2021-06-17 17:43:25 -05:00
output Upgrade eslint to the latest version (#24377) 2021-04-25 18:34:36 +00:00
polyfills Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
profiler Added no-shadow rule to eslint (#13645) 2020-06-01 21:00:22 +00:00
webpack Add errors for invalid placeholder=blur usage (#25953) 2021-06-10 18:51:35 +00:00
compiler.ts Update to latest TypeScript version and de-dupe versions (#26285) 2021-06-17 17:43:25 -05:00
entries.ts performance improvement of static generation (#25035) 2021-05-17 12:04:06 +00:00
generate-build-id.ts Update err.sh links to use nextjs.org/docs/messages instead (#23353) 2021-03-29 10:25:00 +02:00
index.ts Add lint checking events (#26089) 2021-06-14 20:31:40 -05:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
spinner.ts [Feature] Progress bar for static build (#15297) 2020-08-04 09:58:23 +02:00
utils.ts add experimental.gzipSize flag which allows to switch to uncompressed sizes (#25028) 2021-05-14 16:29:49 +02:00
webpack-config.ts Omit svg static imports if custom webpack config is defined (#26281) 2021-06-18 00:40:22 +00:00
write-build-id.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00