Skip to content

Commit

Permalink
fix(@dawnjs/dn-middleware-webpack): not set globalObject by default
Browse files Browse the repository at this point in the history
  • Loading branch information
soulwu committed Jun 22, 2021
1 parent ffe23ee commit e46d6e0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/middleware-webpack/src/config/configOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default async (config: Config, options: INormalizedOpts) => {
.chunkFilename(path.join(options.folders.script, "[name].[chunkhash:8].chunk.js"))
.set("assetModuleFilename", path.join(options.folders.media, "[name].[contenthash:8][ext]")) // TODO: replace after webpack-chain support webpack5
.publicPath(options.publicPath ?? (options.env === "development" ? "/" : undefined))
.globalObject("this")
.merge(options.output)
.path(path.resolve(options.cwd, options.output.path));
};

0 comments on commit e46d6e0

Please sign in to comment.