Prismic CLI version (know it by running prismic --version): 3.8.0-beta.0 & previous
Reproduction
npx create-nuxt-app (default preset is fine)
edit nuxt.config.js to have it export a CommonJS module instead of an ES6 one: export default {} > module.exports = {}
prismic sm --setup
What is expected?
Slice Machine setup should at least warn user & hint them to this part of the doc if it detects a CommonJS export. At best it also handles editing config if it's a CommonJS export?
What is actually happening?
Slice Machine fails to edit the config (no modules get registered) and apply a weird formatting.
Any additional information
No clue on that one~ Not sure though if CommonJS exports are allowed there, they work well with Nuxt though 🤔 perhaps it's a non-issue and I've been wrong this whole time ^^'
Version
prismic --version
): 3.8.0-beta.0 & previousReproduction
npx create-nuxt-app
(default preset is fine)nuxt.config.js
to have it export a CommonJS module instead of an ES6 one:export default {}
>module.exports = {}
prismic sm --setup
What is expected?
Slice Machine setup should at least warn user & hint them to this part of the doc if it detects a CommonJS export. At best it also handles editing config if it's a CommonJS export?
What is actually happening?
Slice Machine fails to edit the config (no modules get registered) and apply a weird formatting.
Any additional information
No clue on that one~ Not sure though if CommonJS exports are allowed there, they work well with Nuxt though 🤔 perhaps it's a non-issue and I've been wrong this whole time ^^'
Not handled by https://github.com/prismicio/babel-transform-config basically.