Comments (3)
Sorry for the late response. hyperactiv
only has a default export, so it's not able destructure properly when exporting
The solution is to import the default export from hyperactiv
first, then export the methods you'd like treeshaken
import hyperactiv from 'hyperactiv'
export const { observe, computed } = hyperactiv
https://bundlejs.com/?q=(import)hyperactiv&treeshake=[hyperactiv]&text="export+const+{observe,computed}+=+hyperactiv"
from bundlejs.
My apologies. I'd read and then forgot about it.
Thanks for replying
from bundlejs.
No worries
from bundlejs.
Related Issues (20)
- Output Cannot Be Copied. HOT 2
- Badges with package size HOT 33
- "browser" attribute in package.json is not used HOT 5
- mangleProps option value should be RegExp HOT 3
- [Bug 🐞] Failed to fetch dependencies HOT 8
- Sharing with &bundle produces different results HOT 1
- analyze by `import` identifier HOT 4
- [Bug] duplicate dependencies if two imports depend on the same package HOT 4
- could not build codemirror 6 correctly HOT 10
- Error when downloading packages HOT 6
- Treeshaking doesn't always work HOT 27
- Error when building react-native-code-push HOT 6
- Build client (browser) package version HOT 1
- getRequest [Failed at request] HOT 4
- Incorrent treeshake size in badge/API HOT 3
- API error HOT 22
- BUG: Treeshake doesn't work for badges HOT 11
- Strange behavior when using multiplug badges HOT 7
- Possible badge caching issue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundlejs.