mirror of https://github.com/webpack/webpack.git
14 lines
377 B
JavaScript
14 lines
377 B
JavaScript
it("should handle circular chunks correctly", function(done) {
|
|
import(/* webpackChunkName: "a" */"./module-a").then(function(result) {
|
|
return result.default();
|
|
}).then(function(result2) {
|
|
expect(result2.default()).toBe("x");
|
|
done();
|
|
}).catch(function(e) {
|
|
done(e);
|
|
});
|
|
const couldBe = function() {
|
|
return import(/* webpackChunkName: "b" */"./module-b");
|
|
};
|
|
});
|