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

Webpack 5 beta 22 #1

Closed
wants to merge 16 commits into from
Closed

Webpack 5 beta 22 #1

wants to merge 16 commits into from

Conversation

b1rdex
Copy link

@b1rdex b1rdex commented Jul 13, 2020

No description provided.

weaverryan and others added 16 commits May 10, 2020 15:32
This PR was merged into the master branch.

Discussion
----------

Fixing babel.config.js filename in message

Introduced in symfony#738 - @jdreesen I think this was just a typo? Can you confirm that my PR is right?

Thanks!

Commits
-------

c163909 fixing babel.config.js filename in message
…ryan)

This PR was merged into the master branch.

Discussion
----------

Removing vue2 alias to use the full build

Fixes symfony#674

Commits
-------

bece20e removing vue2 alias to use the full build
This makes it harder for beginners and it's hard to know the fix.
As a compromise, this alerts that there is
an option to choose a smaller build.
Co-authored-by: Vincent Le Biannic <850046+Lyrkan@users.noreply.github.com>
…weaverryan)

This PR was squashed before being merged into the master branch.

Discussion
----------

Reverting change to only package vue runtime loader

Using the runtime build by default makes it harder for beginners and it's hard to know the fix. Specifically, if you follow the "intro docs" to Vue, you will likely try this:

```js
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!'
  }
})
```

which will not work (and the error will be tough for beginners to spot). As a compromise, on a production build, we print a recommendation so that people can discover the option to use the smaller build.

Commits
-------

6ae0aaa Update index.js
47f5ca3 Updating missing-loader for changing vue internal file syntax
1b393eb reverting change to only package vue runtime loader
There is currently a bug where, on a "watch" rebuild, sometimes
an image that's referenced from a CSS file won't be "noticed" and
will be mistakenly deleted.
… false (weaverryan)

This PR was merged into the master branch.

Discussion
----------

Setting CleanWebpackPlugin's cleanStaleWebpackAssets: false

There is currently a bug where, on a "watch" rebuild, sometimes an image that's referenced from a CSS file won't be "noticed" and will be mistakenly deleted.

Reproducer: https://github.com/weaverryan/clean_webpack_assets_watch_bug

I haven't had time yet to "distill" that reproducer down to a raw `webpack.config.js` file (without Encore) so that I can submit an issue. But, since this behavior can be quite damaging (I was pulling out my hair trying to figure out why an image file was there sometimes and gone other times) and because the `cleanStaleWebpackAssets` is so *minor* (it removes extra files on `watch` rebuilds), I think we should just disable it by default.

Commits
-------

39e4619 Setting CleanWebpackPlugin's cleanStaleWebpackAssets: false
# Conflicts:
#	lib/WebpackConfig.js
#	lib/friendly-errors/transformers/missing-loader.js
@b1rdex
Copy link
Author

b1rdex commented Jul 13, 2020

This update webpack to beta 22 for symfony#645

@b1rdex b1rdex closed this Oct 11, 2020
@b1rdex b1rdex deleted the webpack5 branch October 11, 2020 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants