mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: tree shaking
This commit is contained in:
parent
f430c7bc26
commit
069a52f0ba
3 changed files with 8 additions and 7 deletions
3
.babelrc
3
.babelrc
|
|
@ -3,8 +3,9 @@
|
|||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"modules": false,
|
||||
"targets": {
|
||||
"chrome": "67"
|
||||
"esmodules": true
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2016",
|
||||
"outDir": "dist",
|
||||
"moduleResolution": "Node",
|
||||
"module": "ESNext",
|
||||
"target": "ESNext",
|
||||
"jsx": "react",
|
||||
"allowJs": true,
|
||||
"module": "commonjs",
|
||||
"strict": true,
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["dom", "es2017.object", "es2016"],
|
||||
"baseUrl": ".",
|
||||
"experimentalDecorators": true,
|
||||
"outDir": "dist",
|
||||
"paths": {
|
||||
"*": ["src/*", "packages/*"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,6 +81,8 @@ module.exports = {
|
|||
cacheDirectory: true,
|
||||
},
|
||||
include: [srcPath, packagesPath],
|
||||
exclude: /node_modules/,
|
||||
sideEffects: false,
|
||||
},
|
||||
{
|
||||
test: /\.scss$/,
|
||||
|
|
|
|||
Loading…
Reference in a new issue