Skip to content

Commit

Permalink
Resolving for hbs files, for some reason, adds @glimmer/application t…
Browse files Browse the repository at this point in the history
…o demo/index.js and the button component is not outputted
  • Loading branch information
NullVoxPopuli committed Feb 4, 2022
1 parent c4bb6ad commit 3413a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion my-addon/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
plugins: [
// Instruct rollup how to resolve ts and hbs imports
// (importing a template-only component, for example)
// nodeResolve({ extensions: [ '.gjs', '.gts', '.js', '.ts', '.hbs']}),
nodeResolve({ extensions: [ '.gjs', '.gts', '.js', '.ts', '.hbs']}),

// These are the modules that users should be able to import from your
// addon. Anything not listed here may get optimized away.
Expand Down
4 changes: 2 additions & 2 deletions my-addon/src/components/demo/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

// import FlipButton from './button';
import FlipButton from './button';

export default class Demo extends Component {
// Button = FlipButton;
Button = FlipButton;

@tracked active = false;

Expand Down

0 comments on commit 3413a7e

Please sign in to comment.