---
title: "Discussion on \"JavaScript and Rollup: Replace ES6 imports with globals\" | Hashnode"
description: "Discussion on \"JavaScript and Rollup: Replace ES6 imports with globals\". The use case\nYou're using one or more third party libraries (React, Preact, Lodash, ...) in an ES6 library you're creating for the browser.\nDon't bundle\nDon't bundle the third party libraries with your library.\n\nYour visitors might already have the t..."
url: "https://hashnode.com/posts/javascript-and-rollup-replace-es6-imports-with-globals/5f9358be40346172a86c133f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript and Rollup: Replace ES6 imports with globals](https://spaceaardvark.hashnode.dev/javascript-and-rollup-replace-es6-imports-with-globals?utm_source=hashnode&utm_medium=feed)

The use case You're using one or more third party libraries (React, Preact, Lodash, ...) in an ES6 library you're creating for the browser. Don't bundle Don't bundle the third party libraries with your library. Your visitors might already have the t...

Oct 23, 2020 · 3 min read · spaceaardvark.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#es2015](https://hashnode.com/tag/es2015)

## Written by

[Space Aardvark](https://hashnode.com/@spaceaaradvark)

@spaceaaradvark · Texas, USA

  
[View profile](https://hashnode.com/@spaceaaradvark)

Frontend, Fintech, and Fadoodles

Hi, I'm Seth Livingston, a Senior Software Engineer at Moov Financial. Aardvark by abraham.williams (https://www.flickr.com/photos/14939682@N02) Space background by Jeremy Perkins (https://unsplash.com/@jeremyperkins?utm\_source=unsplash&amp;utm\_medium=referral&amp;utm\_content=creditCopyText)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
