Skip to content

Commit 340749b

Browse files
Fix misleading config in Webpack sample
SetLoadBabel has no effect if scripts are bundled with webpack
1 parent 5007121 commit 340749b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/React.Sample.Webpack.CoreMvc/Startup.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ public void Configure(IApplicationBuilder app)
4242
{
4343
config
4444
.SetReuseJavaScriptEngines(true)
45-
.SetLoadBabel(true)
45+
.SetLoadBabel(false)
4646
.SetLoadReact(false)
47-
.SetBabelVersion(BabelVersions.Babel7)
4847
.AddScriptWithoutTransform("~/dist/runtime.js")
4948
.AddScriptWithoutTransform("~/dist/vendor.js")
5049
.AddScriptWithoutTransform("~/dist/components.js");

0 commit comments

Comments
 (0)