mirror of https://github.com/webpack/webpack.git
Merge pull request #7600 from webpack/bugfix/missing-module
fixes #7499
This commit is contained in:
commit
258d9b6bf6
|
|
@ -281,6 +281,7 @@ class ConcatenatedModule extends Module {
|
|||
|
||||
// Info from Factory
|
||||
this.rootModule = rootModule;
|
||||
this.factoryMeta = rootModule.factoryMeta;
|
||||
|
||||
// Info from Compilation
|
||||
this.index = rootModule.index;
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
export const hello = 'world'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
import * as constants from './constants'
|
||||
export { constants }
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"sideEffects": false
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import './example'
|
||||
|
||||
it("should run correctly", function() {
|
||||
return import('./lazy').then(lazy => {
|
||||
expect(lazy.default()).toEqual({
|
||||
hello: "world",
|
||||
[Symbol.toStringTag]: "Module"
|
||||
});
|
||||
})
|
||||
});
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
import { constants } from './example'
|
||||
|
||||
export default function getConstants() {
|
||||
return constants;
|
||||
}
|
||||
Loading…
Reference in New Issue