Comments (3)
Since you're importing the source files rather than the prebuilt UMD module (which is ES5), you'd need to use the babel loader on that. You could just use a loader rule for the node_modules/@girder/components/src
include pattern in this case.
from girder_web_components.
FYI, if you want to use the UMD module instead of having to inherit build rules, you'd just do
import girder from '@girder/components';
const rc = new girder.RestClient(...);
const upload = new girder.utils.Upload(rc, ...);
You could test how much extra weight that would add to your bundle; tree-shaking might be able to make them almost equivalent.
from girder_web_components.
Yep, both solutions (use of UMD and babel_loader only on girder components files) work.
Thanks !
from girder_web_components.
Related Issues (20)
- Upload list rows don't flash to "done" before they disappear.
- Explore using semantic-release HOT 9
- Yarn upgrade causes some unit tests to fail
- revert html boolean attributess back to shorthand form.
- support webkitdirectory for uploads
- [feature] Support page skipping in data browser
- General documentation improvements.
- Add an option to hide password based registration HOT 3
- Refactor OAuth component
- Dark theme UI bug in uploader widget
- Markdown Preview for girder-upsert-folder broken in dark mode.
- [BUG] [Girder-Upload] Upload doesn't tolerate very large numbers of files. HOT 4
- [Feature] Forgot Password Dialog and Girder API connection
- Upper limit on parallel uploads HOT 1
- Make Vue a peer dep
- Don't swallow uncaught errors during upload
- SSRF vulnerability in axios version < 0.21.1 HOT 5
- Still getting CSS issues in >= 3.0.1
- Show better error for email verification required HOT 2
- Fix vuetify and typescript in docs
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 girder_web_components.