-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): allow dynamic import treeshaking when injecting preload (#…
…14221) Co-authored-by: bluwy <[email protected]>
- Loading branch information
Showing
4 changed files
with
156 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export const foo = () => { | ||
console.log('treeshaken foo') | ||
} | ||
export const bar = () => { | ||
console.log('treeshaken bar') | ||
} | ||
export const baz1 = () => { | ||
console.log('treeshaken baz1') | ||
} | ||
export const baz2 = { | ||
log: () => { | ||
console.log('treeshaken baz2') | ||
}, | ||
} | ||
export const baz3 = { | ||
log: () => { | ||
console.log('treeshaken baz3') | ||
}, | ||
} | ||
export const baz4 = () => { | ||
console.log('treeshaken baz4') | ||
} | ||
export const baz5 = () => { | ||
console.log('treeshaken baz5') | ||
} | ||
export const removed = () => { | ||
console.log('treeshaken removed') | ||
} | ||
export default () => { | ||
console.log('treeshaken default') | ||
} |