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

dialog forces mulptiple chunks in webpack prod build #393

Open
Archelyst opened this issue Jul 9, 2020 · 1 comment
Open

dialog forces mulptiple chunks in webpack prod build #393

Archelyst opened this issue Jul 9, 2020 · 1 comment

Comments

@Archelyst
Copy link

I'm submitting a bug report

  • Library Version:
    2.0.0

  • Webpack Version:
    4.27.0

  • Language:
    TypeScript 3.1.2

I need my project to be bundled into a single .js file. This works until using aurelia-dialog which results in a whole bunch of extra chunks output by webpack.

Steps to reproduce

  1. au new - Create a default TS project using webpack
  2. Adjust the webpack config to not create chunks:
    optimization: {
      runtimeChunk: false,
      splitChunks: {
        cacheGroups: {
          default: false
        }
      }
    }
  1. au build --env prod - Make a prod build and verify there is only one .js file.
  2. Add aurelia dialog to the project
    1. npm install --save aurelia-dialog
    2. Actually use it, e.g. in app.ts:
import { DialogController } from 'aurelia-dialog';
import { autoinject } from 'aurelia-framework';

export class App {
  constructor(readonly controller: DialogController) {  }
}
  1. au build --env prod - Make a prod build and see there's a plethora of .js files
@Archelyst
Copy link
Author

Well, maybe "submitting a bug report" is a bit harsh. Could be this turns out to be a support request. Anyways, would be greateful if this could be resolved.

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