We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cbad18 commit a38decdCopy full SHA for a38decd
test/integration/externals-pages-bundle/test/externals.test.js
@@ -31,9 +31,10 @@ describe('default', () => {
31
const output = await fs.readFile(join(ssrPath, basename), 'utf8')
32
allBundles += output
33
}
34
- expect(allBundles).toContain(
35
- '__turbopack_external_require__("external-package"'
36
- )
+
+ // we don't know the name of the minified `__turbopack_external_require__`, so we just check the content.
+ expect(allBundles).toContain('"external-package"')
37
+ expect(allBundles).not.toContain('"external-package content"')
38
} else {
39
const output = await fs.readFile(
40
join(appDir, '.next/server/pages/index.js'),
0 commit comments