bnavetta / aurelia-polymer

Aurelia plugin to support Polymer
MIT License
18 stars 5 forks source link

Attribute not included in bundle from Aurelia CLI #26

Closed 32graham closed 7 years ago

32graham commented 7 years ago

When I include aurelia-polymer in the bundle using Aurlia CLI, like so

{
  ...
  "build": {
    ...
    "bundles": [
      {
        "name": "app-bundle.js",
        "source": [
          "[**/*.js]",
          "**/*.{css,html}"
        ]
      },
      {
        "name": "vendor-bundle.js",
        "prepend": [
          "node_modules/bluebird/js/browser/bluebird.core.js",
          "scripts/require.js"
        ],
        "dependencies": [
          ...
          {
            "name": "aurelia-polymer",
            "path": "../node_modules/aurelia-polymer/dist/amd",
            "main": "index"
          },
          ...
        ]
      }
    }
  }
}

And then I run the app, I get a network request to retrieve au-select-custom-attribute.js because it's not included in the bundle.

I was able to get it working my importing AuSelectCustomAttribute in index.js.

import { AuSelectCustomAttribute } from './au-select-custom-attribute';

I'll submit a PR with the proposed change.