Skip to content

Commit 0e797c4

Browse files
committed
fix: remove __esModule
(rollup adds it)
1 parent 0a1ba2e commit 0e797c4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ export const isPerformanceSupported = () => false
44

55
export const now = () => Date.now()
66

7-
export const __esModule = true
8-
97
export default {
108
setupDevtoolsPlugin,
119
isPerformanceSupported,

test/index.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as devtoolsAPI from '../src'
55
describe('vue-devtools-stub', () => {
66
describe('has same exports of @vue/devtools-api', () => {
77
for (const key in actualDevtools) {
8+
if (key === '__esModule') { continue }
89
it(key, () => {
910
expect(typeof (devtoolsAPI as any)[key]).toBe(typeof (actualDevtools as any)[key])
1011
})

0 commit comments

Comments
 (0)