Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

[Request] Support for babel.config.js #177

Open
Akaryatrh opened this issue Sep 12, 2018 · 0 comments
Open

[Request] Support for babel.config.js #177

Akaryatrh opened this issue Sep 12, 2018 · 0 comments

Comments

@Akaryatrh
Copy link

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 Akaryatrh changed the title Support for babel.config.js [Request] Support for babel.config.js Sep 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant