Skip to content

Impossible to externalise quasar #41

Open
@lopes-gustavo

Description

@lopes-gustavo

I'm using single-spa and importing a Vue app with Quasar plugin.
I'm trying to make quasar external (loading it via umd bundle), but the plugin won't allow me.

I tried both:

chainWebpack: config => {
    config.externals({
      ...config.get('externals'),
      'quasar': 'quasar'
    })
  },

and

configureWebpack: config => {
    config.externals = [
      'quasar'
    ]
  },

To Reproduce
Steps to reproduce the behavior:

  1. Install quasar plugin inside a vue project
  2. Add quasar to externals in webpack config
  3. Analyse bundle
  4. See quasar is still there

Expected behavior
Bundle would not have quasar components, as it's external

Platform (please complete the following information):
OS: MacOS Big Sur 11.0.1
Node: 12.16.2
NPM: 6.14.8
Yarn: Not applicable
Browsers: Not applicable
iOS: Not applicable
Android: Not applicable
Electron: Not applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions