Comments (3)
This is interesting http://2ality.com/2017/06/pkg-esnext.html
It says this for the module key: module is restricted to what is currently supported by Node.js.
and if you want the raw code, you need another key like jsnext:main
.
Oh, I just tested something. In my project, if I put the babel config in babel-loader like this
use: {
loader: 'babel-loader',
options: {
"plugins" : ["transform-object-rest-spread", "transform-class-properties"],
"presets" : ["es2015", "react"]
},
include: [
path.join(__dirname, 'js'),
path.join(__dirname, 'node_modules/react-tweet-embed')
]
}
},
instead of using a .babelrc file, it will completely ignore the .babelrc file in your package, and it will transpile ok.
So I guess I have a workaround for my issue. But please consider transpiling to ES5 for the module key. Thanks.
from react-tweet-embed.
@vincentfretin where I used this, I transpiled all the code with babel, even inside the node_modules.
I will let it transpile to ES5 in 1.0.8 for the built file
from react-tweet-embed.
Thanks. Perfect.
from react-tweet-embed.
Related Issues (20)
- window.twttr.ready is not a function HOT 4
- "ReferenceError: Can't find variable: callbacks" on Safari iOS when bundled w/ webpack HOT 2
- Invariant Violation: Expected a component class, got [object Object] HOT 3
- not loading inside Cordova HOT 2
- 'window.twittr' is not a sufficient check HOT 3
- Provide a precompiled version or use vanilla JS HOT 1
- add e2e test in pupeteer HOT 2
- Source code for the latest version? HOT 2
- Feature request: text placeholder prop HOT 4
- Firefox HOT 1
- show/hide media HOT 2
- React-Native HOT 1
- ID reserved word HOT 1
- disable console log HOT 1
- How to use this library in a React Native project
- placeholder is not exposed as prop HOT 1
- Could not resolve dependency: npm peer react@"^15.0.0 || ^16.0.0" from [email protected] HOT 1
- process is not defined HOT 2
- Can we make isLocal configurable? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-tweet-embed.