futurist / rollup-plugin-es3

Make rollup compatible with ES3
MIT License
5 stars 4 forks source link

Doesn't seem to do anything #7

Open Asher- opened 11 months ago

Asher- commented 11 months ago

I have

  plugins: [
    typescript(),
    nodeResolve(),
    es3({ remove: ['defineProperty', 'freeze'] }),
    compiler({
      language_in:  'ECMASCRIPT6',
      language_out: 'ECMASCRIPT3',
      // js: input_file,
      // js_output_file: output_file,
      formatting: 'PRETTY_PRINT',
      compilation_level: 'SIMPLE_OPTIMIZATIONS',
      isolation_mode: 'IIFE',
      assume_function_wrapper: true,
      debug: true
    })

But Object.defineProperty is not removed.

Asher- commented 11 months ago

Changing the order doesn't seem to matter either.