mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 23:54:25 +00:00
* transforming async functions is not implemented by buble, so just bypassing it would relieve the pain for now
29 lines
578 B
JavaScript
29 lines
578 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = function () {
|
|
return {
|
|
name: 'docusaurus-theme-live-codeblock',
|
|
|
|
getThemePath() {
|
|
return path.resolve(__dirname, './theme');
|
|
},
|
|
|
|
configureWebpack() {
|
|
return {
|
|
resolve: {
|
|
alias: {
|
|
buble: path.resolve(__dirname, './custom-buble.js'),
|
|
},
|
|
},
|
|
};
|
|
},
|
|
};
|
|
};
|