Skip to content

Commit 236deea

Browse files
chore: Merge branch 'release/2.3.1'
2 parents 8e74da2 + d2471c0 commit 236deea

21 files changed

+161
-20
lines changed
145 KB
Binary file not shown.
3.5 KB
Binary file not shown.

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ be customized (see [Options Reference](#options-reference) below)
7979

8080
* Vue
8181
* Replace `'vue-loader'` with `BabelMultiTargetPlugin.loader('vue-loader')`
82+
83+
* `expose-loader`
84+
* Rules using `expose-loader` must be defined _before_ rules using `BabelMultiTargetPlugin.loader()`
85+
* Do not `import`/`require` libraries exposed with `expose-loader` - either reference them from the global scope,
86+
or do not use `expose-loader`. You may also need to use Webpack's `ProvidePlugin`.
8287

8388
## Upgrading from v1.x
8489

@@ -421,7 +426,7 @@ npm start angular-five typescript-plain
421426
Note that when running all example projects concurrently, you may need to increase
422427
Node's memory limit:
423428
```
424-
NODE_OPTIONS="--max-old-space-size 8192" npm start
429+
NODE_OPTIONS="--max-old-space-size=8192" npm start
425430
```
426431

427432
Examples will be available at `http://HOST:PORT/examples/EXAMPLE_NAME`.

examples/es6-jquery/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Example: ES6 (jQuery)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"angular": false,
3+
"e2e_ready": true
4+
}

examples/es6-jquery/package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/es6-jquery/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "webpack-babel-multi-target-plugin-example-es6-jquery",
3+
"version": "0.0.0",
4+
"dependencies": {
5+
"jquery": "^3.4.1"
6+
}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const foo = () => console.log('commonjs 5')
2+
3+
module.exports = foo

examples/es6-jquery/src/entry.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
console.log('entry!')
2+
3+
import { GTG } from '../../_shared/constants'
4+
import { createDom } from '../../_shared/es6-dom'
5+
import { makeItGreen } from '../../_shared/make.it.green'
6+
import { es6 } from '../../_shared/logos'
7+
import ready from '../../_shared/ready'
8+
9+
require('./commonjs-five')
10+
11+
Promise.all([])
12+
13+
async function init() {
14+
const dom = createDom('es6-jquery', es6)
15+
16+
makeItGreen()
17+
18+
dom.setStatus(GTG)
19+
ready()
20+
}
21+
22+
$(init)

examples/es6-jquery/src/four.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('4')

0 commit comments

Comments
 (0)