All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.configs.webpack.rules.js Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
module.exports = [
  {
    test: /\.svg$/i,
    use: [
      {
        loader: "@svgr/webpack",
        options: { svgoConfig: { plugins: ["preset-default"] } },
      },
    ],
  },
  {
    test: /\.ts$/,
    exclude: /node_modules/,
    use: {
      loader: "babel-loader",
      options: {
        presets: ["@babel/preset-env", "@babel/preset-typescript"],
      },
    },
  },
  {
    test: /\.js$/,
    include:
      /node_modules\/@bigbinary\/neeto-commons-frontend\/initializers\/i18n/,
    use: { loader: "babel-loader", options: { plugins: ["preval"] } },
  },
  {
    test: /\.m?js$/,
    resolve: {
      fullySpecified: false, // allows webpack to ignore some package rules as the Strict EcmaScript Module mode.
    },
  },
  { test: /\.js$/, enforce: "pre", use: ["source-map-loader"] },
];




© 2015 - 2024 Weber Informatics LLC | Privacy Policy