jeffling / wallaby-webpack

webpack preprocessor for wallabyjs
25 stars 8 forks source link

Not able to load HTML template with "require(" in angular 9. Getting error "[object Module] #32

Closed sunil-digicorp closed 4 years ago

sunil-digicorp commented 4 years ago

Below is my code with the module.

<pmd-card>
  <pmd-card-body>
    <button class="btn btn-sm pmd-btn-fab btn-light mb-2" type="button" (click)="codeExample.toggle()" pmdRipple>
      <i class="material-icons md-dark pmd-sm">code</i>
    </button>
    <div class="item" pmdCollapse #codeExample="pmd-collapse">
      <pmd-tab-group>
        <pmd-tab label="template" *ngIf="html">
          <pre class="prettyprint linenums lang-html">{{html}}</pre>
        </pmd-tab>
      </pmd-tab-group>
    </div>
    <div class="section bd-example"><ng-content></ng-content></div>
  </pmd-card-body>
</pmd-card>
{
    name: 'Examples',
    anchor: 'examples',
    outlet: ExamplesNoCardComponent,
    content: [
      {
        title: 'Angular Accordion',
        anchor: 'propeller-angular-accordion',
        description: `
          <p>Propeller Accordion consists of Bootstrap 4 HTML structure with Propeller customized tags.</p>
          <p>Add accordion item using <code>&lt;pmd-accordion-item&gt;</code> tag and to add title pass <code>heading</code> attribute in it. Wrap all the accordion items in a <code>&lt;pmd-accordion&gt;</code> tag to achieve the look and feel based on material design standards.</p>
        `,
        component: require('!!raw-loader!./demos/basic/basic'),
        html: require('!!raw-loader!./demos/basic/basic.html'),
      },
ArtemGovorov commented 4 years ago

Please create an issue at https://github.com/wallabyjs/public/issues and provide the details required in the issue template.