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

Combine with webpack-manifest-plugin #56

Open
holmey opened this issue Feb 7, 2021 · 0 comments
Open

Combine with webpack-manifest-plugin #56

holmey opened this issue Feb 7, 2021 · 0 comments

Comments

@holmey
Copy link

holmey commented Feb 7, 2021

When combining the Plugin with the webpack-manifest-plugin the es6 Version will get generated correctly but the entry of the legacy file in the Manifest is missing.

The simplified plugin configuration to this issue looks like this:

plugins: [
  new WebpackManifestPlugin({
    basePath: paths.ASSET_DIR
  }),
  new BabelEsmPlugin({ 
    chunkFilename: 'javascripts/chunks/[chunkhash].[name].es6.js',
    filename: 'javascripts/[chunkhash].[name].es6.js'
  })
]

The main.js and the main.es6.js file will get generated but the manifest.json will just contain the URL to the es6 version and the legacy file is missing in the map of source filenames.

{
  "/main.js": "/javascripts/6aed7290bc40b110cb97.main.js",
}

Is this a configuration issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant