File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,6 @@ js_test(
6262 ":node_modules/@rollup/plugin-commonjs" ,
6363 ":node_modules/mobx-react" ,
6464 ":node_modules/react" ,
65- # TODO: fix this test so we test a peer dependency without requiring it as a direct
66- # dependency https://github.com/aspect-build/rules_js/issues/92
67- ":node_modules/rollup" ,
6865 ],
6966 entry_point = "peer_test.js" ,
7067)
Original file line number Diff line number Diff line change 11const cjs = require ( '@rollup/plugin-commonjs/package.json' )
2- const rollup = require ( 'rollup' )
32const assert = require ( 'assert' )
43const react = require ( 'react' )
54const mobx = require ( 'mobx-react/package.json' )
65assert . equal ( react . version , '17.0.2' )
76assert . equal ( mobx . version , '7.3.0' )
87assert . equal ( cjs . version , '21.1.0' )
9- assert . equal ( rollup . VERSION , '2.70.2' )
8+
9+ // Ensure the main package with peer dependencies works too
10+ require ( '@rollup/plugin-commonjs' )
You can’t perform that action at this time.
0 commit comments