dan
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
12 additions and
1 deletions
-
beta/next.config.js
-
beta/src/utils/codemirrorMarkdownShim.js
|
@ -46,8 +46,12 @@ const nextConfig = { |
|
|
// Don't bundle the shim unnecessarily.
|
|
|
// Don't bundle the shim unnecessarily.
|
|
|
config.resolve.alias['use-sync-external-store/shim'] = 'react'; |
|
|
config.resolve.alias['use-sync-external-store/shim'] = 'react'; |
|
|
|
|
|
|
|
|
const {IgnorePlugin} = require('webpack'); |
|
|
const {IgnorePlugin, NormalModuleReplacementPlugin} = require('webpack'); |
|
|
config.plugins.push( |
|
|
config.plugins.push( |
|
|
|
|
|
new NormalModuleReplacementPlugin( |
|
|
|
|
|
/@codemirror\/lang-markdown/, |
|
|
|
|
|
require.resolve('./src/utils/codemirrorMarkdownShim.js') |
|
|
|
|
|
), |
|
|
new IgnorePlugin({ |
|
|
new IgnorePlugin({ |
|
|
checkResource(resource, context) { |
|
|
checkResource(resource, context) { |
|
|
if ( |
|
|
if ( |
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
|
|
/* |
|
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
export function markdown() { |
|
|
|
|
|
return 'Not used on React Beta site.'; |
|
|
|
|
|
} |