How to use @neutrinojs/compile-loader - 3 common examples

To help you get started, we’ve selected a few @neutrinojs/compile-loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BigDataBoutique / ElastiQuill / admin-frontend / .neutrinorc.js View on Github external
        .tap(options => merge({
          plugins: [
            [require.resolve('@babel/plugin-proposal-decorators'), {legacy: true}],
            [require.resolve('@babel/plugin-proposal-class-properties'), {loose: true}],
            require.resolve('@babel/plugin-transform-classes'),
            [require.resolve('@babel/plugin-transform-regenerator'), {asyncGenerators: false}],
            require.resolve('@babel/plugin-transform-runtime')
          ]
        }, options));
    }
github aranja / tux / utilities / neutrino-preset-tux / src / middlewares / ssr.ts View on Github external
.tap(existing =>
      compile.merge(existing, {
        plugins: [
          ...(options.polyfills.async
            ? [[require.resolve('fast-async'), { spec: true }]]
            : []),
          require.resolve('babel-plugin-dynamic-import-node'),
        ],
        presets: [
          [
            'babel-preset-env',
            {
              debug: neutrino.options.debug,
              targets: { node: '6.10' },
              modules: false,
              useBuiltIns: true,
              exclude: options.polyfills.async
                ? ['transform-regenerator', 'transform-async-to-generator']
github metricsgraphics / react-metrics-graphics / .neutrinorc.js View on Github external
              .tap(options => merge(options, {
                presets: [
                  ['babel-preset-env', {
                    targets: {
                      ie: 9
                    },
                    useBuiltIns: false,
                    modules: false
                  }]
                ]
              }));
    }

@neutrinojs/compile-loader

Neutrino middleware for compiling JavaScript using Babel configuration

MPL-2.0
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis

Popular @neutrinojs/compile-loader functions