We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 216a5ca commit 8d7843aCopy full SHA for 8d7843a
test/functional.js
@@ -1075,6 +1075,22 @@ module.exports = {
1075
});
1076
1077
1078
+ it('Babel is executed on .js files', (done) => {
1079
+ const config = createWebpackConfig('www/build', 'dev');
1080
+ config.setPublicPath('/build');
1081
+ config.addEntry('main', './js/class-syntax');
1082
+
1083
+ testSetup.runWebpack(config, (webpackAssert) => {
1084
+ // check that babel transformed the class
1085
+ webpackAssert.assertOutputFileDoesNotContain(
1086
+ 'main.js',
1087
+ 'class A {}'
1088
+ );
1089
1090
+ done();
1091
+ });
1092
1093
1094
it('Babel can be configured via .babelrc', (done) => {
1095
// create the .babelrc file first, so we see it
1096
const appDir = testSetup.createTestAppDir();
0 commit comments