You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dynamic import and Vue cannot be used with webpack loader #711
ERROR in ./src/App.vue?vue&type=script&lang=js& 1:679
Module parse failed: Unexpected token (1:679)
File was processed with these loaders:
* ./node_modules/webpack-obfuscator/dist/loader/index.js
* ./node_modules/vue-loader/lib/loaders/pitcher.js
* ./node_modules/vue-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
> var _0x27d9=['-!../node_modules/webpack-obfuscator/dist/loader/index.js??ref--1!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&'];(function(_0x2af489,_0x27d9f0){var _0x556fe9=function(_0x2ff7da){while(--_0x2ff7da){_0x2af489['push'](_0x2af489['shift']());}};_0x556fe9(++_0x27d9f0);}(_0x27d9,0x118));var _0x556f=function(_0x2af489,_0x27d9f0){_0x2af489=_0x2af489-0x0;var _0x556fe9=_0x27d9[_0x2af489];return _0x556fe9;};import _0x3c560d from'-!../node_modules/webpack-obfuscator/dist/loader/index.js??ref--1!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&';export default _0x3c560d;export*from_0x556f('0x0');
@ ./src/App.vue 2:0-55 3:0-50 3:0-50 9:2-8
@ ./src/index.js
changed the title [-]Dynamic import cannot be used with webpack loader[/-][+]Dynamic import and Vue cannot be used with webpack loader[/+]on Aug 14, 2020
So. I'll fix that literal value moved to the string array. But i cannot fix that as foo part was removed from this export because this is escodegen problem. I'll try to create the PR to that package, but it may be merged in few weeks or even months
Activity
sanex3339 commentedon Aug 14, 2020
Hi. Try
[email protected]sxzz commentedon Aug 14, 2020
It works! Thank you. But there is an other problem. Not compatible with vue
Code:
Webpack Config
Error:
[-]Dynamic import cannot be used with webpack loader[/-][+]Dynamic import and Vue cannot be used with webpack loader[/+]sanex3339 commentedon Aug 14, 2020
Try to add
vue-loaderfor.jsfiles.sanex3339 commentedon Aug 14, 2020
Hmm the problem with exports
Obfuscator adds
fooliteral to thestringArraysxzz commentedon Aug 14, 2020
It doesn't work. This will make all javascript code to be ignored.
sxzz commentedon Aug 14, 2020
It should be that the space was deleted and caused this problem
sanex3339 commentedon Aug 14, 2020
Not only space. Export path cannot be an identifier. Only literal.
sanex3339 commentedon Aug 14, 2020
I cannot fix it right now, because
escodegendoes not supportexport * asconstructions.It removes
as foopart.sanex3339 commentedon Aug 14, 2020
So. I'll fix that literal value moved to the string array. But i cannot fix that
as foopart was removed from this export because this isescodegenproblem. I'll try to create the PR to that package, but it may be merged in few weeks or even monthssanex3339 commentedon Aug 14, 2020
Issue for
export * asexports#710
sanex3339 commentedon Aug 14, 2020
PR for export literals
#712
sanex3339 commentedon Aug 14, 2020
PR for
escodegenestools/escodegen#420
sanex3339 commentedon Aug 15, 2020
1.10.2has been released with fixedsourcesof exports. Now these exports won't be moved to theStringArrayor splitted bysplitStringsoption.Support of named
export * asis covered by this issue:#710
I'll close this issue in favor of #710