Skip to content

Commit 1276aa3

Browse files
teodragovicprateekbhForsakenHarmony
authored
Remove fast-async (#1347)
Co-authored-by: Prateek Bhatnagar <[email protected]> Co-authored-by: Leah <[email protected]>
1 parent 6d100d0 commit 1276aa3

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.changeset/thick-clocks-bow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"preact-cli": minor
3+
---
4+
5+
Remove fast-async

packages/cli/lib/lib/babel-config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (env, options = {}) {
1111
targets: {
1212
browsers: options.browsers,
1313
},
14-
exclude: ['transform-regenerator', 'transform-async-to-generator'],
14+
exclude: ['transform-regenerator'],
1515
},
1616
],
1717
],
@@ -23,7 +23,6 @@ module.exports = function (env, options = {}) {
2323
require.resolve('@babel/plugin-proposal-object-rest-spread'),
2424
isProd &&
2525
require.resolve('babel-plugin-transform-react-remove-prop-types'),
26-
[require.resolve('fast-async'), { spec: true }],
2726
require.resolve('babel-plugin-macros'),
2827
[
2928
require.resolve('@babel/plugin-transform-react-jsx'),

packages/cli/lib/lib/webpack/webpack-client-config.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,8 @@ function getBabelEsmPlugin(config) {
165165
: '[name].esm.js',
166166
chunkFilename: '[name].chunk.[chunkhash:5].esm.js',
167167
excludedPlugins: ['BabelEsmPlugin', 'InjectManifest'],
168-
beforeStartExecution: (plugins, newConfig) => {
169-
const babelPlugins = newConfig.plugins;
170-
newConfig.plugins = babelPlugins.filter(plugin => {
171-
return !(Array.isArray(plugin) && plugin[0].includes('fast-async'));
172-
});
173-
plugins.forEach(plugin => {
168+
beforeStartExecution: (plugins) => {
169+
plugins.forEach((plugin) => {
174170
if (
175171
plugin.constructor.name === 'DefinePlugin' &&
176172
plugin.definitions

packages/cli/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"ejs-loader": "^0.5.0",
9696
"envinfo": "^7.8.1",
9797
"esm": "^3.2.25",
98-
"fast-async": "^6.3.7",
9998
"file-loader": "^6.2.0",
10099
"fork-ts-checker-webpack-plugin": "^4.0.4",
101100
"get-port": "^5.0.0",

0 commit comments

Comments
 (0)