Fix some webpack 5 deprecation warnings (#15797)
- Use latest terser version (still 1 warning in the stable version which is an open PR) - Add emitOnErrors instead of noEmitOnErrors - Added trace-deprecations for Next.js core development
Showing
... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
"publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre --skip-questions", | "publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre --skip-questions", | ||
"publish-stable": "lerna version --force-publish", | "publish-stable": "lerna version --force-publish", | ||
"lint-staged": "lint-staged", | "lint-staged": "lint-staged", | ||
"next": "node packages/next/dist/bin/next", | "next": "node --trace-deprecation packages/next/dist/bin/next", | ||
"debug": "node --inspect packages/next/dist/bin/next" | "debug": "node --inspect packages/next/dist/bin/next" | ||
}, | }, | ||
"pre-commit": "lint-staged", | "pre-commit": "lint-staged", | ||
... | ... |
想要评论请 注册 或 登录