anythingcodes / highlight-share

Medium-like text selection sharing without dependencies
MIT License
98 stars 14 forks source link

babel-preset-es2015 is deprecated #1

Closed ryuran closed 6 years ago

ryuran commented 6 years ago

Hello,

I use this plugin as dependency in my project but I remove recently babel-preset-es2015 because it is deprecated.

I replace it by babel-preset-env as recommended.

But import of hightlight-share fail without babel-preset-es2015

internal/streams/legacy.js:59
      throw er; // Unhandled stream error in pipe.
      ^
Error: ./node_modules/highlight-share/dist/highlight-share.js
Module build failed: Error: Couldn't find preset "es2015" relative to directory "…/node_modules/highlight-share"
    at …/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (…/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (…/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (…/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (…/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (…/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File …/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (…/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (…/node_modules/babel-loader/lib/index.js:50:20)
ryuran commented 6 years ago

I fix this with babelrc:false in my webpack config