Skip to content

Commit

Permalink
Merge pull request #9790 from lmaze/8884-fix-addon-docs-ie11
Browse files Browse the repository at this point in the history
Addon-docs: Restore IE11 compat on Windows by transpiling correctly acorn-jsx for this OS (#8884)
  • Loading branch information
ndelangen authored and shilman committed Mar 31, 2020
1 parent 00b8554 commit 23e91d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/docs/src/frameworks/common/preset.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable import/no-extraneous-dependencies */
import createCompiler from '@storybook/addon-docs/mdx-compiler-plugin';
import path from 'path';
import remarkSlug from 'remark-slug';
import remarkExternalLinks from 'remark-external-links';

Expand Down Expand Up @@ -52,7 +52,7 @@ export function webpack(webpackConfig: any = {}, options: any = {}) {
...(module.rules || []),
{
test: /\.js$/,
include: /node_modules\/acorn-jsx/,
include: new RegExp(`node_modules\\${path.sep}acorn-jsx`),
use: [
{
loader: 'babel-loader',
Expand Down

0 comments on commit 23e91d5

Please sign in to comment.