-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(dist): implements a workaround for webpack/webpack#5316
fixes #45
- Loading branch information
Showing
8 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//The modules for your project will be inlined above | ||
//this snippet. Ask almond to synchronously require the | ||
//module value for 'main' here and return it as the | ||
//value to use for the public API for the built file. | ||
return require('index'); | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
//Allow using this built library as an AMD module | ||
//in another project. That other project will only | ||
//see this AMD call, not the internal modules in | ||
//the closure below. | ||
define([], factory); | ||
} else { | ||
//Browser globals case. Just assign the | ||
//result to a property on the global. | ||
root.mscgen = factory(); | ||
} | ||
}(this, function () { | ||
//almond, and your modules will be inlined here |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module.exports = (pEnv = 'prod') => { | ||
const lRetval = { | ||
entry: './sample-webpack.js' | ||
}; | ||
|
||
lRetval.output = {filename : './sample-webpack.bundle.js'} | ||
lRetval.devtool = "source-map"; | ||
|
||
return lRetval; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters