-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why we should not use Bower but Yarn, while both download different codes for the same package? #16
Comments
You need to use webpack to bundle your code
…On Sun, 29 Oct 2017 at 09:09, Mikael Kristyawicaksono < ***@***.***> wrote:
For example:
yarn add babel
bower install babel
I have application running without server (I don't plan to use NodeJS as
my back-end). It is now pure-front-end double-click HTML file.
I tried to import browser.js into my HTML file to be able to process JSX.
- Import with <script src="node_modules/babel-core/lib/api/browser.js">
does not work.
- But, import with <script src="bower_components/babel/browser.js">
*works*.
I do not want to download JavaScript manually from CDN. Because with
Bower, it was not even a thing to do.
Apparently, the codes are different. Since, Bower is dead and it suggests
its users to use Yarn, how can the codes be different?
How can I use Yarn like I use Bower?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#16>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAR2DdoVVV1FU8jzj290OR5XloGeYXaZks5sxDK0gaJpZM4QKOlw>
.
|
How can I use Webpack? Specifically for this browser.js? I have tried to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
I have application running without server (I don't plan to use NodeJS as my back-end). It is now pure-front-end double-click HTML file.
I tried to import browser.js into my HTML file to be able to process JSX.
<script src="node_modules/babel-core/lib/api/browser.js">
does not work.<script src="bower_components/babel/browser.js">
works.I do not want to download JavaScript manually from CDN. Because with Bower, it was not even a thing to do.
Apparently, the codes are different. Since, Bower is dead and it suggests its users to use Yarn, how can the codes be different?
How can I use Yarn like I use Bower?
The text was updated successfully, but these errors were encountered: