Is it possible to import a .js file and not transpile it?

I have a javascript file which I’d like to not be transpiled to ES6, the file is currently located in my node_modules folder and I’d like to ignore this specific js file from being transpiled from ES6 to ES5. Is there a way to ignore the transpilation with something like a babelrc ignore? It seems meteor’s babelrc files only support presets and plugins, any other suggestions?

Yeah you can do .es5.js I think.

1 Like

We also shouldn’t currently be transpiling .js files in node_modules directories, on the assumption they should have been compiled before the package was published.