Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedccabf

Browse files
authored
Docs: Update the README of the published package
The previous details were showing their age, e.g. mentions about browsersnot supporting ES2015. The story with ES modules is more complex as it's alsoabout loaders but to keep the README simple, let's just make it more up to datewith typical usage.Closesgh-5108
1 parente7ffe1f commitedccabf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎build/fixtures/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@ Below are some of the most common ways to include jQuery.
1919
<scriptsrc="https://code.jquery.com/jquery-@VERSION.min.js"></script>
2020
```
2121

22-
####Babel
22+
####Webpack / Browserify /Babel
2323

24-
[Babel](https://babeljs.io/) is a next generation JavaScript compiler. One of the features istheability to use ES6/ES2015 modules now, even though browsers do not yet supportthis feature natively.
24+
There are several ways to use[Webpack](https://webpack.js.org/),[Browserify](http://browserify.org/) or[Babel](https://babeljs.io/). For more information on using these tools, please refer tothecorresponding project's documentation. In the script, including jQuery will usually look likethis:
2525

2626
```js
2727
import $from"jquery";
2828
```
2929

30-
####Browserify/Webpack
31-
32-
There are several ways to use[Browserify](http://browserify.org/) and[Webpack](https://webpack.js.org/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this...
30+
If you need to use jQuery in a file that's not an ECMAScript module, you can use the CommonJS syntax:
3331

3432
```js
3533
var $=require("jquery" );

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp