build: remove packages

This commit is contained in:
EnixCoda 2020-04-04 00:53:01 +08:00
parent 78d6b597cf
commit 07c43b2458
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
3 changed files with 3 additions and 23 deletions

View file

@ -1,19 +0,0 @@
{
"compilerOptions": {
"jsx": "react",
"target": "es2017",
"experimentalDecorators": true,
"baseUrl": "./",
"module": "commonjs",
"paths": {
"*" : ["src/*", "packages/*"]
}
},
"exclude": [
"node_modules",
],
"include": [
"src/**/*",
"packages/**/*",
]
}

View file

@ -9,7 +9,7 @@
"baseUrl": ".",
"outDir": "dist",
"paths": {
"*": ["src/*", "packages/*"]
"*": ["src/*"]
}
},
"include": ["src"]

View file

@ -7,7 +7,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
const srcPath = path.resolve(__dirname, 'src')
const packagesPath = path.resolve(__dirname, 'packages')
const plugins = [
new CopyWebpackPlugin([
@ -70,7 +69,7 @@ module.exports = {
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
modules: [srcPath, packagesPath, 'node_modules'],
modules: [srcPath, 'node_modules'],
},
module: {
rules: [
@ -80,7 +79,7 @@ module.exports = {
options: {
cacheDirectory: true,
},
include: [srcPath, packagesPath],
include: [srcPath],
exclude: /node_modules/,
sideEffects: false,
},