forked from parcel-bundler/parcel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:parcel-bundler/parcel into featur…
…e/strip-type-module-attr * 'master' of github.com:parcel-bundler/parcel: Update deps & gitattributes (parcel-bundler#3006) Fix assigning to exports from inside a function in scope hoisting (parcel-bundler#2994) Define __esModule interop flag when requiring ES module from CommonJS (parcel-bundler#2993) Replace module.require in scope hoisting (parcel-bundler#2875) Clear scope cache before crawling (parcel-bundler#2986) Fix CI (parcel-bundler#2990) Shake exports with pure property assignments (parcel-bundler#2979) Update postcss.js (parcel-bundler#2922) Fail immediately if yarn.lock updates are needed (parcel-bundler#2945) # Conflicts: # packages/core/parcel-bundler/package.json # yarn.lock
- Loading branch information
Showing
26 changed files
with
964 additions
and
822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Always use unix style line-endings | ||
* text eol=lf | ||
*.jpeg binary | ||
*.jpg binary | ||
*.png binary | ||
*.wasm binary | ||
*.woff2 binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,6 @@ | |
"@babel/core": "^7.0.0" | ||
}, | ||
"dependencies": { | ||
"@babel/register": "^7.0.0" | ||
"@babel/register": "^7.4.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
.../core/integration-tests/test/integration/scope-hoisting/commonjs/export-assign-scope/a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var b = require('./b'); | ||
|
||
b.setValue(2); | ||
module.exports = b.value; |
3 changes: 3 additions & 0 deletions
3
.../core/integration-tests/test/integration/scope-hoisting/commonjs/export-assign-scope/b.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
exports.setValue = function (value) { | ||
exports.value = value; | ||
} |
1 change: 1 addition & 0 deletions
1
...integration-tests/test/integration/scope-hoisting/commonjs/interop-require-es-module/a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./b'); |
1 change: 1 addition & 0 deletions
1
...integration-tests/test/integration/scope-hoisting/commonjs/interop-require-es-module/b.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default 2; |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/scope-hoisting/commonjs/module-object/a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...re/integration-tests/test/integration/scope-hoisting/es6/default-export-class-rename/a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Test from './b'; | ||
output = Test.create(); |
9 changes: 9 additions & 0 deletions
9
...re/integration-tests/test/integration/scope-hoisting/es6/default-export-class-rename/b.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default class Test { | ||
constructor() { | ||
this.foo = 'bar'; | ||
} | ||
|
||
static create() { | ||
return new Test(); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ration-tests/test/integration/scope-hoisting/es6/default-export-class-rename/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "default-export-class-rename", | ||
"private": true, | ||
"browserslist": ["last 1 Chrome version"] | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/scope-hoisting/es6/pure-assignment/a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import {foo} from './b'; | ||
|
||
output = foo; |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/scope-hoisting/es6/pure-assignment/b.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const foo = 2; | ||
|
||
export function bar() {} | ||
bar.displayName = 'hello'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.