Skip to content

Commit

Permalink
Merge pull request #17927 from storybookjs/17868-followup
Browse files Browse the repository at this point in the history
Core: Followup changing CJS entrypoints to ESM
  • Loading branch information
yannbf committed Apr 11, 2022
2 parents 4d4b2ed + 454b023 commit 5c026fe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion addons/links/react.js
@@ -1 +1,3 @@
module.exports = require('./dist/esm/react');
import LinkTo from './dist/esm/react';

export default LinkTo;
3 changes: 2 additions & 1 deletion lib/components/html.js
@@ -1 +1,2 @@
module.exports = require('./dist/esm/html');
// eslint-disable-next-line import/no-unresolved
export * from './dist/esm/html';
3 changes: 1 addition & 2 deletions lib/core/client.js
@@ -1,3 +1,2 @@
// @storybook/core was split into core-client and core-server. This file is for backwards-compat.
// TODO: remove in 7.0
module.exports = require('./dist/esm/index');
export * from './dist/esm/index';
3 changes: 2 additions & 1 deletion lib/router/utils.js
@@ -1 +1,2 @@
module.exports = require('./dist/esm/utils');
// eslint-disable-next-line import/no-unresolved
export * from './dist/esm/utils';
3 changes: 2 additions & 1 deletion lib/theming/create.js
@@ -1 +1,2 @@
module.exports = require('./dist/esm/create');
// eslint-disable-next-line import/no-unresolved
export * from './dist/esm/create';

0 comments on commit 5c026fe

Please sign in to comment.