eb6bcd9c95
Use Moustache to create template and set config in page. Use babel plugins to process GQL (and fix GQL queries). Added service type.
28 lines
497 B
JavaScript
28 lines
497 B
JavaScript
//
|
|
// Copyright 2020 DxOS.org
|
|
//
|
|
|
|
module.exports = {
|
|
presets: [
|
|
'@babel/preset-env',
|
|
'@babel/preset-react'
|
|
],
|
|
plugins: [
|
|
[
|
|
'babel-plugin-inline-import', {
|
|
extensions: [
|
|
'.mustache',
|
|
'.graphql'
|
|
]
|
|
}
|
|
],
|
|
|
|
// Allows export of components importing GQL files (without webpack).
|
|
'import-graphql',
|
|
'inline-json-import',
|
|
|
|
'@babel/plugin-proposal-class-properties',
|
|
'@babel/plugin-proposal-export-default-from'
|
|
]
|
|
};
|