我的webpack应用正在正常运行,但在浏览器中显示错误 错误:无法链接顶点和片段着色器。
const path = require('path'); const webpack = require('webpack');
module.exports = { 模式:“发展”, 条目:{ polyfills:“ ./ src / polyfill.js”, 索引:“ ./ src / index.js” }
output: {
filename: '[name].main.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
},
{ test: /\.ts$/, use: 'ts-loader' }
]
}
};
我正在尝试运行asynk函数,但出现错误