Skip to content

Commit

Permalink
fix: make demo/index.min.js to load as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-mota committed Oct 24, 2024
1 parent b08b8b2 commit 76d236a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
Prism.highlightAll();
});
</script>
<script src="./index.min.js" data-demo-script="true"></script>
<script type="module" src="./index.min.js" data-demo-script="true"></script>

<!-- If additional elements are needed for the demo, add them here. -->
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
Expand Down
5 changes: 4 additions & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { AuroRadio } from '../src/auro-radio.js';
import { AuroRadioGroup } from '../src/auro-radio-group.js';

AuroRadio.register();
AuroRadioGroup.register();

AuroRadio.register('custom-radio');
AuroRadioGroup.register('custom-radio-group');
AuroRadioGroup.register('custom-radio-group');
3 changes: 3 additions & 0 deletions demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,5 +664,8 @@ class AuroRadioGroup extends LitElement {
}
}

AuroRadio.register();
AuroRadioGroup.register();

AuroRadio.register('custom-radio');
AuroRadioGroup.register('custom-radio-group');

0 comments on commit 76d236a

Please sign in to comment.