Webpack 智能感知不';我不能在我的网页库上工作
我通过网页包库发布npm包。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
现在它工作正常,但在我的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'
},
...
}