liady / webpack-node-externals

Easily exclude node modules in Webpack
MIT License
1.3k stars 62 forks source link

Problem with @ symbol in settings wepback externals? #68

Closed golubvladimir closed 4 years ago

golubvladimir commented 5 years ago

When I try to specify a library with @

externals: ['@loadable/component', nodeExternals()],

or

externals: [/loadable\/component$/, nodeExternals()],

I get an error

ERROR in client.js from Terser
Unexpected character '@' [external "@loadable/component":1,0 [client.js:3235,17]
vashchukmaksim commented 4 years ago

Have absolutely the same issue, did you solve it?

golubvladimir commented 4 years ago

@vashchukmaksim I commented out this version. This problem is related to babel.