Skip to content

Commit

Permalink
test(optimize-missing-deps): rewrite deps in CJS (#8025)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 committed May 5, 2022
1 parent 2f478ed commit e32a3a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
@@ -1,5 +1,5 @@
import { name } from 'multi-entry-dep'
const { name } = require('multi-entry-dep')

export function sayName() {
exports.sayName = () => {
return name
}
3 changes: 1 addition & 2 deletions packages/playground/optimize-missing-deps/package.json
Expand Up @@ -7,8 +7,7 @@
"postinstall": "ts-node ../../../scripts/patchFileDeps.ts"
},
"dependencies": {
"missing-dep": "file:./missing-dep",
"multi-entry-dep": "file:./multi-entry-dep"
"missing-dep": "file:./missing-dep"
},
"devDependencies": {
"express": "^4.17.1"
Expand Down
2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e32a3a8

Please sign in to comment.