-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
babel-preset-optimise additions #149
Comments
Thank you for raising this issue! We will try and get back to you as soon as possible. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: