-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Core: Support custom addons using JSX #9648
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2828e23
MOVE babel-loader_function to preview folder & ADD COPY of tailored f…
ndelangen 65c06b6
CLEANUP of dependencies & reduce the likely overkill babel config
ndelangen 059031a
Merge branch 'next' into fix/9421-local-addons
ndelangen 48f196e
FIX lockfile
ndelangen abb3bfe
FIX lockfiles & package.json
ndelangen 9330764
SORT package.json
ndelangen e7483bc
Merge branch 'next' into fix/9421-local-addons
ndelangen 55f7f8e
FIX ember - seems to merging of preview babel config and manager babe…
ndelangen 4a7135c
CLEANUP
ndelangen 353c4db
Merge branch 'next' into fix/9421-local-addons
ndelangen 0f5b841
REMOVE babel-6 cli fixture
ndelangen 07eaf93
FIX lockfile
ndelangen 1c4de80
ADD TS support
ndelangen b3b5c81
FIX compilation of node_modules & dist
ndelangen 033153f
Merge branch 'next' into fix/9421-local-addons
ndelangen 072c7be
REMOVE the error-throwing marko example story
ndelangen 0998319
Merge branch 'next' into fix/9421-local-addons
ndelangen d489e65
Merge branch 'next' into fix/9421-local-addons
shilman 997c224
FIX paths
ndelangen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { includePaths } from '../config/utils'; | ||
|
||
export default () => ({ | ||
test: /\.(mjs|tsx?|jsx?)$/, | ||
use: [ | ||
{ | ||
loader: require.resolve('babel-loader'), | ||
options: { | ||
sourceType: 'unambiguous', | ||
presets: [ | ||
[ | ||
require.resolve('@babel/preset-env'), | ||
{ shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }, | ||
], | ||
require.resolve('@babel/preset-typescript'), | ||
require.resolve('@babel/preset-react'), | ||
], | ||
plugins: [ | ||
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }], | ||
require.resolve('@babel/plugin-proposal-export-default-from'), | ||
require.resolve('@babel/plugin-syntax-dynamic-import'), | ||
[ | ||
require.resolve('@babel/plugin-proposal-object-rest-spread'), | ||
{ loose: true, useBuiltIns: true }, | ||
], | ||
require.resolve('babel-plugin-macros'), | ||
], | ||
}, | ||
}, | ||
], | ||
include: includePaths, | ||
exclude: [/node_module/, /dist/], | ||
}); |
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
File renamed without changes.
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 |
---|---|---|
|
@@ -653,7 +653,7 @@ | |
"@babel/helper-create-class-features-plugin" "^7.7.4" | ||
"@babel/helper-plugin-utils" "^7.0.0" | ||
|
||
"@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.3.3", "@babel/plugin-proposal-class-properties@^7.5.5", "@babel/plugin-proposal-class-properties@^7.7.0", "@babel/plugin-proposal-class-properties@^7.8.3": | ||
"@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.3.3", "@babel/plugin-proposal-class-properties@^7.5.5", "@babel/plugin-proposal-class-properties@^7.8.3": | ||
version "7.8.3" | ||
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.8.3.tgz#5e06654af5cd04b608915aada9b2a6788004464e" | ||
integrity sha512-EqFhbo7IosdgPgZggHaNObkmO1kNUe3slaKu54d5OWvy+p9QIKOzK1GAEpAIsZtWVtPXUHSMcT4smvDrCfY4AA== | ||
|
@@ -705,7 +705,7 @@ | |
"@babel/helper-plugin-utils" "^7.0.0" | ||
"@babel/plugin-syntax-export-default-from" "^7.2.0" | ||
|
||
"@babel/plugin-proposal-export-default-from@^7.2.0", "@babel/plugin-proposal-export-default-from@^7.5.2": | ||
"@babel/plugin-proposal-export-default-from@^7.2.0", "@babel/plugin-proposal-export-default-from@^7.5.2", "@babel/plugin-proposal-export-default-from@^7.8.3": | ||
version "7.8.3" | ||
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.8.3.tgz#4cb7c2fdeaed490b60d9bfd3dc8a20f81f9c2e7c" | ||
integrity sha512-PYtv2S2OdCdp7GSPDg5ndGZFm9DmWFvuLoS5nBxZCgOBggluLnhTScspJxng96alHQzPyrrHxvC9/w4bFuspeA== | ||
|
@@ -777,7 +777,7 @@ | |
"@babel/helper-plugin-utils" "^7.8.0" | ||
"@babel/plugin-syntax-object-rest-spread" "^7.8.0" | ||
|
||
"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.2.0", "@babel/plugin-proposal-object-rest-spread@^7.6.2", "@babel/plugin-proposal-object-rest-spread@^7.7.4", "@babel/plugin-proposal-object-rest-spread@^7.8.3": | ||
"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.2.0", "@babel/plugin-proposal-object-rest-spread@^7.7.4", "@babel/plugin-proposal-object-rest-spread@^7.8.3": | ||
version "7.8.3" | ||
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.8.3.tgz#eb5ae366118ddca67bed583b53d7554cad9951bb" | ||
integrity sha512-8qvuPwU/xxUCt78HocNlv0mXXo0wdh9VT1R04WU8HGOfaOob26pF+9P5/lYjN/q7DHOX1bvX60hnhOvuQUJdbA== | ||
|
@@ -845,7 +845,7 @@ | |
dependencies: | ||
"@babel/helper-plugin-utils" "^7.0.0" | ||
|
||
"@babel/plugin-syntax-dynamic-import@^7.2.0", "@babel/plugin-syntax-dynamic-import@^7.7.4", "@babel/plugin-syntax-dynamic-import@^7.8.0": | ||
"@babel/plugin-syntax-dynamic-import@^7.2.0", "@babel/plugin-syntax-dynamic-import@^7.7.4", "@babel/plugin-syntax-dynamic-import@^7.8.0", "@babel/plugin-syntax-dynamic-import@^7.8.3": | ||
version "7.8.3" | ||
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" | ||
integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== | ||
|
@@ -1612,7 +1612,7 @@ | |
"@babel/helper-plugin-utils" "^7.0.0" | ||
"@babel/plugin-transform-typescript" "^7.7.4" | ||
|
||
"@babel/preset-typescript@^7.1.0", "@babel/preset-typescript@^7.3.3": | ||
"@babel/preset-typescript@^7.1.0", "@babel/preset-typescript@^7.3.3", "@babel/preset-typescript@^7.8.3": | ||
version "7.8.3" | ||
resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.8.3.tgz#90af8690121beecd9a75d0cc26c6be39d1595d13" | ||
integrity sha512-qee5LgPGui9zQ0jR1TeU5/fP9L+ovoArklEqY12ek8P/wV5ZeM/VYSQYwICeoT6FfpJTekG9Ilay5PhwsOpMHA== | ||
|
@@ -6247,7 +6247,7 @@ [email protected]: | |
cosmiconfig "^6.0.0" | ||
resolve "^1.12.0" | ||
|
||
babel-plugin-macros@^2.0.0, babel-plugin-macros@^2.7.0: | ||
babel-plugin-macros@^2.0.0, babel-plugin-macros@^2.7.0, babel-plugin-macros@^2.8.0: | ||
version "2.8.0" | ||
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138" | ||
integrity sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg== | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nevermind, i saw your comment above