-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove @vue/compiler-sfc This is not needed to run Vue according to package README -Size: 11.05mb * Delegate Babel to the extension.config.js We replaced Babel with SWC but Babel is one of the largest dependencies in the project, so we better remove it. babel-preset-modern-browser-extension - Size: 26.03mb @babel/core - Size: 11.23mb babel-loader - Size: 1.5mb Total: 38.31mb * Remove Tailwind from dependencies Tailwind is a dependency required by users, so it should be resolved by the user's project. tailwindcss - Size: 15mb * Delegate Stylelint to the extension.config.js stylelint - Size: 8.15mb stylelint-webpack-plugin - Size: 7.22mb stylelint-config-standard-scss - Size: 2.5mb Total: 17.87mb * Remove SASS SASS is required by the user extension already. sass - Size: 6.29mb * Remove LESS LESS is required by the user extension already. less - Size: 4.57mb * Remove browser-extension-manifest-fields Not used anymore browser-extension-manifest-fields Size: 4.64mb * Replace detect-package-manager with package-manager-detector
- Loading branch information
1 parent
626c352
commit d9362e1
Showing
23 changed files
with
93 additions
and
405 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"presets": [], | ||
"presets": ["modern-browser-extension"], | ||
"plugins": [] | ||
} |
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,17 @@ | ||
/** @type {import('extension-develop').FileConfig} */ | ||
module.exports = { | ||
config: (config) => { | ||
config.module.rules.push( | ||
// https://webpack.js.org/loaders/babel-loader/ | ||
// https://babeljs.io/docs/en/babel-loader | ||
{ | ||
test: /\.(js|mjs|jsx|ts|tsx)$/, | ||
include: __dirname, | ||
exclude: /node_modules/, | ||
loader: require.resolve('babel-loader') | ||
} | ||
) | ||
|
||
return config | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"extends": "stylelint-config-standard-scss" | ||
} |
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 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
Oops, something went wrong.