Skip to content

Commit

Permalink
Adds aliases for most of the packages in ember-source
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt committed May 16, 2024
1 parent 284822c commit 916f4ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
17 changes: 12 additions & 5 deletions code/frameworks/ember/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (baseConfig,
...baseConfig.resolve,
alias: {
...baseConfig.resolve?.alias,
'@glimmer/destroyable': 'ember-source/dist/dependencies/@glimmer/destroyable',
'@glimmer/debug': 'ember-source/dist/dependencies/@glimmer/debug',
'@glimmer/validator': 'ember-source/dist/dependencies/@glimmer/validator',

// Packages
ember: 'ember-source/dist/packages/ember',
'@ember': 'ember-source/dist/packages/@ember',

// Dependencies
'@glimmer': 'ember-source/dist/dependencies/@glimmer',
'@simple-dom': 'ember-source/dist/dependencies/@simple-dom',
'backburner.js': 'ember-source/dist/dependencies/backburner.js',
'rsvp.js': 'ember-source/dist/dependencies/rsvp',
},
},
module: {
Expand All @@ -44,8 +51,8 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (baseConfig,
},
},
],
include: [getProjectRoot(), getProjectRoot() + '/node_modules/ember-source'],
exclude: [/node_modules/, ...Object.keys(virtualModules)],
include: [getProjectRoot()],
exclude: [/node_modules\/(?!.*ember.*)/, ...Object.keys(virtualModules)],
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ export const babel: PresetPropertyFn<'babel'> = (config: TransformOptions, optio
'ember-cli-htmlbars-inline-precompile',
'htmlbars-inline-precompile',
],
outputModuleOverrides: {
'@ember/template-factory': {
createTemplateFactory: [
'templateFactory',
'ember-source/dist/dependencies/@glimmer/opcode-compiler',
],
},
},
},
],
];
Expand Down

0 comments on commit 916f4ba

Please sign in to comment.