2018-10-03 18:15:43 +00:00
|
|
|
// Embark has support for Flow enabled by default in its built-in webpack
|
|
|
|
// config: type annotations will automatically be stripped out of DApp sources
|
|
|
|
// without any additional configuration. Note that type checking is not
|
|
|
|
// performed during builds.
|
|
|
|
|
|
|
|
// To enable Flow type checking refer to the preconfigured template:
|
2020-01-16 19:37:59 +00:00
|
|
|
// https://github.com/embarklabs/embark-flow-template
|
2018-10-03 18:15:43 +00:00
|
|
|
// A new DApp can be created from that template with:
|
|
|
|
// embark new --template flow
|
2019-11-25 06:59:31 +00:00
|
|
|
// NOTE: the `--template` option is DEPRECATED in v5.
|
2018-10-03 18:15:43 +00:00
|
|
|
|
2018-10-02 16:30:06 +00:00
|
|
|
module.exports = {
|
2019-03-12 00:57:20 +00:00
|
|
|
typescript: false,
|
2018-10-03 18:15:43 +00:00
|
|
|
// Setting `typescript: true` in this config will disable Flow support in
|
|
|
|
// Embark's default webpack config and enable TypeScript support: .ts and
|
|
|
|
// .tsx sources will automatically be transpiled into JavaScript without any
|
|
|
|
// additional configuration. Note that type checking is not performed during
|
|
|
|
// builds.
|
|
|
|
|
|
|
|
// To enable TypeScript type checking refer to the preconfigured template:
|
2020-01-16 19:37:59 +00:00
|
|
|
// https://github.com/embarklabs/embark-typescript-template
|
2018-10-03 18:15:43 +00:00
|
|
|
// A new DApp can be created from that template with:
|
|
|
|
// embark new --template typescript
|
2019-11-25 06:59:31 +00:00
|
|
|
// NOTE: the `--template` option is DEPRECATED in v5.
|
2019-03-12 00:57:20 +00:00
|
|
|
enabled: true
|
|
|
|
// Setting `enabled: false` in this config will disable Embark's built-in Webpack
|
|
|
|
// pipeline. The developer will need to use a different frontend build tool, such as
|
|
|
|
// `create-react-app` or Angular CLI to build their dapp
|
2018-10-02 16:30:06 +00:00
|
|
|
};
|