浏览代码

Avoids duplicate bundling

main
Eric Amodio 2 年前
父节点
当前提交
168d81954c
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      webpack.config.js

+ 9
- 0
webpack.config.js 查看文件

@ -478,8 +478,17 @@ function getWebviewsConfig(mode, env) {
resolve: {
alias: {
'@env': path.resolve(__dirname, 'src', 'env', 'browser'),
'@microsoft/fast-foundation': path.resolve(
__dirname,
'node_modules/@microsoft/fast-foundation/dist/esm/index.js',
),
'@microsoft/fast-react-wrapper': path.resolve(
__dirname,
'node_modules/@microsoft/fast-react-wrapper/dist/esm/index.js',
),
react: path.resolve(__dirname, 'node_modules', 'react'),
'react-dom': path.resolve(__dirname, 'node_modules', 'react-dom'),
tslib: path.resolve(__dirname, 'node_modules/tslib/tslib.es6.js'),
},
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
modules: [basePath, 'node_modules'],

||||||
x
 
000:0
正在加载...
取消
保存