Skip to content

Commit f12832a

Browse files
committed
test(#136): try to reproduce the issue
1 parent 757ffa9 commit f12832a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// https://github.com/un-ts/eslint-plugin-import-x/issues/136
2+
// Vite / Rollup might mangle exported functions' original name
3+
4+
function foo() {}
5+
6+
export { foo as default }

test/rules/no-rename-default.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ ruleTester.run('no-rename-default', rule, {
1919
`import _ from './no-rename-default/anonymous-class'`,
2020
`import _ from './no-rename-default/anonymous-object'`,
2121
`import _ from './no-rename-default/anonymous-primitive'`,
22+
23+
// https://github.com/un-ts/eslint-plugin-import-x/issues/136
24+
test({
25+
code: '/** #136 */ import exportDefaultStringAndNamed from "./export-default-as-named-decl"',
26+
}),
2227
],
2328
invalid: [],
2429
})

0 commit comments

Comments
 (0)