2022-08-08 16:41:30 +08:00
|
|
|
export default {
|
|
|
|
// more father 4 config: https://github.com/umijs/father-next/blob/master/docs/config.md
|
|
|
|
esm: {
|
|
|
|
output:'es'
|
|
|
|
},
|
|
|
|
cjs: {
|
2022-10-10 16:28:42 +08:00
|
|
|
|
2022-08-08 16:41:30 +08:00
|
|
|
output:'lib'
|
|
|
|
},
|
2022-11-28 11:51:39 +08:00
|
|
|
umd: {
|
|
|
|
output: 'dist',
|
|
|
|
externals: {
|
|
|
|
"mapbox-gl": "mapboxgl",
|
|
|
|
},
|
|
|
|
},
|
2022-10-10 16:28:42 +08:00
|
|
|
platform:'browser',
|
2022-08-08 16:41:30 +08:00
|
|
|
autoprefixer: {
|
|
|
|
browsers: ['IE 11', 'last 2 versions'],
|
|
|
|
},
|
|
|
|
extraBabelPresets: [
|
|
|
|
'@babel/preset-typescript'
|
|
|
|
],
|
|
|
|
extraBabelPlugins: [
|
|
|
|
// 开发模式下以原始文本引入,便于调试
|
|
|
|
[
|
|
|
|
// import glsl as raw text
|
|
|
|
'babel-plugin-inline-import',
|
|
|
|
{
|
|
|
|
extensions: [
|
|
|
|
'.glsl'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'transform-import-css-l7'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|