diff --git a/docs/guides/building-plugins.md b/docs/guides/building-plugins.md index 11fe7035c1..d6b44178cf 100644 --- a/docs/guides/building-plugins.md +++ b/docs/guides/building-plugins.md @@ -33,7 +33,7 @@ The plugin constructor receives the Uppy instance in the first parameter, and any options passed to `uppy.use()` in the second parameter. ```js -import BasePlugin from '@uppy/core/lib/BasePlugin.js'; +import BasePlugin from '@uppy/core'; export default class MyPlugin extends BasePlugin { constructor(uppy, opts) { diff --git a/docs/uppy-core.mdx b/docs/uppy-core.mdx index 6abb41bf09..61e0246155 100644 --- a/docs/uppy-core.mdx +++ b/docs/uppy-core.mdx @@ -1374,9 +1374,10 @@ Checkout the [building plugins](/docs/guides/building-plugins) guide. :::note -If you don’t use any UI plugins and want to make sure Preact isn’t bundled into -your app, import `BasePlugin` like this: -`import BasePlugin from '@uppy/core/lib/BasePlugin`. +If you don’t use any UI plugins, any modern bundler should be able to tree-shake +Preact code away. If you are not using a bundler that supports tree-shaking, +it’s also possible to import `BasePlugin` like this: +`import BasePlugin from '@uppy/core/lib/BasePlugin.js`. :::