Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

How to locate babel.config.js #279

Closed
kopax opened this issue Dec 16, 2018 · 4 comments
Closed

How to locate babel.config.js #279

kopax opened this issue Dec 16, 2018 · 4 comments

Comments

@kopax
Copy link
Contributor

kopax commented Dec 16, 2018

We have removed .babelrc in profit of babel.config.js, after upgrading from rollup v0.57 to latest, we encounter the following error:


> 1659 | export default ColorWrapper;
       |       ^ Unexpected token: keyword (default)
  1660 | export { ColorMock };
[!] (uglify plugin) Error: Unexpected token: keyword (default)
SyntaxError: Unexpected token: keyword (default)

We use babelrc: false, Is there a way to select the babel.config.js file?

@nicolo-ribaudo
Copy link
Contributor

Is configFile: "path/to/babel.config.js" what you are looking for?

@kopax
Copy link
Contributor Author

kopax commented Dec 16, 2018

Thanks you, it seems that I have passed the configuration to babel plugin, however, I keep having error while trying to build with rollup.

This happen after I have upgraded rollup from 0.57.1 to latest.

@kopax kopax closed this as completed Dec 16, 2018
@nicolo-ribaudo
Copy link
Contributor

What is your directory structure?

@kopax
Copy link
Contributor Author

kopax commented Dec 16, 2018

Thanks, I have found this is not rolated to that module, I have opened another issue here

DrSensor added a commit to DrSensor/bot-byte that referenced this issue Feb 4, 2019
- [npm start] remove typescript declaration file
- [npm start] use babel with typescript preset
- [npm build] use typescript compiler

references:
- rollup/rollup-plugin-babel#255
- rollup/rollup-plugin-typescript#129
- rollup/rollup-plugin-babel#271
- rollup/rollup-plugin-babel#279
- microsoft/TypeScript-Babel-Starter#29
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

2 participants