Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Webpack 智能感知不';我不能在我的网页库上工作_Webpack_Visual Studio Code - Fatal编程技术网

Webpack 智能感知不';我不能在我的网页库上工作

Webpack 智能感知不';我不能在我的网页库上工作,webpack,visual-studio-code,Webpack,Visual Studio Code,我通过网页包库发布npm包。 现在它工作正常,但在我的vscode上没有我的包的智能感知。 问题在哪里?提前谢谢 // src/index.js export { action } export default { someMethods } Intellisense在添加.d.ts文件后工作。Intellisense在添加.d.ts文件后工作。 // webpack.config.js module.exports = { entry: './src/index.js', o

我通过网页包库发布npm包。
现在它工作正常,但在我的vscode上没有我的包的智能感知。
问题在哪里?提前谢谢

// src/index.js
export {
  action
}
export default {
  someMethods
}

Intellisense在添加
.d.ts
文件后工作。Intellisense在添加
.d.ts
文件后工作。
// webpack.config.js
module.exports = {
  entry: './src/index.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'index.js',
    library: 'autoProTools',
    libraryTarget: 'umd',
    // libraryExport: 'default',
    globalObject: 'this'
  },
  ...
}