Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

react preset is not working #67

@kesavkolla

Description

@kesavkolla

I've the following config

    SystemJS.config({
        defaultJSExtensions: true,
        meta: {
            '*.jsx': {
                'loader': 'plugin-babel',
                'format': 'cjs',
                'babelOptions': {
                    'modularRuntime': false,
                    stage1: true,
                    presets: ['babel-preset-react']
                }
            }
        },
        map: {
            'plugin-babel': 'unpkg:systemjs-plugin-babel@latest/plugin-babel.js',
            'systemjs-babel-build': 'unpkg:systemjs-plugin-babel@latest/systemjs-babel-browser.js',
            'babel-preset-react': 'npm:babel-preset-react',
            'react': 'unpkg:react@15.3.2/dist/react.min.js',
            'react-dom': 'unpkg:react-dom@15.3.2/dist/react-dom.min.js',
            'react-bootstrap': 'unpkg:react-bootstrap@0.30.5/dist/react-bootstrap.min.js'
        },
        transpiler: 'plugin-babel',
        paths: {
            '*': 'https://registry.jspm.io/*.js',
            'npm:*': 'https://npm.jspm.io/*.js',
            'github:*': 'https://github.jspm.io/*.js',
            'unpkg:*': 'https://unpkg.com/*',
        },
        packages: {
            'unpkg:*': {
                defaultExtension: false
            },
            './': {
                defaultExtension: false
            }
        }
    });
    SystemJS.import('./app.jsx').then(function (m) {
        console.log(m);
    });

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions