Skip to content

Commit

Permalink
fix: test rollup/rollup#4588
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 14, 2022
1 parent 9ab44f0 commit 0b4d75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playground/lib/__tests__/lib.spec.ts
Expand Up @@ -24,7 +24,7 @@ describe.runIf(isBuild)('build', () => {
expect(await page.textContent('.iife')).toBe('It works')
const code = readFile('dist/my-lib-custom-filename.iife.js')
// esbuild helpers are injected inside of the IIFE wrapper
expect(code).toMatch(/^const MyLib=function\(\){"use strict";/)
expect(code).toMatch(/^var MyLib=function\(\){"use strict";/)
})

test('Library mode does not include `preload`', async () => {
Expand Down

0 comments on commit 0b4d75f

Please sign in to comment.