Skip to content

Commit 200b05e

Browse files
Support code injection in webpack 5 (#1563)
1 parent 9bdcc72 commit 200b05e

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

@plotly/dash-component-plugins/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Plotly
3+
Copyright (c) 2021 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

@plotly/webpack-dash-dynamic-import/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Plotly
3+
Copyright (c) 2021 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

@plotly/webpack-dash-dynamic-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@plotly/webpack-dash-dynamic-import",
3-
"version": "1.1.5",
3+
"version": "1.2.0",
44
"description": "Webpack Plugin for Dynamic Import in Dash",
55
"repository": {
66
"type": "git",

@plotly/webpack-dash-dynamic-import/src/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ class WebpackDashDynamicImport {
7878
apply(compiler) {
7979
compiler.hooks.compilation.tap('WebpackDashDynamicImport', compilation => {
8080
compilation.mainTemplate.hooks.requireExtensions.tap('WebpackDashDynamicImport > RequireExtensions', (source, chunk, hash) => {
81-
return [
82-
source,
83-
resolveImportSource()
84-
]
81+
return source + resolveImportSource();
8582
});
8683
});
8784
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Plotly, Inc
3+
Copyright (c) 2021 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)