Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Apr 16, 2018
1 parent 176b408 commit 84f5cb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/tb-lavas-core/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ export default class LavasCore extends EventEmitter {
}

if (this.isProd) {
const ProdBuilder = import('./builder/prod-builder');
const ProdBuilder = require('./builder/prod-builder');
this.builder = new ProdBuilder(this);
}
else {
const DevBuilder = import('./builder/dev-builder');
const DevBuilder = require('./builder/dev-builder');
this.builder = new DevBuilder(this);

const MiddlewareComposer = import('./middleware-composer');
const MiddlewareComposer = require('./middleware-composer');
this.middlewareComposer = new MiddlewareComposer(this);
// expose express middleware factory function
this.expressMiddleware = this.middlewareComposer.express
Expand Down
6 changes: 3 additions & 3 deletions packages/tb-lavas-core/core/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export default class WebpackConfig {

// In dev mode, fix watchpack time problem.
if (this.isDev) {
const FriendlyErrorsPlugin = import('friendly-errors-webpack-plugin');
const TimeFixWebpackPlugin = import('./plugins/timefix-webpack-plugin');
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
const TimeFixWebpackPlugin = require('./plugins/timefix-webpack-plugin');

plugins = [
new TimeFixWebpackPlugin(),
Expand Down Expand Up @@ -274,7 +274,7 @@ export default class WebpackConfig {
else {
// Bundle analyzer.
if (bundleAnalyzerReport) {
const {BundleAnalyzerPlugin} = import('webpack-bundle-analyzer');
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
clientConfig.plugins.push(
new BundleAnalyzerPlugin(Object.assign({}, bundleAnalyzerReport)));
}
Expand Down
2 changes: 1 addition & 1 deletion packages/tb-lavas-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tb-lavas-core",
"version": "1.0.2-rc.0",
"version": "1.0.2-rc.1",
"description": "Lavas core implemented by Vue",
"main": "dist/index.js",
"files": [
Expand Down

0 comments on commit 84f5cb7

Please sign in to comment.