Skip to content
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

Revert 3018 f100 zk 4928 #3023

Merged
merged 4 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 0 additions & 87 deletions babel-plugin-expose-private-functions-and-variables.js

This file was deleted.

17 changes: 6 additions & 11 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,18 @@ module.exports = function (api) {

return {
presets: [
['@babel/preset-env', {'modules': 'commonjs',
['@babel/preset-env', {'modules': false,
"exclude": ['@babel/plugin-transform-typeof-symbol']}],
'@babel/preset-typescript'
],
plugins: [
['@babel/plugin-transform-modules-commonjs', {
loose: true,
strictMode: false,
['@babel/plugin-transform-typescript', {
'allowDeclareFields': true
}],
['@babel/plugin-transform-runtime', {'corejs': 3}],
["@babel/plugin-proposal-decorators", { "legacy": true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'./babel-plugin-expose-private-functions-and-variables',
],
overrides: [{
test: /[\\/]ext[\\/]//* treat as script for 3rd-party library */,
sourceType: 'script'
}]
'remove-import-export',
]
};
};
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ function typescript_build(src, dest, force, since) {
// overwrite (stream 4 explicitly ignores `*.js` in `gulp.src()`).
return mergeStream(
// Transpile single files with babel which are not siblings of some `index.ts`
// Only for JS files, because *.ts will be included by `index.ts`
gulp.src('/**/@(*.js)', { // stream 1
gulp.src('/**/@(*.ts|*.js)', { // stream 1
...defaultSrcOptions,
ignore: ['/**/*.d.ts'],
})
Expand Down
Loading
Loading