2016-04-12 13 views
0

Webpack enthält keine Abhängigkeit einer Abhängigkeit. Diese Blattabhängigkeit wird unter Verwendung von require('entry?name-of-dep') benötigt.Webpack ohne Datei im Bundle

Und webpack.config.js:

module: { 
    loaders: [ 
     { 
     test: /\.html$/, 
     loader: 'raw-loader' 
     }, 
     { 
     exclude: [/\.html$/, /(node_modules|bower_components)/], 
     loader: 'babel-loader', 
     query: { 
      presets: 'es2015', 
     } 
     } 
    ] 
    } 

Im Ausgangsbündel fehlt die Abhängigkeit ist als:

/* 38 */ 
/***/ function(module, exports) { 

    /* (ignored) */ 

/***/ } 

Was bin ich?

+1

Siehe Diskussion unter https://github.com/mozilla/pdf.js/issues/7165 – async5

Antwort