You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@resugar/codemod-modules-commonjs (part of previously known esnext project), for converting CJS to ESM
add options.esmodules - if true, expects CJS input and converts it to ESM;
force disable if options.rollup which will mean that you use Rollup + Commonjs plugin + Rollup Babel plugin, in which case Rollup's Commonjs plugin deals with CJS input okay
Thank you for raising this issue! We will try and get back to you as soon as possible.
Please make sure you format it properly, followed our code of conduct, and have given us as much context as possible.
Hey @tunnckoCore, check out this one too! ;)
https://ghub.now.sh/babel-preset-optimise
@babel/plugin-syntax-import-meta
(always included, even when notoptions.typescript
enabled)@babel/plugin-transform-flow-strip-types
(ifoptions.typescript
disabled)babel-plugin-transform-replace-expressions
(thruoptions.defines
)babel-plugin-macros
, cuz why not@resugar/codemod-modules-commonjs
(part of previously knownesnext
project), for converting CJS to ESMoptions.esmodules
- if true, expects CJS input and converts it to ESM;options.rollup
which will mean that you use Rollup + Commonjs plugin + Rollup Babel plugin, in which case Rollup's Commonjs plugin deals with CJS input okayoptions.commonjs
babel-plugin-add-import-extension
adds/replaces extensions.js
extensions inside TS soruce code to reference.ts
files, sorry what?! 😱 no thanksautomatically adds
/index.${extension}
if it's a dira bug:
but this works
or
or with
replace: true
optionthere's also an
extension
option to the plugin, which is cool too.Like, forcing some ext with
extension: 'ts'
and with both options
{ extension: 'ts', replace: true }
The text was updated successfully, but these errors were encountered: