-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Use Parcel instead of Webpack #6597
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
Changes from all commits
fa1f787
aa7c8da
302df93
86797c4
7add73a
bdec9ad
f6db413
b7a2117
0034f4f
3a1f7be
85f3340
ae894c3
0289dce
743cd64
552a30e
ab1dbdd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "extends": "@parcel/config-webextension", | ||
| "transformers": { | ||
| "readme.md": ["parcel-transformer-rgh"] | ||
| }, | ||
| "namers": ["@mischnic/parcel-namer-preserve-structure", "..."], | ||
| "reporters": ["...", "parcel-reporter-clean-dist"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "mangle": false, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "compress": { | ||
| "sequences": false, | ||
| "conditionals": false | ||
| }, | ||
| "output": { | ||
| "beautify": true, | ||
| "indent_level": 2 | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,6 @@ | |
| "overrides": [ | ||
| { | ||
| "files": [ | ||
| "webpack.config.ts", | ||
| "build/*" | ||
| ], | ||
| "rules": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| dist |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // TODO: https://github.com/parcel-bundler/parcel/issues/7639 | ||
| import {Transformer} from '@parcel/plugin'; | ||
|
|
||
| import {getImportedFeatures, getFeaturesMeta} from '../readme-parser'; | ||
|
|
||
| export default new Transformer({ | ||
| async transform({asset}) { | ||
| const code = ` | ||
| module.exports.importedFeatures = ${JSON.stringify(getImportedFeatures())}; | ||
| module.exports.featuresMeta = ${JSON.stringify(getFeaturesMeta())}; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't ask me why |
||
| `; | ||
| asset.setCode(code); | ||
| asset.type = 'js'; | ||
| return [asset]; | ||
| }, | ||
| }); | ||
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.
We lose
relative-cithough 🥲 It'll come "soon"