webpack + babel loaderを使用してバンドルするes6プロジェクトがあります。 私はdevtoolsを開くと、下に 'webpack://'と私のすべてのソース(es6)が見えます。 ?ブレークポイントがヒットしないと関数参照は、ファイル名」に私を指示し、次のコンテンツがあるwebpack + babel loaderソースマップ参照空ファイル
d41d:
問題がある
undefined
/** WEBPACK FOOTER **
**
**/
私は、ドキュメントのスクリプトからドリルダウンした場合に?私は私のwebpack.config.js
同様d41dファイルを取得する私のバンドル内の機能:module.exports = {
debug: true,
devtool: 'cheap-module-eval-source-map',
entry: "entry.js",
output: {
path: "C:/html5/",
filename: "bundle.js"
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['es2015'],
plugins: ['transform-object-assign'],
sourceMaps: ['inline']
}
}
]
}
};
とpackage.jsonの一部、それが役立つかもしれない場合:事前に
"devDependencies": {
"ava": "^0.16.0",
"babel-core": "^6.14.0",
"babel-loader": "^6.2.5",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-preset-es2015": "^6.13.2",
"cheerio": "^0.22.0",
"chokidar-cli": "^1.2.0",
"eslint": "^3.3.1",
"html-to-js": "0.0.1",
"jsdoc": "^3.4.0",
"jsdom": "^9.4.2",
"minami": "^1.1.1",
"obfuscator": "^0.5.4",
"sinon": "^1.17.5",
"uglify-js": "^2.7.3",
"webpack": "^1.13.2",
"yargs": "^5.0.0"
},
"dependencies": {
"jquery": "^3.1.0"
}
感謝。また、これはちょうど今日、私に起こって始め
は魅力的な感謝のように動作します。またreduxのために:) –