We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0983f4 commit 805a4ceCopy full SHA for 805a4ce
packages/@vue/cli-service/__tests__/modernMode.spec.js
@@ -22,6 +22,10 @@ test('modern mode', async () => {
22
expect(files.some(f => /^chunk-vendors\.\w{8}\.js$/.test(f))).toBe(true)
23
expect(files.some(f => /^chunk-vendors-legacy\.\w{8}\.js$/.test(f))).toBe(true)
24
25
+ // arrow function should be reserved in the modern build
26
+ const app = await project.read(`dist/js/${files.find(f => /^app\.\w{8}\.js$/.test(f))}`)
27
+ expect(app).toMatch(/=>/)
28
+
29
// assert correct asset links
30
const index = await project.read('dist/index.html')
31
0 commit comments