Skip to content

Commit

Permalink
fix app by early importing the gjs file
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Dec 15, 2023
1 parent 43feacc commit ecfeb1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/vite-app/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'vite-app/config/environment';

// this is needed because of an issue with the dependency discovery in vite
// where it is not picking up the dependencies of the gjs file because vite
// never even asks the dependency discovery code to load this file. We
// suspect that it has got something to do with the fact that the rewritten
// app is in node_modules so we will revisit this once we have killed the
// need for a rewritten_app
import 'vite-app/components/fancy.gjs';

export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Expand Down

0 comments on commit ecfeb1a

Please sign in to comment.