bluewings/pug-as-jsx-loader

How can I avoid creating *.pug.transpiled files automatically?

Closed this issue · 2 comments

I don't want the files *.pug.transpiled to be created automatically. How can I disable it?

@bluewings

@eduardrock

From version 1.0.35, You can disable the creation of * .pug.transpiled.jsx files by adding the transfiledFile option.

webpack.config.dev.js

// webpack.config.js
{
  test: /\.pug$/,
  include: paths.appSrc,
  use: [
    require.resolve('babel-loader'),
    {
      loader: require.resolve('pug-as-jsx-loader'),
      options: {
        transpiledFile: false,
      },
    },
  ],
},

@bluewings, but my webpack.config.js file is like this:

      {
        test: /\.(pug|js|jsx)$/,
        loaders: ['babel-loader?presets[]=es2015&presets[]=react', 'pug-as-jsx-loader'],
      },

In which part do I have to put that code?