2

I'm trying to migrate my project to ES6 modules, but I met an issue.

I have 3rd party script that use modules with help of requirejs. Let name it 3rdParty.js. It was obtained via bower, so there is no ability and wish to update it.

Is there any way to import 3rdParty.js, using ES6 syntax without removing define functions from file?

2
  • What module loader are you using? Commented May 12, 2015 at 16:30
  • I'm trying to migrate my project from requirejs modules to es6 modules using grunt-es6-module-transpiler. But I have requirejs modules which not related to project code base. Is there any ability to use them with es6 modules? Commented May 13, 2015 at 13:01

1 Answer 1

6

SystemJS can load es6 modules and AMD or CommonJS together.

It has format detector, so you can just import module via System.import, and then library takes care about module formats

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.