Skip to content

Commit b02953d

Browse files
remove _getBabelDefaultOptions method
1 parent 873d982 commit b02953d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/ctx.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,10 @@ class Ctx implements IStringToReactApi {
1818
}
1919
this._getBabel = () => Babel;
2020
}
21-
_getBabelDefaultOptions(): TransformOptions {
22-
return {
23-
sourceMaps: 'inline',
24-
sourceType: 'module',
25-
};
26-
}
2721
_checkBabelOptions(babelOptions: TransformOptions) {
2822
if (Object.prototype.toString.call(babelOptions) !== '[object Object]') {
2923
throw new Error(`babelOptions prop of string-to-react-component element should be an object.`);
3024
}
31-
Object.assign(babelOptions, this._getBabelDefaultOptions(), babelOptions);
3225
if (Object.prototype.hasOwnProperty.call(babelOptions, 'presets') === false) {
3326
babelOptions.presets = ['react'];
3427
} else {

0 commit comments

Comments
 (0)