fix(v2): fix plugin-ideal-image breaking website (exports not defined) (#2074)

* fix(v2): fix plugin-ideal-image breaking website (exports not defined)

* nits

* add npm ignore

* lint
This commit is contained in:
Endi 2019-12-01 21:59:02 +07:00 committed by GitHub
parent 464d8e529a
commit 8a948102c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 43 deletions

View file

@ -10,7 +10,7 @@ import {Configuration} from 'webpack';
import path from 'path';
export = function(_context: LoadContext, options: PluginOptions) {
export default function(_context: LoadContext, options: PluginOptions) {
const isProd = process.env.NODE_ENV === 'production';
return {
name: 'docusaurus-plugin-ideal-image',
@ -47,4 +47,4 @@ export = function(_context: LoadContext, options: PluginOptions) {
};
},
};
};
}