标签:导出 name env min star OLE targe get default
npm install --save-dev @babel/core @babel/cli @babel/preset-env @babel/node
npm install --save @babel/polyfill
const presets = [
[‘@babel/env‘, {
targets: {
edage: ‘17‘,
firefox: ‘60‘,
chrome: ‘67‘,
safari: ‘11.1‘
}
}]
]
export default {
a,
b,
c
}
import m1 from ‘./m1‘;
console.log(m1); // {a,b,c}
export let s1 = 10
import {s1} from ‘./m1.js‘
同时使用:
export let name = ‘admin‘
export default {
a,
b,
show
}
import m1,{name} from "./m1.js"
console.log(m1)
标签:导出 name env min star OLE targe get default
原文地址:https://www.cnblogs.com/zhuxiang1633/p/13701026.html