Skip to content

Commit

Permalink
fix(h5): prebundle remote app module-rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Dec 30, 2022
1 parent 4558347 commit 882fa70
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/taro-webpack5-prebundle/src/h5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
getMfHash,
parsePublicPath
} from './utils'
import { assetsRE, MF_NAME } from './utils/constant'
import { MF_NAME } from './utils/constant'
import TaroModuleFederationPlugin from './webpack/TaroModuleFederationPlugin'

import type { Configuration, Stats } from 'webpack'
Expand Down Expand Up @@ -98,18 +98,6 @@ export class H5Prebundle extends BasePrebundle<IH5PrebundleConfig> {
devtool,
entry: path.resolve(__dirname, './webpack/index.js'),
mode: this.mode,
module: {
// TODO 同步普通打包文件配置
rules: [
{
test: assetsRE,
type: 'asset/resource',
generator: {
filename: 'static/[hash][ext][query]'
}
}
]
},
output,
plugins: [
new TaroModuleFederationPlugin(
Expand Down

0 comments on commit 882fa70

Please sign in to comment.