-
Notifications
You must be signed in to change notification settings - Fork 506
Open
Labels
scope: templatesRelated to an init template, not necessarily to core (but could influence core)Related to an init template, not necessarily to core (but could influence core)
Milestone
Description
Currently the React template uses the non-standard TS default import syntax:
import * as React from 'react';
import * as ReactDOM from 'react-dom';This is unnecessarily confusing for users and exists in the language for legacy reasons, and instead the esModuleInterop compiler option should be used that enables just using standard ES6 default import syntax:
import React from 'react';
import ReactDOM from 'react-dom';The main tsconfig.json already has esModuleInterop enabled, but the Parcel example even disables allowSyntheticDefaultImports for some reason.
nickserv and austinbutler
Metadata
Metadata
Assignees
Labels
scope: templatesRelated to an init template, not necessarily to core (but could influence core)Related to an init template, not necessarily to core (but could influence core)