Comments (7)
I am sorry for the late reply, i got very busy recently.
Babel shouldnt transpile the node_module folder libraries.
You need to change this :
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader'
}
]
}
To this :
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
}
]
}
It should do the trick !
Keep me updated :)
from vue-slideout.
Hey, thanks for reporting the issue. I will look into it tomorrow, does it work if you remove the .babelrc
file from the lib folder?
If not, can you try to run npm install babel-plugin-transform-runtime
?
Ill get back to you tomorrow !
from vue-slideout.
I did not manage to reproduce with webpack, can you tell more about your project setup ?
from vue-slideout.
Sorry for my late reply. It works if I manually remove the .babelrc
file from your project root.
Concerning my webpack config, I am loading my js
files using babel-loader:
Extract from my webpack.config.js:
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader'
}
]
}
I'm using webpack v2.5.1. The babel versions I'm using:
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.24.1",
Anything else you require?
from vue-slideout.
Since there were no updates, i am closing this issue. If you face this issue again feel free to reopen it !
from vue-slideout.
Sorry for also being late. Your suggestion worked for me. Many thanks!
from vue-slideout.
Cheers
from vue-slideout.
Related Issues (16)
- Can't get it work HOT 6
- static resources HOT 2
- how to keep it open by default? HOT 2
- Event emitter should dispatch the relative data HOT 2
- .toggle() is not a function HOT 1
- Error when using with nuxt.js HOT 5
- Setting touch prop/option to false doesn't seem to work HOT 2
- toggleSelectors match only the first instance of element HOT 1
- Feature Request - Make padding dynamic HOT 2
- Error "Slideout is not a constructor" is displayed when used with CDN
- Always on HOT 10
- can't scroll slider down HOT 14
- please,how to open a menu by js code,but dom click HOT 1
- 您好,使用您这个组件发现滑动太灵敏了,体验不是很好 HOT 12
- Can't have more than one instance of a toggle-selector HOT 5
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 vue-slideout.