Files
hrmnyandGitHub cad3a51049 refactor: move rust crates to the repo root directory (#67780)
### Why?
In preparation for moving all turbopack crates

Also makes them easier to work with in general.

Closes PACK-3164
2024-07-22 18:41:27 +02:00

47 lines
990 B
JavaScript

let shouldBeKept = 'should be kept'
export async function keep() {
console.log(shouldBeKept)
}
let shouldBeRemoved = 'should be removed'
export function removeFunction() {
console.log(shouldBeRemoved)
}
export let removeVarDeclaration = 'should be removed'
export let removeVarDeclarationUndefined // should also be removed
export let multipleDecl = 'should be removed',
keep1 = 'should be kept'
export let keep2 = 'should be kept'
export class RemoveClass {
remove() {
console.log('should be removed')
}
}
let x = 'x'
let y = 'y'
// This should be removed
export { x, y as z }
let keep3 = 'should be kept'
let asKeep = 'should be kept'
let removeNamed = 'should be removed'
export { keep3, asKeep as keep4, removeNamed }
export default function removeDefault() {
console.log('should be removed')
}
function ShouldBeKept() {
return 'should be kept'
}
let shouldBeKept2 = 'should be kept'
export function keep5() {
return <ShouldBeKept val={shouldBeKept2} />
}