8000 babel-loader cache is not invalidated when browserslist's config changes · Issue #514 · symfony/webpack-encore · GitHub
[go: up one dir, main page]

Skip to content
babel-loader cache is not invalidated when browserslist's config changes #514
@wujekbogdan

Description

@wujekbogdan

I found that since webpack 4 upgrade Babel should respect .browserslistrc config and browserslist settings from package.json. Neither of these seem to work.

The output JS file is always the same, no matter what browserslist settings I use.

If I edit the @symfony/webpack-encore/lib/loaders/babel.js file and change the targets entry for @babel/preset-env then the JS output looks as expected.

I know that I could use Encore.configureBabel(), but I would prefer to use more standard configuration techniques.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0