Repository navigation
build: remove babel from the build setup - #2679
Open
lucas-koehler wants to merge 1 commit into
Open
lucas-koehler wants to merge 1 commit into
lucas-koehler wants to merge 1 commit into
Conversation
Fixes #2651. The base webpack config ran babel-loader with @babel/preset-env after ts-loader. It is only used by the dev servers of the React material and vanilla renderers, which don't need ES5 output, so ts-loader is enough. The Vue packages also used babel: rollup-plugin-babel in the library builds, a babel.config.js, and @vue/cli-plugin-babel for the vue-cli dev server and tests. All of this is removed. Babel transpiled the ESM and CJS bundles of @jsonforms/vue and @jsonforms/vue-vanilla to ES5, because preset-env had no targets. Both bundles now use the tsconfig target ES2021, like the ESM bundles of core and react. The CJS target: 'ES5' override was placed outside compilerOptions and never applied, so it is removed as well. MIGRATION.md documents the change. Also removes leftovers that only existed for babel or were unused: - @babel/preset-env, babel-loader and core-js from the root - core-js from vue and vue-vuetify - @vue/vue3-jest and @types/jest from vue-vanilla, which tests with mocha - the unused ava config in react, which referenced babel-register Babel is still installed transitively through jest, @vue/vue3-jest and the vue-cli tooling.
✅ Deploy Preview for jsonforms-examples ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2651.
The base webpack config ran babel-loader with @babel/preset-env after ts-loader. It is only used by the dev servers of the React material and vanilla renderers, which don't need ES5 output, so ts-loader is enough.
The Vue packages also used babel: rollup-plugin-babel in the library builds, a babel.config.js, and @vue/cli-plugin-babel for the vue-cli dev server and tests. All of this is removed.
Babel transpiled the ESM and CJS bundles of @jsonforms/vue and @jsonforms/vue-vanilla to ES5, because preset-env had no targets. Both bundles now use the tsconfig target ES2021, like the ESM bundles of core and react. The CJS target: 'ES5' override was placed outside compilerOptions and never applied, so it is removed as well. MIGRATION.md documents the change.
Also removes leftovers that only existed for babel or were unused:
Babel is still installed transitively through jest, @vue/vue3-jest and the vue-cli tooling.