Comments (3)
Yes and no.
- Node does't support ES6 modules yet (only with feature flags as far I know)
- Webpack 1 doesn't support ES6 modules
- Webpack 2 brings native support for ES6 modules.
Enabling feature flags to support ES6 modules isn't a option when you want to use webpack 1, cause webpack would not bundle your code properly.
So, if you want to use ES6 modules with webpack 1 you have to use a loader (e.g. babel with es2015-preset) or use the beta version of webpack 2.
Furthermore you need to precompile all es6 features in your code, that node doesn't understand yet.
To come back to the initial question - Yes, you can use all ES6 features with a ES6 compiler like babel.
from mocha-webpack.
@ozluy if you got this working, I'd be interested to see what you ended up with.
from mocha-webpack.
Unfortunately I could not find solution for that @rosskevin. Happy hacking
from mocha-webpack.
Related Issues (20)
- Error when using `--watch` flag as documented HOT 1
- An in-range update of loader-utils is breaking the build 🚨 HOT 6
- An in-range update of interpret is breaking the build 🚨 HOT 1
- An in-range update of chalk is breaking the build 🚨 HOT 1
- Dies silently HOT 1
- RUNTIME EXCEPTION Exception occurred while loading your tests Cannot read property 'assign' HOT 1
- Compatibility issue with webpack > 4.28.3 HOT 5
- `Mochapack` a fork of `mocha-webpack` released with Mocha 6 support HOT 14
- An in-range update of source-map-support is breaking the build 🚨 HOT 9
- An in-range update of is-glob is breaking the build 🚨 HOT 1
- An in-range update of tiny-worker is breaking the build 🚨 HOT 2
- Cannot find module - VueSSRServerPlugin
- Solved: Mocha 6, Webpack 4, Cyclic dependencies Errors HOT 3
- jsdom is not a function + SecurityError localStorage workaround
- allow-uncaught ?
- Mocha Chai vue testing a vue component : this.$notify is not a function HOT 1
- Conflict: Multiple assets emit to the same filename bundle.js
- WEBPACK Failed to compile with 1 error TypeError: mocha.useColors is not a function HOT 2
- You may need an appropriate loader
- Webpack 5 support HOT 2
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 mocha-webpack.