Skip to content

Commit

Permalink
Chore: add test case for issue 12993
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinyaigeek committed May 23, 2021
1 parent c1588e2 commit bc456ff
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/configCases/issues/issue-12993/dynamic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "dynamic";
8 changes: 8 additions & 0 deletions test/configCases/issues/issue-12993/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import(/* webpackPrefetch: true */ "./dynamic.js");

export const main = "main";

it("library output should be accurate value", done => {
expect(global.lib.main).toBe("main");
done();
});
9 changes: 9 additions & 0 deletions test/configCases/issues/issue-12993/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = [
{
mode: "development",
output: {
library: "lib",
libraryTarget: "global"
}
}
];

0 comments on commit bc456ff

Please sign in to comment.