Skip to content

Commit

Permalink
Remove stripSymbolObservableMethodPlugin (#4988)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored Jul 18, 2024
1 parent 9bc1b3e commit cbec1a5
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
const { NODE_ENV } = process.env;
const isTest = NODE_ENV === 'test';

const stripSymbolObservableMethodPlugin = ({ types: t }) => {
const isSymbolObservable = t.buildMatchMemberExpression('Symbol.observable');
return {
visitor: {
Class(path) {
path
.get('body.body')
.filter(
(p) => p.isClassMethod() && isSymbolObservable(p.get('key').node)
)
.forEach((p) => p.remove());
}
}
};
};

module.exports = {
assumptions: {
constantReexports: true, // only matters for tests (since only there we transpile to CJS using Babel), it makes debugging easier
Expand Down Expand Up @@ -69,8 +53,5 @@ module.exports = {
presets: ['babel-preset-solid']
}
],
plugins: [
stripSymbolObservableMethodPlugin,
'@babel/proposal-class-properties'
]
plugins: ['@babel/proposal-class-properties']
};

0 comments on commit cbec1a5

Please sign in to comment.