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?
Siehe Diskussion unter https://github.com/mozilla/pdf.js/issues/7165 – async5