Ember: Consolidate preset

This commit is contained in:
Michael Shilman 2021-10-20 17:13:47 +08:00
parent a48426cab4
commit 8fd9fe5a56
2 changed files with 6 additions and 7 deletions

View File

@ -1,7 +1 @@
function config(entry = []) {
return [...entry, require.resolve('./dist/esm/client/preview/config')];
}
module.exports = {
config,
};
module.exports = require('./dist/cjs/server/framework-preset-babel-ember');

View File

@ -1,5 +1,6 @@
import { TransformOptions } from '@babel/core';
import { precompile } from 'ember-source/dist/ember-template-compiler';
import type { StorybookConfig } from '@storybook/core-common';
let emberOptions: any;
@ -45,3 +46,7 @@ export function babel(config: TransformOptions, options: any) {
plugins: [].concat(babelConfigPlugins, extraPlugins),
};
}
export const config: StorybookConfig['config'] = (entry = []) => {
return [...entry, require.resolve('../../esm/client/preview/config')];
};