Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Nov 7, 2023
1 parent 38a86bf commit 3df8588
Show file tree
Hide file tree
Showing 6 changed files with 2,792 additions and 3,941 deletions.
15 changes: 6 additions & 9 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const path = require('node:path');

const corejsVersion = require(path.join(
path.dirname(require.resolve('core-js')),
'package.json'
)).version;
const corejsVersion = require(
path.join(path.dirname(require.resolve('core-js')), 'package.json')
).version;

module.exports = function (api) {
api.cache(true);

const presets = [
[
'@babel/env',
Expand All @@ -24,11 +25,7 @@ module.exports = function (api) {
new RegExp(`node_modules\\${path.sep}(?!(vueton|wesa)\\${path.sep}).*`)
];

const parserOpts = {plugins: ['importAssertions']};

if (api.env('production')) {
plugins.push('lodash');
}
const parserOpts = {plugins: ['importAttributes']};

return {presets, plugins, ignore, parserOpts};
};
Loading

0 comments on commit 3df8588

Please sign in to comment.