Skip to content

Unexpected token export #59

@Amertz08

Description

@Amertz08

I'm using the babel extension and running into the titled error still.

// In[1]:
%load_ext babel
// In[2]:
%%babel
import { get_base_url, test_successful_resp, test_required_param } from '../testlib';

Given testlib.js

const assert = require('assert');

export const get_base_url = (path) => {
	const base = process.env.DC_API_URL;

	assert.notEqual(base, undefined, 'DC_API_URL not found');
	return `${base}/beta/${path}`;
};
// more functions defined in the same manner

I would think the babel extension would resolve this but I guess I'm not understanding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions