Load functions from one external javascript file to another

0

For organizational reasons, I would like my content to be a little more "classified" and I am creating .js files that share content and functions.

The problem comes when I try to incorporate that content into other .js files, I'm using import / export but I can not get it to work:

file1.js

 export default function puntos() {mis datos y funciones}

Primate.js file

import {puntos} from 'fichero1';

It gives me errors like this:

    
asked by Pelayo 22.05.2018 в 11:20
source

0 answers