You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i'm having trouble with my project :
I'm using Limenius ReactBundle for SSR with a React app. To do this, i installed v8js on my server, but according to this issue#29, it seems that i need to disable babel-polyfill for server-side JS code.
If i understand well, now @babel/preset-env include @babel/polyfill, and as it seems, @babel/preset-env is auto loaded with webpack-encore (i'm on v0.27.0) isn't it ?
If i'm right, is there a solution to disable @babel/preset-env in webpack-encore plz ?
@babel/polyfill is not included in @babel/preset-env so you shouldn't have any polyfill unless you add it manually to your project (or rather core-js since @babel/polyfill is deprecated) and enable the feature using the useBuiltIns/core-js options.
From what I'm understanding of the issue you linked, the error is triggered by importing @babel/polyfill in a way that isn't supported by the ReactBundle.
If you are not doing that, you are probably facing a different problem.
Anyway, if you want to check that, you can disable @babel/preset-env by removing it from the babelConfig.presets array in your Encore.configureBabel() call, or through a custom .babelrc/.babelrc.js file.
Hello, i'm having trouble with my project :
I'm using Limenius ReactBundle for SSR with a React app. To do this, i installed v8js on my server, but according to this issue#29, it seems that i need to disable babel-polyfill for server-side JS code.
If i understand well, now @babel/preset-env include @babel/polyfill, and as it seems, @babel/preset-env is auto loaded with webpack-encore (i'm on v0.27.0) isn't it ?
If i'm right, is there a solution to disable @babel/preset-env in webpack-encore plz ?
Here is my webpack.config.js
The text was updated successfully, but these errors were encountered: