提交 e8095c0e 编写于 作者: T Tim Neutkens 提交者: Joe Haddad

Remove cjs file (#6590)

上级 dd60199c
...@@ -12,7 +12,7 @@ import { ReactLoadablePlugin } from './webpack/plugins/react-loadable-plugin' ...@@ -12,7 +12,7 @@ import { ReactLoadablePlugin } from './webpack/plugins/react-loadable-plugin'
import { SERVER_DIRECTORY, REACT_LOADABLE_MANIFEST, CLIENT_STATIC_FILES_RUNTIME_WEBPACK, CLIENT_STATIC_FILES_RUNTIME_MAIN } from 'next-server/constants' import { SERVER_DIRECTORY, REACT_LOADABLE_MANIFEST, CLIENT_STATIC_FILES_RUNTIME_WEBPACK, CLIENT_STATIC_FILES_RUNTIME_MAIN } from 'next-server/constants'
import { NEXT_PROJECT_ROOT, NEXT_PROJECT_ROOT_NODE_MODULES, NEXT_PROJECT_ROOT_DIST_CLIENT, PAGES_DIR_ALIAS, DOT_NEXT_ALIAS } from '../lib/constants' import { NEXT_PROJECT_ROOT, NEXT_PROJECT_ROOT_NODE_MODULES, NEXT_PROJECT_ROOT_DIST_CLIENT, PAGES_DIR_ALIAS, DOT_NEXT_ALIAS } from '../lib/constants'
import AutoDllPlugin from 'autodll-webpack-plugin' import AutoDllPlugin from 'autodll-webpack-plugin'
import TerserPlugin from './webpack/plugins/terser-webpack-plugin/src/cjs.js' import {TerserPlugin} from './webpack/plugins/terser-webpack-plugin/src/index'
import { ServerlessPlugin } from './webpack/plugins/serverless-plugin' import { ServerlessPlugin } from './webpack/plugins/serverless-plugin'
import { WebpackEntrypoints } from './entries' import { WebpackEntrypoints } from './entries'
type ExcludesFalse = <T>(x: T | false) => x is T type ExcludesFalse = <T>(x: T | false) => x is T
......
const plugin = require('./index');
module.exports = plugin.default;
...@@ -12,7 +12,7 @@ const warningRegex = /\[.+:([0-9]+),([0-9]+)\]/; ...@@ -12,7 +12,7 @@ const warningRegex = /\[.+:([0-9]+),([0-9]+)\]/;
const JS_REGEX = /\.m?js$/ const JS_REGEX = /\.m?js$/
class TerserPlugin { export class TerserPlugin {
constructor(options = {}) { constructor(options = {}) {
const { const {
terserOptions = {}, terserOptions = {},
...@@ -306,5 +306,3 @@ class TerserPlugin { ...@@ -306,5 +306,3 @@ class TerserPlugin {
}); });
} }
} }
export default TerserPlugin;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册