Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.babelrc support? #145

Closed
strarsis opened this issue Jul 20, 2018 · 2 comments
Closed

.babelrc support? #145

strarsis opened this issue Jul 20, 2018 · 2 comments

Comments

@strarsis
Copy link

strarsis commented Jul 20, 2018

I want to add support for dynamic import syntax using this ,babelrc:

{
  "plugins": ["syntax-dynamic-import"]
}

However, it seems to be ignored.

buble is used with webpack (roots.io sage9 theme).

// ...
      {
        test: /\.js$/,
        exclude: [/node_modules(?![/|\\](bootstrap|foundation-sites))/],
        use: [
          { loader: 'cache' },
          { loader: 'buble', options: { objectAssign: 'Object.assign' } },
        ],
      },
// ...

This issue may be related: babel/babel-loader#552

{ loader: 'buble', options: { objectAssign: 'Object.assign', babelrc: true } },

doesn't work either.

@fskreuz
Copy link
Contributor

fskreuz commented Jul 23, 2018

I'm not sure what you're trying to do. While Babel and Buble are both ESNext-to-ESNow transpilers, they are totally different implementations. Buble doesn't consume Babel configuration or plugins at all.

If you meant imlementing an rc file for Buble (i.e. have it scan for a .bublerc if no config is passed), that would totally be possible. However, it will still be incompatible with .babelrc for the said reason above.

@strarsis
Copy link
Author

@fskreuz: Thanks. So for this particular project I would have to switch to Babel for supporting this feature (syntax-dynamic-import).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants