language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
vercel
next.js
0eab07b7e82b03db685cf784c42340069d330b2f.json
Add automatic TypeScript setup (#7125) * replace fkill with tree-kill
packages/next/lib/verifyTypeScriptSetup.ts
@@ -0,0 +1,260 @@ +import fs from 'fs' +import os from 'os' +import path from 'path' +import chalk from 'chalk' +import { promisify } from 'util' +import { recursiveReadDir } from './recursive-readdir' +import resolve from 'next/dist/compiled/resolve/index.js' + +const exists = promisify(fs.exists) +const writeFile = p...
true
Other
vercel
next.js
0eab07b7e82b03db685cf784c42340069d330b2f.json
Add automatic TypeScript setup (#7125) * replace fkill with tree-kill
packages/next/server/next-dev-server.js
@@ -7,6 +7,7 @@ import ErrorDebug from './error-debug' import AmpHtmlValidator from 'amphtml-validator' import { ampValidation } from '../build/output/index' import * as Log from '../build/output/log' +import { verifyTypeScriptSetup } from '../lib/verifyTypeScriptSetup' const React = require('react') @@ -73,6 +...
true
Other
vercel
next.js
0eab07b7e82b03db685cf784c42340069d330b2f.json
Add automatic TypeScript setup (#7125) * replace fkill with tree-kill
test/integration/page-extensions/pages/hmr/some-page.tsx
@@ -1,18 +1,18 @@ import React from 'react' -if(typeof window !== 'undefined' && !window['HMR_RANDOM_NUMBER']) { - window['HMR_RANDOM_NUMBER'] = Math.random() +if (typeof window !== 'undefined' && !(window as any).HMR_RANDOM_NUMBER) { + (window as any).HMR_RANDOM_NUMBER = Math.random() } export default class C...
true
Other
vercel
next.js
0eab07b7e82b03db685cf784c42340069d330b2f.json
Add automatic TypeScript setup (#7125) * replace fkill with tree-kill
test/integration/tsconfig-verifier/pages/index.tsx
@@ -0,0 +1,5 @@ +const blah: boolean = false + +export default () => ( + <h3>Hello TypeScript</h3> +)
true
Other
vercel
next.js
0eab07b7e82b03db685cf784c42340069d330b2f.json
Add automatic TypeScript setup (#7125) * replace fkill with tree-kill
test/integration/tsconfig-verifier/test/index.test.js
@@ -0,0 +1,67 @@ +/* eslint-env jest */ +/* global jasmine */ +import path from 'path' +import { + exists, + remove, + readFile, + readJSON, + writeJSON +} from 'fs-extra' + +import { + launchApp, + findPort, + killApp, + renderViaHTTP +} from 'next-test-utils' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 *...
true
Other
vercel
next.js
0eab07b7e82b03db685cf784c42340069d330b2f.json
Add automatic TypeScript setup (#7125) * replace fkill with tree-kill
test/lib/next-test-utils.js
@@ -6,7 +6,7 @@ import path from 'path' import getPort from 'get-port' import spawn from 'cross-spawn' import { readFileSync, writeFileSync, existsSync, unlinkSync } from 'fs' -import fkill from 'fkill' +import treeKill from 'tree-kill' // `next` here is the symlink in `test/node_modules/next` which points to the...
true
Other
vercel
next.js
0eab07b7e82b03db685cf784c42340069d330b2f.json
Add automatic TypeScript setup (#7125) * replace fkill with tree-kill
yarn.lock
@@ -2035,14 +2035,6 @@ agentkeepalive@^3.4.1: dependencies: humanize-ms "^1.2.1" -aggregate-error@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-1.0.0.tgz#888344dad0220a72e3af50906117f48771925fac" - integrity sha1-iINE2tAiCnLjr1CQYRf0h3GSX6w= - depende...
true
Other
vercel
next.js
150234284c467b9d1f34e7f773f5eab90b436eee.json
Add initial docs for TypeScript (#7169) * Add initial docs for typescript * Update packages/next/README.md Co-Authored-By: timneutkens <tim@timneutkens.nl> * Update docs * Update packages/next/README.md * Update packages/next/README.md * Update README.md
packages/next/README.md
@@ -75,6 +75,8 @@ - [One Level Lower](#one-level-lower) - [Summary](#summary) - [Browser support](#browser-support) +- [Typescript](#typescript) + - [Exported types](#exported-types) - [AMP Support](#amp-support) - [Static HTML export](#static-html-export) - [Usage](#usage) @@ -1480,12 +1482,12 @@ This...
true
Other
vercel
next.js
150234284c467b9d1f34e7f773f5eab90b436eee.json
Add initial docs for TypeScript (#7169) * Add initial docs for typescript * Update packages/next/README.md Co-Authored-By: timneutkens <tim@timneutkens.nl> * Update docs * Update packages/next/README.md * Update packages/next/README.md * Update README.md
packages/next/types/index.d.ts
@@ -1,6 +1,10 @@ import React from 'react' import { NextPageContext, NextComponentType } from 'next-server/dist/lib/utils'; +/// <reference types="node" /> +/// <reference types="react" /> +/// <reference types="react-dom" /> + // Extend the React types with missing properties declare module 'react' { // <html...
true
Other
vercel
next.js
e0c35458296370ff8de55ae02662069342e1c9c9.json
Remove components from client router (#7281)
packages/next/client/router.ts
@@ -16,7 +16,7 @@ type SingletonRouterBase = { export { Router } -export type PublicRouterInstance = BaseRouter & Pick<Router, | 'components' | 'push' | 'replace' | 'reload' | 'back' | 'prefetch' | 'beforePopState'> & { +export type PublicRouterInstance = BaseRouter & Pick<Router, | 'push' | 'replace' | 'reload' |...
false
Other
vercel
next.js
1c20a9bfdd3fc913a42037d32f038ac83d2aad1e.json
Add example with babel-plugin-react-css-modules (#7219)
examples/with-react-css-modules/.babelrc
@@ -0,0 +1,14 @@ +{ + "presets": [ + "next/babel" + ], + "plugins": [ + [ + "react-css-modules", + { + "exclude": "node_modules", + "generateScopedName": "[local]_[hash:base64:5]" + } + ] + ] +} \ No newline at end of file
true
Other
vercel
next.js
1c20a9bfdd3fc913a42037d32f038ac83d2aad1e.json
Add example with babel-plugin-react-css-modules (#7219)
examples/with-react-css-modules/README.md
@@ -0,0 +1,44 @@ +# react-css-modules example + +## How to use + +### Using `create-next-app` + +Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example: + +```bash +npx crea...
true
Other
vercel
next.js
1c20a9bfdd3fc913a42037d32f038ac83d2aad1e.json
Add example with babel-plugin-react-css-modules (#7219)
examples/with-react-css-modules/next.config.js
@@ -0,0 +1,9 @@ +const withCSS = require('@zeit/next-css') + +module.exports = withCSS({ + cssModules: true, + cssLoaderOptions: { + importLoaders: 1, + localIdentName: '[local]_[hash:base64:5]' + } +})
true
Other
vercel
next.js
1c20a9bfdd3fc913a42037d32f038ac83d2aad1e.json
Add example with babel-plugin-react-css-modules (#7219)
examples/with-react-css-modules/package.json
@@ -0,0 +1,20 @@ +{ + "name": "with-react-css-modules", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "dev": "next", + "build": "next build", + "start": "next start" + }, + "author": "Samciu", + "license": "ISC", + "dependencies": { + "@zeit/next-css": "^1.0.1", ...
true
Other
vercel
next.js
1c20a9bfdd3fc913a42037d32f038ac83d2aad1e.json
Add example with babel-plugin-react-css-modules (#7219)
examples/with-react-css-modules/pages/index.css
@@ -0,0 +1,4 @@ +.example{ + font-size: 36px; + background: #999999; +} \ No newline at end of file
true
Other
vercel
next.js
1c20a9bfdd3fc913a42037d32f038ac83d2aad1e.json
Add example with babel-plugin-react-css-modules (#7219)
examples/with-react-css-modules/pages/index.js
@@ -0,0 +1,8 @@ +import React from 'react' +import './index.css' + +export default () => ( + <div styleName='example'> + This is an example with react-css-modules. + </div> +)
true
Other
vercel
next.js
5782651e92ef07845e9d251981ac3ba2ced27e11.json
Fix FOUC issue on with-fela example (#7229)
examples/with-ant-design-less/next.config.js
@@ -17,6 +17,6 @@ if (typeof require !== 'undefined') { module.exports = withLess({ lessLoaderOptions: { javascriptEnabled: true, - modifyVars: themeVariables // make your antd custom effective - } + modifyVars: themeVariables, // make your antd custom effective + }, })
true
Other
vercel
next.js
5782651e92ef07845e9d251981ac3ba2ced27e11.json
Fix FOUC issue on with-fela example (#7229)
examples/with-fela/FelaProvider.js
@@ -1,23 +1,13 @@ /* eslint-disable */ import { Component } from 'react' -import PropTypes from 'prop-types' - import { RendererProvider } from 'react-fela' import getFelaRenderer from './getFelaRenderer' -const clientRenderer = getFelaRenderer() +const fallbackRenderer = getFelaRenderer() export default class...
true
Other
vercel
next.js
5782651e92ef07845e9d251981ac3ba2ced27e11.json
Fix FOUC issue on with-fela example (#7229)
examples/with-fela/pages/_app.js
@@ -0,0 +1,26 @@ +import App, { Container } from 'next/app' +import React from 'react' +import FelaProvider from '../FelaProvider' + +export default class MyApp extends App { + static async getInitialProps ({ Component, ctx }) { + let pageProps = {} + + if (Component.getInitialProps) { + pageProps = await C...
true
Other
vercel
next.js
5782651e92ef07845e9d251981ac3ba2ced27e11.json
Fix FOUC issue on with-fela example (#7229)
examples/with-fela/pages/_document.js
@@ -1,23 +1,21 @@ import Document, { Head, Main, NextScript } from 'next/document' import { renderToSheetList } from 'fela-dom' - -import FelaProvider from '../FelaProvider' import getFelaRenderer from '../getFelaRenderer' export default class MyDocument extends Document { - static getInitialProps ({ renderPage ...
true
Other
vercel
next.js
5782651e92ef07845e9d251981ac3ba2ced27e11.json
Fix FOUC issue on with-fela example (#7229)
examples/with-fela/pages/index.js
@@ -1,7 +1,5 @@ import { useFela, FelaComponent } from 'react-fela' -import FelaProvider from '../FelaProvider' - const Container = ({ children }) => ( <FelaComponent style={{ @@ -36,10 +34,8 @@ function Title ({ children, size = 24 }) { } export default () => ( - <FelaProvider> - <Container> - ...
true
Other
vercel
next.js
5782651e92ef07845e9d251981ac3ba2ced27e11.json
Fix FOUC issue on with-fela example (#7229)
examples/with-ioc/jest.config.js
@@ -1,4 +1,4 @@ module.exports = { setupFiles: ['<rootDir>/jest.setup.js'], - testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'] + testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'], }
true
Other
vercel
next.js
5782651e92ef07845e9d251981ac3ba2ced27e11.json
Fix FOUC issue on with-fela example (#7229)
examples/with-kea/store.js
@@ -2,7 +2,7 @@ import { keaReducer } from 'kea' import { createStore, compose, combineReducers } from 'redux' const reducers = combineReducers({ - kea: keaReducer('kea') + kea: keaReducer('kea'), }) const reduxDevTools =
true
Other
vercel
next.js
e61c1952c8beb591e07b9360585927491bf446aa.json
Add test for invalid ref in Link (#7266)
test/integration/preload-viewport/pages/invalid-ref.js
@@ -0,0 +1,16 @@ +import React from 'react' +import Link from 'next/link' + +class Button extends React.Component { + render () { + return <button {...this.props}>Click me</button> + } +} + +export default () => ( + <div> + <Link href='/another'> + <Button id='btn-link' /> + </Link> + </div> +)
true
Other
vercel
next.js
e61c1952c8beb591e07b9360585927491bf446aa.json
Add test for invalid ref in Link (#7266)
test/integration/preload-viewport/test/index.test.js
@@ -36,6 +36,7 @@ describe('Prefetching Links in viewport', () => { let browser try { browser = await webdriver(appPort, '/') + await waitFor(2 * 1000) const links = await browser.elementsByCss('link[rel=preload]') let found = false @@ -57,7 +58,7 @@ describe('Prefetching Links in ...
true
Other
vercel
next.js
948948f6be8e65f902180b94795db77d592b08b9.json
Fix application output (#7264)
packages/next/build/output/store.ts
@@ -36,7 +36,9 @@ store.subscribe(state => { if (state.bootstrap) { Log.wait('starting the development server ...') - Log.info(`waiting on ${state.appUrl!} ...`) + if (state.appUrl) { + Log.info(`waiting on ${state.appUrl} ...`) + } return } @@ -67,14 +69,14 @@ store.subscribe(state =>...
false
Other
vercel
next.js
5ac54d7afb93040ae4c12b93888313450e1b4987.json
Remove reload and use only location.reload (#7257)
packages/next-server/lib/router/router.ts
@@ -146,40 +146,8 @@ export default class Router implements BaseRouter { } } - reload(route: string): Promise<void> { - return new Promise((resolve, reject) => { - delete this.components[route] - this.pageLoader.clearCache(route) - - if (route !== this.route) { - return resolve() - ...
false
Other
vercel
next.js
59039cfc22572c1073267ce9863cb90bc33c1d02.json
Fix default meta tag being added in AMP mode (#7248)
packages/next-server/server/render.tsx
@@ -21,7 +21,7 @@ import { import { getPageFiles, BuildManifest } from './get-page-files' import { AmpModeContext } from '../lib/amphtml-context' import optimizeAmp from './optimize-amp' -import { isAmp } from '../lib/amp'; +import { isAmp } from '../lib/amp' function noRouter() { const message = 'No router in...
true
Other
vercel
next.js
59039cfc22572c1073267ce9863cb90bc33c1d02.json
Fix default meta tag being added in AMP mode (#7248)
packages/next/pages/_document.tsx
@@ -98,7 +98,7 @@ export class Head extends Component<OriginProps> { return null } - return files.map((file) => { + return files.map((file: string) => { // Only render .css files here if (!/\.css$/.exec(file)) { return null @@ -120,7 +120,7 @@ export class Head extends Compone...
true
Other
vercel
next.js
59039cfc22572c1073267ce9863cb90bc33c1d02.json
Fix default meta tag being added in AMP mode (#7248)
test/integration/amp-export-validation/test/index.test.js
@@ -43,9 +43,10 @@ describe('AMP Validation on Export', () => { },`) try { - const { stdout } = await runNextCommand(['export', appDir], { stdout: true }) + const { stdout, stderr } = await runNextCommand(['export', appDir], { stdout: true, stderr: true }) expect(stdout).toMatch(/warn.*The ...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
packages/next-server/lib/constants.ts
@@ -13,6 +13,7 @@ export const BLOCKED_PAGES = [ '/_document', '/_app', ] +export const CLIENT_PUBLIC_FILES_PATH = 'public' export const CLIENT_STATIC_FILES_PATH = 'static' export const CLIENT_STATIC_FILES_RUNTIME = 'runtime' export const CLIENT_STATIC_FILES_RUNTIME_PATH = `${CLIENT_STATIC_FILES_PATH}/${CLIEN...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
packages/next-server/server/lib/recursive-readdir-sync.ts
@@ -0,0 +1,25 @@ +import fs from 'fs' +import { join } from 'path' + +/** + * Recursively read directory + * @param {string[]=[]} arr This doesn't have to be provided, it's used for the recursion + * @param {string=dir`} rootDir Used to replace the initial path, only the relative path is left, it's faster than path.r...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
packages/next-server/server/next-server.ts
@@ -10,11 +10,15 @@ import { serveStatic } from './serve-static' import Router, { route, Route } from './router' import { isInternalUrl, isBlockedPage } from './utils' import loadConfig from './config' +import { recursiveReadDirSync } from './lib/recursive-readdir-sync' import { PHASE_PRODUCTION_SERVER, BUILD...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
packages/next/export/index.js
@@ -5,7 +5,7 @@ import mkdirpModule from 'mkdirp' import { resolve, join } from 'path' import { existsSync, readFileSync } from 'fs' import loadConfig from 'next-server/next-config' -import { PHASE_EXPORT, SERVER_DIRECTORY, PAGES_MANIFEST, CONFIG_FILE, BUILD_ID_FILE, CLIENT_STATIC_FILES_PATH } from 'next-server/cons...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
packages/next/server/next-dev-server.js
@@ -112,6 +112,11 @@ export default class DevServer extends Server { return routes } + // In development public files are not added to the router but handled as a fallback instead + generatePublicRoutes () { + return [] + } + _filterAmpDevelopmentScript (html, event) { if (event.code !== 'DISALL...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
packages/next/taskfile-babel.js
@@ -17,6 +17,9 @@ module.exports = function (task) { const output = transform(file.data, options) const ext = extname(file.base) + // Include declaration files as they are + if (file.base.endsWith('.d.ts')) return + // Replace `.ts|.tsx` with `.js` in files with an extension if (ext) { ...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/basic/pages/about.js
@@ -0,0 +1,3 @@ +export default () => ( + <div className='about-page'>About Page</div> +)
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/basic/public/about
@@ -0,0 +1 @@ +about \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/basic/public/data/data.txt
@@ -0,0 +1 @@ +data \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/basic/public/file
@@ -0,0 +1 @@ +test \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/basic/test/index.test.js
@@ -14,6 +14,7 @@ import errorRecovery from './error-recovery' import dynamic from './dynamic' import processEnv from './process-env' import typescript from './typescript' +import publicFolder from './public-folder' const context = {} jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 @@ -40,4 +41,5 @@ describe('B...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/basic/test/public-folder.js
@@ -0,0 +1,19 @@ +/* eslint-env jest */ +import { renderViaHTTP } from 'next-test-utils' + +export default (context) => { + describe('Public folder', () => { + it('should allow access to public files', async () => { + const data = await renderViaHTTP(context.appPort, '/data/data.txt') + expect(data).toBe(...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/export/public/about/data.txt
@@ -0,0 +1 @@ +data \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/export/public/query
@@ -0,0 +1 @@ +query \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/export/static/data/item.txt
@@ -0,0 +1 @@ +item \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/export/test/index.test.js
@@ -58,7 +58,7 @@ describe('Static Export', () => { await nextExport(appDir, { outdir: outNoTrailSlash }) nextConfig.restore() - context.server = await startStaticServer(join(appDir, 'out')) + context.server = await startStaticServer(outdir) context.port = context.server.address().port con...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/export/test/ssr.js
@@ -61,5 +61,20 @@ export default function (context) { // contains "404", so need to be specific here expect(html).not.toMatch(/404.*page.*not.*found/i) }) + + it('Should serve static files', async () => { + const data = await renderViaHTTP(context.port, '/static/data/item.txt') + expect...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/production/public/about
@@ -0,0 +1 @@ +about \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/production/public/data/data.txt
@@ -0,0 +1 @@ +data \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/production/public/file
@@ -0,0 +1 @@ +test \ No newline at end of file
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/production/test/index.test.js
@@ -268,6 +268,19 @@ describe('Production Usage', () => { expect(data).toBe('item') }) + it('Should allow access to public files', async () => { + const data = await renderViaHTTP(appPort, '/data/data.txt') + expect(data).toBe('data') + }) + + it('Should prioritize pages over public fil...
true
Other
vercel
next.js
74771bc5e4275696a37f83065d188838b76e21fc.json
Add support for /public (#7213)
test/integration/production/test/security.js
@@ -30,7 +30,12 @@ module.exports = (context) => { `/_next/:buildId/webpack/chunks/../../../info.json`, `/_next/:buildId/webpack/../../../info.json`, `/_next/../../../info.json`, - `/static/../../../info.json` + `/static/../../../info.json`, + `/static/../info.json`, + ...
true
Other
vercel
next.js
adbc1a88570cafa36df353fb64e4e914c878a864.json
Remove unnecessary type from LinkProps (#7233)
packages/next/client/link.tsx
@@ -43,7 +43,6 @@ function formatUrl(url: Url) { } type LinkProps = { - elRef: any, href: Url, as?: Url|undefined, replace?: boolean,
false
Other
vercel
next.js
75203eb8d2c1c8d646c25517fc14f571ce273e66.json
Fix missing injectCaller (#7223)
packages/next/build/webpack/loaders/next-babel-loader.ts
@@ -4,6 +4,7 @@ import { loader } from 'webpack' import { join, basename } from 'path' import loaderUtils from 'loader-utils' import cache from './next-babel-loader/cache' +import injectCaller from './next-babel-loader/injectCaller' import transform, { version as transformVersion } from './next-babel-loader/transfo...
true
Other
vercel
next.js
75203eb8d2c1c8d646c25517fc14f571ce273e66.json
Fix missing injectCaller (#7223)
packages/next/build/webpack/loaders/next-babel-loader/injectCaller.ts
@@ -0,0 +1,42 @@ +import * as babel from "@babel/core" + +export default function injectCaller (opts: any) { + if (!supportsCallerOption()) return opts; + + return Object.assign({}, opts, { + caller: Object.assign( + { + name: "babel-loader", + + // Webpack >= 2 supports ESM and dynamic import. ...
true
Other
vercel
next.js
2e8088e4473382873fc4a8f43e4277b6e5e3a8bc.json
Add stats to build tree (#7194) * Copy pretty-bytes instead of installing
packages/next/build/index.ts
@@ -20,9 +20,10 @@ import { getFileForPage, getSpecifiedPages, printTreeView, + getPageInfo, } from './utils' import getBaseWebpackConfig from './webpack-config' -import { exportManifest } from './webpack/plugins/chunk-graph-plugin' +import { exportManifest, getPageChunks } from './webpack/plugins/chunk-gra...
true
Other
vercel
next.js
2e8088e4473382873fc4a8f43e4277b6e5e3a8bc.json
Add stats to build tree (#7194) * Copy pretty-bytes instead of installing
packages/next/build/utils.ts
@@ -3,9 +3,10 @@ import findUp from 'find-up' import fs from 'fs' import path from 'path' import { promisify } from 'util' - +import prettyBytes from '../lib/pretty-bytes' import { recursiveReadDir } from '../lib/recursive-readdir' +const fsStat = promisify(fs.stat) const fsExists = promisify(fs.exists) const f...
true
Other
vercel
next.js
2e8088e4473382873fc4a8f43e4277b6e5e3a8bc.json
Add stats to build tree (#7194) * Copy pretty-bytes instead of installing
packages/next/build/webpack-config.ts
@@ -23,13 +23,13 @@ import { ChunkGraphPlugin } from './webpack/plugins/chunk-graph-plugin' import ChunkNamesPlugin from './webpack/plugins/chunk-names-plugin' import { importAutoDllPlugin } from './webpack/plugins/dll-import' import { HashedChunkIdsPlugin } from './webpack/plugins/hashed-chunk-ids-plugin' -import {...
true
Other
vercel
next.js
2e8088e4473382873fc4a8f43e4277b6e5e3a8bc.json
Add stats to build tree (#7194) * Copy pretty-bytes instead of installing
packages/next/build/webpack/plugins/chunk-graph-plugin.ts
@@ -17,6 +17,45 @@ const manifest: { chunks: {}, } +const pageModules: StringDictionary = {} + +export function getPageChunks (page: string): { + external: Set<String>, + internal: Set<String>, +} | undefined { + if (!manifest.pages[page] && !pageModules[page]) return + + const external = new Set() // from no...
true
Other
vercel
next.js
2e8088e4473382873fc4a8f43e4277b6e5e3a8bc.json
Add stats to build tree (#7194) * Copy pretty-bytes instead of installing
packages/next/lib/pretty-bytes.ts
@@ -0,0 +1,73 @@ +/* +MIT License + +Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including withou...
true
Other
vercel
next.js
2776dc731c3c7e11e8619cd6eecd1621ea3bc7ff.json
Use intersection observer to preload in viewport (#7196) * Use intersection observer to preload links that are in viewport * Clean up names * Check for window before returning observer * update check for IntersectionObserver * Remove duplicate IntersectionObserver checks * Add test for prefetching link...
packages/next/client/link.tsx
@@ -43,25 +43,82 @@ function formatUrl(url: Url) { } type LinkProps = { + elRef: any, href: Url, as?: Url|undefined, replace?: boolean, - prefetch?: boolean, scroll?: boolean, shallow?: boolean, passHref?: boolean onError?: (error: Error) => void, } +let observer: IntersectionObserver +con...
true
Other
vercel
next.js
2776dc731c3c7e11e8619cd6eecd1621ea3bc7ff.json
Use intersection observer to preload in viewport (#7196) * Use intersection observer to preload links that are in viewport * Clean up names * Check for window before returning observer * update check for IntersectionObserver * Remove duplicate IntersectionObserver checks * Add test for prefetching link...
test/integration/preload-viewport/pages/another.js
@@ -0,0 +1 @@ +export default () => <p>Hello world</p>
true
Other
vercel
next.js
2776dc731c3c7e11e8619cd6eecd1621ea3bc7ff.json
Use intersection observer to preload in viewport (#7196) * Use intersection observer to preload links that are in viewport * Clean up names * Check for window before returning observer * update check for IntersectionObserver * Remove duplicate IntersectionObserver checks * Add test for prefetching link...
test/integration/preload-viewport/pages/first.js
@@ -0,0 +1 @@ +export default () => <p>Hello world</p>
true
Other
vercel
next.js
2776dc731c3c7e11e8619cd6eecd1621ea3bc7ff.json
Use intersection observer to preload in viewport (#7196) * Use intersection observer to preload links that are in viewport * Clean up names * Check for window before returning observer * update check for IntersectionObserver * Remove duplicate IntersectionObserver checks * Add test for prefetching link...
test/integration/preload-viewport/pages/index.js
@@ -0,0 +1,25 @@ +import Link from 'next/link' +import { useState } from 'react' + +export default () => { + const [href, setHref] = useState('/first') + + return ( + <div> + <a href='#scroll-to-me' id='scroll-to-another'>Scroll to another</a> + <button onClick={() => setHref('/another')}>Click me</butto...
true
Other
vercel
next.js
2776dc731c3c7e11e8619cd6eecd1621ea3bc7ff.json
Use intersection observer to preload in viewport (#7196) * Use intersection observer to preload links that are in viewport * Clean up names * Check for window before returning observer * update check for IntersectionObserver * Remove duplicate IntersectionObserver checks * Add test for prefetching link...
test/integration/preload-viewport/test/index.test.js
@@ -0,0 +1,100 @@ +/* eslint-env jest */ +/* global jasmine */ +import webdriver from 'next-webdriver' +import { join } from 'path' +import { + nextServer, + runNextCommand, + startApp, + stopApp, + waitFor +} from 'next-test-utils' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 + +const appDir = join(__dirna...
true
Other
vercel
next.js
a7d3be61ed2cf522aa1a746e5165822022b0205c.json
Fix wrong task name on watch for next/export files (#7204)
packages/next/taskfile.js
@@ -153,7 +153,7 @@ export default async function (task) { await task.watch('pages/**/*.+(js|ts|tsx)', 'pages') await task.watch('server/**/*.+(js|ts|tsx)', 'server') await task.watch('build/**/*.+(js|ts|tsx)', 'nextbuild') - await task.watch('export/**/*.+(js|ts|tsx)', 'nextexport') + await task.watch('expo...
false
Other
vercel
next.js
8cdd539f98ee30ada96ecc6b60c46417d69ea1bc.json
add theme to styled-components example (#7206)
examples/with-styled-components/README.md
@@ -45,4 +45,4 @@ now This example features how you use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are us...
true
Other
vercel
next.js
8cdd539f98ee30ada96ecc6b60c46417d69ea1bc.json
add theme to styled-components example (#7206)
examples/with-styled-components/pages/_app.js
@@ -0,0 +1,32 @@ +import App, { Container } from 'next/app' +import React from 'react' +import { ThemeProvider } from 'styled-components' + +const theme = { + colors: { + primary: '#0070f3' + } +} + +export default class MyApp extends App { + static async getInitialProps ({ Component, ctx }) { + let pageProps ...
true
Other
vercel
next.js
8cdd539f98ee30ada96ecc6b60c46417d69ea1bc.json
add theme to styled-components example (#7206)
examples/with-styled-components/pages/index.js
@@ -2,8 +2,8 @@ import React from 'react' import styled from 'styled-components' const Title = styled.h1` - color: red; font-size: 50px; + color: ${({ theme }) => theme.colors.primary}; ` export default () => <Title>My page</Title>
true
Other
vercel
next.js
f5969d29a6d4eb606247206cd4eedc6f682b9259.json
Restore package.json and yarn.lock to allow deploy (#9230)
.circleci/config.yml
@@ -38,7 +38,7 @@ commands: command: yarn install --frozen-lockfile --check-files - run: name: Install correct Chrome Driver version - command: yarn add chromedriver@76 -W + command: yarn add chromedriver@76 -W && git checkout yarn.lock package.json - run: google-ch...
false
Other
vercel
next.js
ab0a8647dc42c7866756000caf57ccc4d096e2df.json
API: Take multiple values into account for the query (#9196) * Take multiple values into account * make typescript happy
packages/next/next-server/server/api-utils.ts
@@ -119,7 +119,15 @@ export function getQueryParser({ url }: IncomingMessage) { const query: { [key: string]: string | string[] } = {} for (const [key, value] of params) { - query[key] = value + if (query[key]) { + if (Array.isArray(query[key])) { + ;(query[key] as string[]).push(v...
true
Other
vercel
next.js
ab0a8647dc42c7866756000caf57ccc4d096e2df.json
API: Take multiple values into account for the query (#9196) * Take multiple values into account * make typescript happy
test/integration/api-support/pages/api/query.js
@@ -0,0 +1,3 @@ +export default (req, res) => { + res.status(200).send(req.query) +}
true
Other
vercel
next.js
ab0a8647dc42c7866756000caf57ccc4d096e2df.json
API: Take multiple values into account for the query (#9196) * Take multiple values into account * make typescript happy
test/integration/api-support/test/index.test.js
@@ -180,6 +180,23 @@ function runTests (serverless = false) { expect(data).toEqual({ message: 'Parsed body' }) }) + it('should return empty query object', async () => { + const data = await fetchViaHTTP(appPort, '/api/query', null, {}).then( + res => res.ok && res.json() + ) + expect(data).toEq...
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
.circleci/config.yml
@@ -36,6 +36,11 @@ commands: - run: name: Installing Dependencies command: yarn install --frozen-lockfile --check-files + - run: + name: Install correct Chrome Driver version + command: yarn add chromedriver@76 -W + - run: google-chrome --version + - run: ch...
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
package.json
@@ -81,7 +81,7 @@ "babel-jest": "24.8.0", "browserstack-local": "1.4.0", "cheerio": "0.22.0", - "chromedriver": "75.1.0", + "chromedriver": "76.0.1", "clone": "2.1.2", "coveralls": "3.0.3", "cross-spawn": "6.0.5",
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
packages/next/build/webpack-config.ts
@@ -724,6 +724,9 @@ export default async function getBaseWebpackConfig( 'process.env.__NEXT_EXPORT_TRAILING_SLASH': JSON.stringify( config.exportTrailingSlash ), + 'process.env.__NEXT_DEFER_SCRIPTS': JSON.stringify( + config.experimental.deferScripts + ), 'pr...
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
packages/next/next-server/server/config.ts
@@ -47,6 +47,7 @@ const defaultConfig: { [key: string]: any } = { profiling: false, publicDirectory: false, sprFlushToDisk: true, + deferScripts: false, }, future: { excludeDefaultMomentLocales: false,
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
packages/next/pages/_document.tsx
@@ -521,7 +521,8 @@ export class NextScript extends Component<OriginProps> { return ( <script - async + defer={process.env.__NEXT_DEFER_SCRIPTS as any} + async={!process.env.__NEXT_DEFER_SCRIPTS as any} key={bundle.file} src={`${assetPrefix}/_next/${enc...
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
test/integration/defer-scripts/next.config.js
@@ -0,0 +1,9 @@ +module.exports = { + onDemandEntries: { + // Make sure entries are not getting disposed. + maxInactiveAge: 1000 * 60 * 60 + }, + experimental: { + deferScripts: true + } +}
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
test/integration/defer-scripts/pages/index.js
@@ -0,0 +1 @@ +export default () => <h1>Hello World</h1>
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
test/integration/defer-scripts/test/index.test.js
@@ -0,0 +1,53 @@ +/* eslint-env jest */ +/* global jasmine */ +import { join } from 'path' +import { + nextServer, + runNextCommand, + startApp, + stopApp, + renderViaHTTP +} from 'next-test-utils' +import cheerio from 'cheerio' +const appDir = join(__dirname, '../') +let appPort +let server +let app +jasmine.DEFA...
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
test/integration/production/test/index.test.js
@@ -663,6 +663,24 @@ describe('Production Usage', () => { } }) + it('should have async on all script tags', async () => { + const html = await renderViaHTTP(appPort, '/') + const $ = cheerio.load(html) + let missing = false + + for (const script of $('script').toArray()) { + // application/j...
true
Other
vercel
next.js
211c84e1c90c69d787addd0edcb2dba473f5c411.json
allow NextScript to optionally defer javascript (#8980) * allow NextScript to optionally defer javascript * move defer options to experimental feature * combine defer flags into a single option * Update deferScripts to work with serverless target * Add test for defer and async property * Read the async ...
yarn.lock
@@ -4174,10 +4174,10 @@ chrome-trace-event@^1.0.2: dependencies: tslib "^1.9.0" -chromedriver@75.1.0: - version "75.1.0" - resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-75.1.0.tgz#edfef5d7a9b16b6f8a12ddb58cbac76ae52732fd" - integrity sha512-N2P0fg6FS4c+tTG0R7cCOD5qiVo+E6uAz6xVjmbZesYv1...
true
Other
vercel
next.js
2fcff3de49716e761d33ed0d45b0526ecf39fe0c.json
Update Babel dependencies (#9203) * Update Babel dependencies * Update sizes
packages/next/package.json
@@ -58,17 +58,17 @@ }, "dependencies": { "@ampproject/toolbox-optimizer": "1.1.1", - "@babel/core": "7.4.5", - "@babel/plugin-proposal-class-properties": "7.4.4", - "@babel/plugin-proposal-object-rest-spread": "7.4.4", + "@babel/core": "7.6.4", + "@babel/plugin-proposal-class-properties": "7.5...
true
Other
vercel
next.js
2fcff3de49716e761d33ed0d45b0526ecf39fe0c.json
Update Babel dependencies (#9203) * Update Babel dependencies * Update sizes
test/integration/size-limit/test/index.test.js
@@ -81,7 +81,7 @@ describe('Production response size', () => { ) // These numbers are without gzip compression! - expect(responseSizeKilobytes).toBeLessThanOrEqual(220) // Kilobytes + expect(responseSizeKilobytes).toBeLessThanOrEqual(221) // Kilobytes }) it('should not increase the overall res...
true
Other
vercel
next.js
2fcff3de49716e761d33ed0d45b0526ecf39fe0c.json
Update Babel dependencies (#9203) * Update Babel dependencies * Update sizes
yarn.lock
@@ -40,7 +40,34 @@ dependencies: "@babel/highlight" "^7.0.0" -"@babel/core@7.4.5", "@babel/core@^7.1.0": +"@babel/code-frame@^7.5.5": + version "7.5.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d" + integrity sha512-27d4lZoomVyo...
true
Other
vercel
next.js
4421448f03ca261722be0e8955e76a18be4ea541.json
Add `StrictMode` toggle (#9161) * Add StrictMode toggle * Rename option to reactStrictMode * Default to false initially
packages/next/build/webpack-config.ts
@@ -736,6 +736,9 @@ export default async function getBaseWebpackConfig( 'process.env.__NEXT_PRERENDER_INDICATOR': JSON.stringify( config.devIndicators.autoPrerender ), + 'process.env.__NEXT_STRICT_MODE': JSON.stringify( + config.reactStrictMode + ), ...(isSer...
true
Other
vercel
next.js
4421448f03ca261722be0e8955e76a18be4ea541.json
Add `StrictMode` toggle (#9161) * Add StrictMode toggle * Rename option to reactStrictMode * Default to false initially
packages/next/client/index.js
@@ -372,11 +372,19 @@ async function doRender ({ App, Component, props, err }) { appProps }) - // We catch runtime errors using componentDidCatch which will trigger renderError - renderReactElement( + const elem = ( <AppContainer> <App {...appProps} /> - </AppContainer>, + </AppContainer>...
true
Other
vercel
next.js
4421448f03ca261722be0e8955e76a18be4ea541.json
Add `StrictMode` toggle (#9161) * Add StrictMode toggle * Rename option to reactStrictMode * Default to false initially
packages/next/next-server/server/config.ts
@@ -53,6 +53,7 @@ const defaultConfig: { [key: string]: any } = { }, serverRuntimeConfig: {}, publicRuntimeConfig: {}, + reactStrictMode: false, } const experimentalWarning = execOnce(() => {
true
Other
vercel
next.js
be42300e1fe8bdbbdcc39d3538b2d9cb204f11f9.json
Ensure directory before flushing cache file (#9187) * Ensure directory before flushing cache iSSG file * Add test for prerender cache flush * Nest the dynamic route test one more level * update fetch for test * Update error check
packages/next/next-server/server/spr-cache.ts
@@ -5,7 +5,9 @@ import { promisify } from 'util' import { PrerenderManifest } from '../../build' import { PRERENDER_MANIFEST } from '../lib/constants' import { normalizePagePath } from './normalize-page-path' +import mkdirpOrig from 'mkdirp' +const mkdirp = promisify(mkdirpOrig) const readFile = promisify(fs.read...
true
Other
vercel
next.js
be42300e1fe8bdbbdcc39d3538b2d9cb204f11f9.json
Ensure directory before flushing cache file (#9187) * Ensure directory before flushing cache iSSG file * Add test for prerender cache flush * Nest the dynamic route test one more level * update fetch for test * Update error check
test/integration/prerender/pages/user/[user]/profile.js
@@ -0,0 +1,30 @@ +import React from 'react' +import Link from 'next/link' + +// eslint-disable-next-line camelcase +export async function unstable_getStaticParams () { + return [] +} + +// eslint-disable-next-line camelcase +export async function unstable_getStaticProps ({ params }) { + return { + props: { + ...
true
Other
vercel
next.js
be42300e1fe8bdbbdcc39d3538b2d9cb204f11f9.json
Ensure directory before flushing cache file (#9187) * Ensure directory before flushing cache iSSG file * Add test for prerender cache flush * Nest the dynamic route test one more level * update fetch for test * Update error check
test/integration/prerender/test/index.test.js
@@ -25,6 +25,7 @@ let appPort let buildId let distPagesDir let exportDir +let stderr const startServer = async (optEnv = {}) => { const scriptPath = join(appDir, 'server.js') @@ -264,6 +265,11 @@ const runTests = (dev = false) => { dataRoute: `/_next/data/${buildId}/blog/[post]/[comment].json`, ...
true
Other
vercel
next.js
f211b355399e6497c8682ff0e7cfb8b3d198ac48.json
Check Files during Install (#9182)
.circleci/config.yml
@@ -35,7 +35,7 @@ commands: steps: - run: name: Installing Dependencies - command: yarn install --frozen-lockfile + command: yarn install --frozen-lockfile --check-files yarn_lint: steps: - run: @@ -56,7 +56,7 @@ commands: - run: name: Run All Te...
true
Other
vercel
next.js
f211b355399e6497c8682ff0e7cfb8b3d198ac48.json
Check Files during Install (#9182)
azure-pipelines.yml
@@ -35,7 +35,7 @@ steps: displayName: Cache Yarn packages - script: | - yarn --frozen-lockfile --check-files + yarn install --frozen-lockfile --check-files displayName: 'Install dependencies' - script: |
true
Other
vercel
next.js
f211b355399e6497c8682ff0e7cfb8b3d198ac48.json
Check Files during Install (#9182)
package.json
@@ -9,7 +9,7 @@ "dev": "lerna run build --stream --parallel", "dev2": "while true; do yarn --check-files && yarn dev; done", "testonly": "jest", - "testall": "yarn check && yarn run testonly -- --ci --reporters=default --reporters=jest-junit --forceExit --runInBand", + "testall": "yarn run testonly...
true
Other
vercel
next.js
b96f1ae285fbe07b72b632e97d7240c0e0e0f92d.json
Add Purgecss to with-tailwindcss example (#9145) * Add Purgecss * Remove trailing comma * Fix linting errors * Update README.md * Add cssnano to PostCSS plugins * Use single quotes
examples/with-tailwindcss/README.md
@@ -1,6 +1,6 @@ # Tailwind CSS example -This is an example of how you can include a global stylesheet in a next.js webapp. +This is an example of using [Tailwind CSS](https://tailwindcss.com) in a Next.js project. ## How to use @@ -23,9 +23,7 @@ curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar ...
true
Other
vercel
next.js
b96f1ae285fbe07b72b632e97d7240c0e0e0f92d.json
Add Purgecss to with-tailwindcss example (#9145) * Add Purgecss * Remove trailing comma * Fix linting errors * Update README.md * Add cssnano to PostCSS plugins * Use single quotes
examples/with-tailwindcss/package.json
@@ -13,6 +13,7 @@ "react-dom": "^16.7.0" }, "devDependencies": { + "@fullhuman/postcss-purgecss": "^1.3.0", "autoprefixer": "^7.1.6", "cssnano": "^3.10.0", "postcss-easy-import": "^3.0.0",
true
Other
vercel
next.js
b96f1ae285fbe07b72b632e97d7240c0e0e0f92d.json
Add Purgecss to with-tailwindcss example (#9145) * Add Purgecss * Remove trailing comma * Fix linting errors * Update README.md * Add cssnano to PostCSS plugins * Use single quotes
examples/with-tailwindcss/postcss.config.js
@@ -2,6 +2,11 @@ module.exports = { plugins: [ require('postcss-easy-import'), require('tailwindcss'), - require('autoprefixer') + require('@fullhuman/postcss-purgecss')({ + content: ['./pages/**/*.js', './components/**/*.js'], + defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/...
true
Other
vercel
next.js
b96f1ae285fbe07b72b632e97d7240c0e0e0f92d.json
Add Purgecss to with-tailwindcss example (#9145) * Add Purgecss * Remove trailing comma * Fix linting errors * Update README.md * Add cssnano to PostCSS plugins * Use single quotes
examples/with-tailwindcss/styles/index.css
@@ -1,6 +1,8 @@ @import './button.css'; +/* purgecss start ignore */ @tailwind base; +/* purgecss end ignore */ @tailwind components; @tailwind utilities;
true
Other
vercel
next.js
4328eea3a7f0ea8ee93cd704bdec526f06a83ca6.json
Add WSL to Metadata (#9171)
packages/next/package.json
@@ -94,6 +94,7 @@ "fresh": "0.5.2", "ignore-loader": "0.1.2", "is-docker": "2.0.0", + "is-wsl": "2.1.1", "jest-worker": "24.9.0", "launch-editor": "2.2.1", "loader-utils": "1.2.3",
true