Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ssr): vue-ssr-webpack-plugin compatible with webpack 4/5 #11863

Closed
wants to merge 2 commits into from

Conversation

ygj6
Copy link
Member

@ygj6 ygj6 commented Jan 12, 2021

close #11718

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

@julian91
Copy link

+1 really need this

@vsetka
Copy link

vsetka commented Jan 18, 2021

Can this be merged?

}
// Webpack >= 5.0.0
else if (compiler.options.output.library && compiler.options.output.library.type !== 'commonjs2') {
warn('webpack config `output.libraryTarget` should be "commonjs2".')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output.library.type

Copy link

@tibineagu tibineagu Mar 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blake-newman According to the webpack 5 documentation, I dont think output.library.type is what's required in the webpack config.

The config supports output.libraryTarget: 'commonjs2' as until now.

Indeed, the logic here should read the value from library.type (I haven't checked, trusting the author on this one), but the warning to users needs to mention the proper webpack config - which is still output.libraryTarget.

@yulodl
Copy link

yulodl commented Feb 26, 2021

Waiting for update

@beckybair
Copy link

what about making these changes on vue-server-renderer/server-plugin.js?
#11718 (comment)

@posva posva changed the title fix(ssr): vue-ssr-webpack-plugin compatible with webpack 4/5 (fix #11718) fix(ssr): vue-ssr-webpack-plugin compatible with webpack 4/5 Mar 30, 2021
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
@redneckz

This comment has been minimized.

@posva posva added this to Planned in 2.6.15 via automation Jun 1, 2021
@posva posva closed this in #12002 Jun 2, 2021
2.6.13 automation moved this from Planned to Done Jun 2, 2021
2.6.15 automation moved this from Planned to Done Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

vuejs/vue-ssr-webpack-plugin and webpack 5