Skip to content

Minimization #116

@yaras6

Description

@yaras6

Hi,

Code works fine, until I have in C# MVC BundleTable.Optimization = false. When optimization is enabled I have following error:

Error: Uncaught ReferenceError: jQuery is not defined
at self.onmessage (blob:http://localhost/24ae1dc7-2b46-488f-b546-5c2366a47256:3)

Problematic function is importScripts(e.data.alphaSynthScript);

My bundle is
bundles.Add(new ScriptBundle("/Scripts/alphaTab/bundle").Include(
"
/Scripts/alphaTab/AlphaTab.js",
"/Scripts/alphaTab/jquery.alphaTab.js",
"
/Scripts/alphaTab/lib/swfobject/swfobject.js",
"/Scripts/alphaTab/lib/alphaSynth/AlphaSynth.js",
"
/Scripts/alphaTab/jquery.alphaTab.alphaSynth.js"));

I saw that the problematic function 'importScripts' is defined in string. Could you change this code or it is not possible to do that in easy way? Or may be am I doing something wrong? Thanks in advance for your support

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions