Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove old traces of next/data experiment #20678

Merged
merged 1 commit into from
Jan 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 0 additions & 65 deletions packages/next/build/babel/plugins/next-data.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ export default async function getBaseWebpackConfig(
'error-loader',
'next-babel-loader',
'next-client-pages-loader',
'next-data-loader',
'next-serverless-loader',
'noop-loader',
'next-plugin-loader',
Expand Down
16 changes: 2 additions & 14 deletions packages/next/build/webpack/loaders/next-babel-loader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import babelLoader from './babel-loader/src/index'
import hash from 'next/dist/compiled/string-hash'
import { basename, join } from 'path'
import { join } from 'path'
import * as Log from '../../output/log'
import babelLoader from './babel-loader/src/index'

// increment 'o' to invalidate cache
// eslint-disable-next-line no-useless-concat
Expand Down Expand Up @@ -149,17 +148,6 @@ const customBabelLoader = babelLoader((babel) => {
options.plugins.push(diallowExportAll)
}

if (isServer && source.indexOf('next/data') !== -1) {
const nextDataPlugin = babel.createConfigItem(
[
require('../../babel/plugins/next-data'),
{ key: basename(filename) + '-' + hash(filename) },
],
{ type: 'plugin' }
)
options.plugins.push(nextDataPlugin)
}

// If the file has `module.exports` we have to transpile commonjs because Babel adds `import` statements
// That break webpack, since webpack doesn't support combining commonjs and esmodules
if (source.indexOf('module.exports') !== -1) {
Expand Down
15 changes: 0 additions & 15 deletions packages/next/build/webpack/loaders/next-data-loader.ts

This file was deleted.