docusaurus/packages/docusaurus-theme-live-codeb.../src/index.js
Endi 1f0f3e130b
feat(v2): ️ faster and lighter bundle size (optimization) (#1681)
* feat(v2):️  fasterr and lighter bundle size optimization

* lint

* nits
2019-07-20 16:55:24 +07:00

31 lines
741 B
JavaScript

/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* 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: {
// fork of Buble which removes Buble's large dependency and weighs in at a smaller size of ~51kB
// https://github.com/FormidableLabs/react-live#what-bundle-size-can-i-expect
buble: '@philpl/buble',
},
},
};
},
};
};