Skip to content

Commit

Permalink
Update babel, use jsx-runtime for createIcon.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed May 7, 2024
1 parent 5318a14 commit 5ed00ae
Show file tree
Hide file tree
Showing 4 changed files with 1,689 additions and 1,321 deletions.
3 changes: 1 addition & 2 deletions generate-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ function checkNameClashes (icons) {
fse.writeFileSync(
path.join(__dirname, 'package', 'util', 'createIcon.js'),
babel.transform(fse.readFileSync(path.join(__dirname, 'src', 'util', 'createIcon.js')), {
presets: ['@babel/preset-react', '@babel/preset-env'],
plugins: ['@babel/plugin-proposal-class-properties'],
presets: [['@babel/preset-react', { runtime: "automatic" }], '@babel/preset-env'],
compact: process.env.NODE_ENV === 'production'
}).code
)
Expand Down
Loading

0 comments on commit 5ed00ae

Please sign in to comment.