Skip to content

Commit

Permalink
fix: 忽略循环依赖warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xuasir committed Mar 19, 2021
1 parent 89630c1 commit fb837ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/plugin-cmd-roll-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@xus/plugin-cmd-roll-lib",
"version": "0.2.1",
"description": "a bundle for js ts react",
"main": "dist/index.js",
"main": "dist/index.cjs.js",
"typings": "dist/index.d.ts",
"keywords": [
"cli",
Expand Down Expand Up @@ -46,16 +46,16 @@
"rollup-plugin-dts": "^3.0.1",
"semver": "^7.3.4",
"terser": "^5.6.0",
"url": "^0.11.0"
"url": "^0.11.0",
"postcss-import": "^14.0.0",
"postcss-modules": "^4.0.0"
},
"devDependencies": {
"@types/clean-css": "^4.2.3",
"@types/less": "^3.0.2",
"@types/mime": "^2.0.3",
"@types/postcss-import": "^12.0.0",
"@types/sass": "^1.16.0",
"@types/semver": "^7.3.4",
"postcss-import": "^14.0.0",
"postcss-modules": "^4.0.0"
"@types/semver": "^7.3.4"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-cmd-roll-lib/src/modify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function modifyConfig(
})
}

const RollupWarningIgnoreList = ['THIS_IS_UNDEFINED']
const RollupWarningIgnoreList = ['THIS_IS_UNDEFINED', 'CIRCULAR_DEPENDENCY']
function onRollupWarning(warning: RollupWarning, onwarn: WarningHandler) {
if (RollupWarningIgnoreList.includes(warning.code!)) return
onwarn(warning)
Expand Down

0 comments on commit fb837ed

Please sign in to comment.