quasar-cli icon indicating copy to clipboard operation
quasar-cli copied to clipboard

[Request] Support for babel.config.js

Open Akaryatrh opened this issue 6 years ago • 0 comments

Hi all,

For now Quasar supports only .babelrc . That's an issue when using Babel 7 combined with babel-jest and wanted to transpile es dependencies (Eg. lodash-es) while .babelrc rules won't apply to node_modules (and therefore transformIgnorePatterns from jest are also not applied).

Then a babel.config.js is needed. BUT, quasar-cli complains for a missing .babelrc if i replace it.

For now, i'm doing this, but It's a dirty workaround:

// babel.config.js
const fs = require('fs')
const rules = fs.readFileSync('./.babelrc', 'utf-8')
module.exports = JSON.parse(rules)

Then => is babel.config.js format planned to be supported?

Akaryatrh avatar Sep 12 '18 10:09 Akaryatrh