diff --git a/packages/atag/package.json b/packages/atag/package.json index 81afd26e0a..3a7d225892 100644 --- a/packages/atag/package.json +++ b/packages/atag/package.json @@ -51,8 +51,9 @@ "puppeteer": "^1.11.0", "raw-loader": "^0.5.1", "rimraf": "^2.6.2", + "rollup": "^1.1.2", "url-loader": "^1.1.1", - "webpack": "^4.3.0", + "webpack": "~4.2.0", "webpack-bundle-analyzer": "^2.12.0", "webpack-cli": "^3.1.1", "webpack-dev-server": "^3.1.1", diff --git a/packages/sfc-runtime/package.json b/packages/sfc-runtime/package.json index d145c4a757..b119664082 100644 --- a/packages/sfc-runtime/package.json +++ b/packages/sfc-runtime/package.json @@ -1,18 +1,12 @@ { "name": "sfc-runtime", "version": "0.7.3", - "main": "lib/index.js", + "main": "src/index.js", "description": "SFC DSL Runtime", "files": [ - "dist", "lib", "src" ], - "scripts": { - "start": "NODE_ENV=development webpack-dev-server --config webpack.config.js", - "build": "NODE_ENV=production webpack --config webpack.config.js", - "prepublish": "npm run build" - }, "repository": { "type": "git", "url": "git+https://github.com/alibaba/rax.git" @@ -25,13 +19,6 @@ "uppercamelcase": "^3.0.0" }, "devDependencies": { - "@babel/core": "^7.0.0-rc.1", - "@babel/preset-env": "^7.0.0-rc.1", - "babel-loader": "^8.0.0-beta.4", - "rax-test-renderer": "^0.6.5", - "rax": "^0.6.5", - "webpack": "^4.8.3", - "webpack-cli": "^3.1.1", - "webpack-dev-server": "^3.1.4" + "rax": "^0.6.5" } } diff --git a/packages/sfc-runtime/webpack.config.js b/packages/sfc-runtime/webpack.config.js deleted file mode 100644 index 6d79cb028a..0000000000 --- a/packages/sfc-runtime/webpack.config.js +++ /dev/null @@ -1,48 +0,0 @@ -const webpack = require('webpack'); - -const config = { - mode: process.env.NODE_ENV || 'development', - entry: { - 'sfc-runtime': require.resolve('./src') - }, - output: { - libraryTarget: 'commonjs2' - }, - module: { - rules: [ - { - test: /\.js$/, - loader: 'babel-loader', - options: { - presets: [ - require('@babel/preset-env') - ] - } - } - ] - }, - externals: [ - function(context, request, callback) { - if (/^@core\//.test(request)) { - return callback(null, `${request}`); - } - callback(); - } - ], - plugins: [ - new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify( - process.env.NODE_ENV || 'development' - ) - }) - ], - devServer: { - port: 8005, - hot: false, - inline: false - } -}; - -module.exports = new Promise((resolve, reject) => { - resolve(config); -});