-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
6,041 additions
and
0 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,16 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
max_line_length = 110 | ||
|
||
[*.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
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 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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,30 @@ | ||
# git - mergetool | ||
*.orig | ||
|
||
# Node - Logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Node - Dependencies | ||
node_modules | ||
|
||
# Temporary folder | ||
/tmp | ||
|
||
# OS - OSX | ||
.DS_Store | ||
|
||
# OS - Windows | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# OS - Linux (KDE directory preferences) | ||
.directory | ||
|
||
# Editor - VIM | ||
[._]*.s[a-w][a-z] | ||
[._]s[a-w][a-z] | ||
*~ | ||
|
||
# Editor - JetBrains | ||
.idea/ |
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 @@ | ||
v18.12.1 |
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,22 @@ | ||
# webpack-cli-repro-babel | ||
|
||
> Minimal Webpack CLI 5 bug reproduction: https://github.com/webpack/webpack-cli/issues/3559 | ||
## Build | ||
|
||
```sh | ||
npm install && npm run build | ||
``` | ||
|
||
Gives: | ||
|
||
> SyntaxError: Unexpected token 'export' | ||
Note that when replacing Webpack CLI version in `package.json`: | ||
|
||
```diff | ||
- "webpack-cli": "^5.0.1" | ||
+ "webpack-cli": "^4.10.0" | ||
``` | ||
|
||
And re-installing, the build works fine! |
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,12 @@ | ||
const presetEnv = require("@babel/preset-env"); | ||
|
||
// Note that this Babel config is only aimed to be used in a Node.js execution context | ||
// Webpack has its own Babel configuration (targeting browsers) | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
browserslistConfigFile : false, | ||
targets : { node: "current" }, | ||
presets : [presetEnv] | ||
}; | ||
}; |
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 @@ | ||
console.log("Hello"); |
Oops, something went wrong.