-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Labels
ExternalRelates to another program, environment, or user action which we cannot control.Relates to another program, environment, or user action which we cannot control.
Description
TypeScript Version: 3.5
Webpck Version: 3.x
ts-loader Version: 3.x
Browser: IE8
Code
- compilerOptions.module: "esnext"
- compilerOptions.target: "es3"
- dynamic import chunks
function load(type: string): Promise<any> {
return import(
`./types/${type}`
)
}Expected behavior:
output compatible code
Actual behavior:
webpackJsonp(["chunk-file"],[
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony default export */ __webpack_exports__["default"] = ({
type: 'basic'
});
/***/ })
]);
Related Issues:
when the target is es3,module import call transform should output compatible defineProperty
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ExternalRelates to another program, environment, or user action which we cannot control.Relates to another program, environment, or user action which we cannot control.