No description
Find a file
Dale Bustad c2dfe40296
Babel fast mode (#23760)
@timneutkens it'd be great to get your input.

These changes introduce a new Babel loader that eliminates much of the existing overhead, resulting in better HMR speeds. 
 Multithreading is still in flight, and may be omitted if speed improvements end up being negligible.  For now, the new loader is hidden behind an `experimental` flag.

Items to be completed before this PR is ready to merge:

- [x] reconfigure `ncc` to precompile the parts of `@babel/core` and `@babel/traverse` that we're accessing directly
- [x] change `@babel/core/...` imports to `ncc`ed version
- [x] ~~measure multithreading (not currently pushed) functionality, and include the functionality depending on the results~~ I'll open a separate PR for this
- [x] ensure TypeScript is happy with all imports as final step (`--no-verify` was used to bypass)

There will be two follow-up PRs:
- loader support for projects with custom `.babelrc`
- multithreaded loader (should the change we warranted after measurement)
2021-04-08 12:03:02 +00:00
.github Add PR template 2021-03-19 09:59:26 +01:00
.vscode Check if parentspan is provided in profiler (#22061) 2021-02-12 11:17:38 +01:00
bench Telemetry-compatible tracing (#22713) 2021-03-10 21:00:20 +00:00
docs Fix upgrading broken link (#23785) 2021-04-08 10:15:37 +00:00
errors Update webpack5.md 2021-03-29 15:22:05 +02:00
examples Fixed issue accessing index page of "with-reason-relay" example (#23780) 2021-04-07 19:18:56 +00:00
packages Babel fast mode (#23760) 2021-04-08 12:03:02 +00:00
test Ensure no-op export returns without error (#23752) 2021-04-06 17:12:23 +00:00
.eslintignore Temporarily remove experimental ESLint integration (#23521) 2021-03-30 08:26:35 +00:00
.eslintrc.json Remove unused variable (#13716) 2020-06-03 11:58:58 -04:00
.gitignore Ignore emacs lockfiles (#20497) 2020-12-29 16:12:36 +00:00
.npmrc Remove version prefix 2018-10-02 01:35:56 +02:00
.prettierignore feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
.prettierignore_staged feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
.prettierrc.json Prettier trailingComma default value to es5 since 2.0 (#14391) 2020-06-22 13:25:24 +02:00
azure-pipelines.yml Add pr section to azure config (#20758) 2021-01-05 01:41:42 +00:00
check-examples.sh Ensure all examples are MIT licensed (#16691) 2020-08-29 22:32:35 -04:00
check-pre-compiled.sh feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
CODE_OF_CONDUCT.md Update Code of Conduct email address (#12108) 2020-04-22 16:27:24 +02:00
contributing.md Consistent use of colons in contributing docs (#23260) 2021-03-22 15:46:07 +01:00
jest.config.js Upgrade jest-worker (#23077) 2021-03-16 21:08:35 +00:00
lerna.json v10.1.4-canary.2 2021-04-06 12:26:23 -05:00
license.md Update license year for all packages 2021-01-11 11:12:19 +01:00
lint-staged.config.js Update browserslist/caniuse-lite (#13605) 2020-05-31 19:37:01 +00:00
package.json Upgrade jest-worker (#23077) 2021-03-16 21:08:35 +00:00
publish-release.sh Make sure to exit publish script with correct code (#10310) 2020-01-28 14:03:32 -05:00
readme.md Monorepo (#5341) 2018-10-01 01:02:10 +02:00
release-stats.sh Update release stats workflow (#17580) 2020-10-05 09:32:12 +00:00
release.js Remove common PR title prefixes 2020-08-07 09:34:50 +02:00
run-tests.js Upgrade jest-worker (#23077) 2021-03-16 21:08:35 +00:00
SECURITY.md Create SECURITY.md 2020-07-13 19:25:08 +02:00
skip-docs-change.js Update CI docs change diff check (#21558) 2021-01-26 14:34:30 -06:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00
test-pnp.sh Temporarily remove experimental ESLint integration (#23521) 2021-03-30 08:26:35 +00:00
UPGRADING.md Move upgrading guide to /docs (#10727) 2020-02-28 23:46:18 +01:00
vercel.json Silence GH Comments for Preview URLs (#18766) 2020-11-03 21:59:47 +00:00
yarn.lock Babel fast mode (#23760) 2021-04-08 12:03:02 +00:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Community

The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects.

To chat with other community members you can join the Next.js Discord.

Our Code of Conduct applies to all Next.js community channels.

Contributing

Please see our contributing.md.

Authors