bjornharrtell / jsts

JavaScript Topology Suite
http://bjornharrtell.github.io/jsts/
Other
1.49k stars 232 forks source link

Build the lastest source code in ES5 #493

Closed Leon-Carto closed 1 year ago

Leon-Carto commented 1 year ago

Hello, I need to build the source code in ES5 for embedding into my project. I find the rollup.config attaching the babel, and build bundle successfully, but when I run build with my project it failed. Need help to solve the issue. Thanks

babel({
      exclude: 'node_modules/**',
      presets: [['@babel/env', {
        targets: {
          browsers: ['>2%', 'not dead']
        }
      }]],
      babelrc: false,
      babelHelpers: 'bundled'
    }),
Screen Shot 2023-03-17 at 01 33 32
bjornharrtell commented 1 year ago

Sorry I think your problem is out of scope of this project.